[Mesa-dev] [PATCH 08/12] glsl/gsraytrace: Use core geometry shaders.

2014-02-06 Thread Fabian Bieler
V2: Don't remove ShaderSupported() test. It sets up some function pointers for the CompileShader framework. Signed-off-by: Fabian Bieler fabianbie...@fastmail.fm --- src/glsl/gsraytrace.cpp | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-06 Thread Marek Olšák
On Thu, Feb 6, 2014 at 2:40 AM, Roland Scheidegger srol...@vmware.com wrote: I don't think that would work. The reason for this stuff to exist is because new hw makes that possible on the hw level directly. I don't think this has anything to do with new hardware. This stuff has always been

Re: [Mesa-dev] [PATCH] nouveau/video: make sure that firmware is present when checking caps

2014-02-06 Thread Emil Velikov
On 05/02/14 05:02, Ilia Mirkin wrote: Apparently some players are ill-prepared for us claiming that a decoder exists only to have creating it fail, and express this poor preparation with crashes (e.g. flash). Check that firmware is there to increase the chances of there being a high

Re: [Mesa-dev] [PATCH] st/mesa: fix crash when a shader uses a TBO and it's not bound

2014-02-06 Thread Brian Paul
On 02/05/2014 06:19 PM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com This binds a NULL sampler view in that case. Cc: 10.1 10.0 mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_cb_texture.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-06 Thread Roland Scheidegger
Am 06.02.2014 12:42, schrieb Marek Olšák: On Thu, Feb 6, 2014 at 2:40 AM, Roland Scheidegger srol...@vmware.com wrote: I don't think that would work. The reason for this stuff to exist is because new hw makes that possible on the hw level directly. I don't think this has anything to do with

[Mesa-dev] [PATCH] gallium/tgsi: correct typo propagated from NV_vertex_program1_1

2014-02-06 Thread Erik Faye-Lund
In the specification text of NV_vertex_program1_1, the upper limit of the RCC instruction is written as 1.884467e+19 in scientific notation, but as 0x5F80 in binary. But the binary version translates to 1.84467e+19 rather than 1.884467e+19 in scientific notation. Since the lower-limit equals

Re: [Mesa-dev] [PATCH] gallium/tgsi: correct typo propagated from NV_vertex_program1_1

2014-02-06 Thread Brian Paul
On 02/06/2014 09:09 AM, Erik Faye-Lund wrote: In the specification text of NV_vertex_program1_1, the upper limit of the RCC instruction is written as 1.884467e+19 in scientific notation, but as 0x5F80 in binary. But the binary version translates to 1.84467e+19 rather than 1.884467e+19 in

[Mesa-dev] [PATCH] R600/SI: Make sure M0 is always initialized when DS instructions are used

2014-02-06 Thread Tom Stellard
From: Tom Stellard thomas.stell...@amd.com DS instructions that access local memory can only uses addresses that are less than or equal to the value of M0. When M0 is uninitialized, then we experience undefined behavior. --- lib/Target/R600/SIInstrInfo.cpp| 12

Re: [Mesa-dev] [PATCH 1/6] glsl: Optimize ~~x into x.

2014-02-06 Thread Matt Turner
On Sun, Jan 19, 2014 at 11:18 PM, Eric Anholt e...@anholt.net wrote: --- src/glsl/opt_algebraic.cpp | 12 1 file changed, 12 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 332f0b7..6b0d992 100644 --- a/src/glsl/opt_algebraic.cpp +++

Re: [Mesa-dev] [PATCH v3 8/9] i965: support gl_InvocationID for gen7

2014-02-06 Thread Paul Berry
On 4 February 2014 15:07, Jordan Justen jordan.l.jus...@intel.com wrote: v2: * Make gl_InstanceID a system value v3: * Properly shift from R0.1 into DST.4 by adding GS_OPCODE_GET_INSTANCE_ID Signed-off-by: Jordan Justen jordan.l.jus...@intel.com ---

Re: [Mesa-dev] [PATCH 4/4] glsl: Change locations from yylloc to appropriate tokens positions.

2014-02-06 Thread Carl Worth
Sir Anthony anth...@adsorbtion.org writes: This is tough question, I thought about it some time and concluded that some function class must include body range, otherwise there will be no easy way to get function end Good. That's all I wanted to hear, that you had intentionally thought about

Re: [Mesa-dev] [PATCH 1/6] glsl: Optimize ~~x into x.

2014-02-06 Thread Eric Anholt
Matt Turner matts...@gmail.com writes: On Sun, Jan 19, 2014 at 11:18 PM, Eric Anholt e...@anholt.net wrote: --- src/glsl/opt_algebraic.cpp | 12 1 file changed, 12 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 332f0b7..6b0d992 100644

Re: [Mesa-dev] [RFC PATCH] mesa: add support for multiple buffer mappings

2014-02-06 Thread Eric Anholt
Marek Olšák mar...@gmail.com writes: From: Marek Olšák marek.ol...@amd.com OpenGL allows a buffer to be mapped only once, but we also map buffers internally, e.g. in the software primitive restart fallback, for PBOs, vbo_get_minmax_index, etc. This has always been a problem, but it will be

Re: [Mesa-dev] [RFC PATCH] mesa: add support for multiple buffer mappings

2014-02-06 Thread Brian Paul
On 02/05/2014 03:06 PM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com OpenGL allows a buffer to be mapped only once, but we also map buffers internally, e.g. in the software primitive restart fallback, for PBOs, vbo_get_minmax_index, etc. This has always been a problem, but it will

Re: [Mesa-dev] [RFC PATCH] mesa: add support for multiple buffer mappings

2014-02-06 Thread Ian Romanick
On 02/05/2014 02:06 PM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com OpenGL allows a buffer to be mapped only once, but we also map buffers internally, e.g. in the software primitive restart fallback, for PBOs, vbo_get_minmax_index, etc. This has always been a problem, but it

Re: [Mesa-dev] [RFC PATCH] mesa: add support for multiple buffer mappings

2014-02-06 Thread Fredrik Höglund
On Thursday 06 February 2014, Eric Anholt wrote: Marek Olšák mar...@gmail.com writes: From: Marek Olšák marek.ol...@amd.com OpenGL allows a buffer to be mapped only once, but we also map buffers internally, e.g. in the software primitive restart fallback, for PBOs,

Re: [Mesa-dev] [PATCH] i965: Implement a CS stall workaround

2014-02-06 Thread Ian Romanick
On 02/04/2014 09:08 PM, Kenneth Graunke wrote: According to the latest documentation, any PIPE_CONTROL with the Command Streamer Stall bit set must also have another bit set, with five different options: - Render Target Cache Flush - Depth Cache Flush - Stall at Pixel Scoreboard

Re: [Mesa-dev] [PATCH 2/2] i965: Use the new brw_load_register_mem helper for draw indirect.

2014-02-06 Thread Ian Romanick
On 02/04/2014 09:07 PM, Kenneth Graunke wrote: This makes it work on Broadwell, too. Eric convinced me (on IRC) that the extra BEGIN_BATCH / ADVANCE_BATCH calls won't cause problems. Series is Reviewed-by: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Kenneth Graunke

Re: [Mesa-dev] [PATCH 2/2] st/mesa: add support for GL_ARB_viewport_array (v0.2)

2014-02-06 Thread Ian Romanick
On 02/04/2014 02:50 PM, Ilia Mirkin wrote: On Tue, Jan 21, 2014 at 1:09 AM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com this just ties the mesa code to the pre-existing gallium interface, I'm not sure what to do with the CSO stuff yet. 0.2: fix min/max bounds

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-06 Thread Ian Romanick
On 02/04/2014 01:29 AM, Rogovin, Kevin wrote: I don't believe our hardware can support GL_ARB_shader_stencil_export. The render target write message can take RGBA, depth, and sample masks, but not stencil. Without that, it's not at all obvious how to implement it. There is a terrible

Re: [Mesa-dev] [PATCH] glsl: Don't lose precision qualifiers when encountering centroid.

2014-02-06 Thread Ian Romanick
On 02/05/2014 09:42 PM, Kenneth Graunke wrote: Mesa fails to retain the precision qualifier when parsing: #version 300 es centroid in mediump vec2 v; Consider how the parser's type_qualifier production is applied. First, the precision_qualifier rule creates a new ast_type_qualifier:

[Mesa-dev] [Bug 69101] prime: black window

2014-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69101 --- Comment #18 from Alexander Mezin mezin.alexan...@gmail.com --- On Arch Linux: Xorg 1.15, Mesa 10.0.3, Linux 3.13.2, KWin 4.11.6 with OpenGL 3.1 compositing. libdrm 2.4.52 xf86-video-ati 7.3.0 xf86-video-intel 2.99.909 (sna) No more black

Re: [Mesa-dev] [PATCH] i965: Fix INTEL_DEBUG=vs for fixed-function/ARB programs.

2014-02-06 Thread Ian Romanick
On 02/03/2014 11:15 AM, Kenneth Graunke wrote: Since commit 9cee3ff562f3e4b51bfd30338fd1ba7716ac5737, INTEL_DEBUG=vs has caused a NULL pointer dereference for fixed-function/ARB programs. In the vec4 generators, prog is a gl_program, and shader_prog is the gl_shader_program. This is

[Mesa-dev] [Bug 69101] prime: black window

2014-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69101 Alexander Mezin mezin.alexan...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 3/3] i965/fs: Implement FS_OPCODE_[UN]PACK_HALF_2x16_SPLIT[_XY] opcodes.

2014-02-06 Thread Ian Romanick
On 01/29/2014 02:36 PM, Kenneth Graunke wrote: I'd neglected to port these to Broadwell. Most of this code is copy and pasted from Gen7, but instead of using F32TO16/F16TO32, we just use MOV with HF register types. Fixes fs-packHalf2x16 and fs-unpackHalf2x16 tests (both the ARB extension

Re: [Mesa-dev] [PATCH 1/3] i965: Fix Gen8+ disassembly of half float subregister numbers.

2014-02-06 Thread Ian Romanick
On 01/29/2014 02:36 PM, Kenneth Graunke wrote: Signed-off-by: Kenneth Graunke kenn...@whitecape.org This patch is Reviewed-by: Ian Romanick ian.d.roman...@intel.com --- src/mesa/drivers/dri/i965/gen8_disasm.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Mesa-dev] Fwd: [PATCH 2/2] i965: Use the new brw_load_register_mem helper for draw indirect.

2014-02-06 Thread Chris Forbes
Forgot to cc the list. -- Forwarded message -- From: Chris Forbes chr...@ijw.co.nz Date: Fri, Feb 7, 2014 at 1:24 PM Subject: Re: [Mesa-dev] [PATCH 2/2] i965: Use the new brw_load_register_mem helper for draw indirect. To: Kenneth Graunke kenn...@whitecape.org + } else {

Re: [Mesa-dev] [PATCH 2/3] i965: Drop bogus F32TO16/F16TO32 instructions on Broadwell - use MOV.

2014-02-06 Thread Ian Romanick
On 01/29/2014 11:08 PM, Kenneth Graunke wrote: On 01/29/2014 02:36 PM, Kenneth Graunke wrote: Broadwell removed the F32TO16 and F16TO32 instructions. However, it has actual support for HF values, so they're actually just MOV. Fixes vs-packHalf2x16 and vs-unpackHalf2x16 tests (both the ARB

[Mesa-dev] files out of date

2014-02-06 Thread Joey Reid
the folder: http://www.x.org/docs/AMD/ has an outdated version of Southern Islands Series Instruction Set Architecture. The latest version can be found here: http://developer.amd.com/wordpress/media/2012/12/AMD _Southern_Islands_Instruction_Set_Architecture.pdf Who has permission to update this

[Mesa-dev] [PATCH] glsl: Make ast_node location comments more informative.

2014-02-06 Thread Sir Anthony
--- src/glsl/ast.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glsl/ast.h b/src/glsl/ast.h index 8e54ddc..50b95bf 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -116,10 +116,10 @@ public: */ struct { unsigned source; /** GLSL

Re: [Mesa-dev] [PATCH 4/4] glsl: Change locations from yylloc to appropriate tokens positions.

2014-02-06 Thread Sir Anthony
This is tough question, I thought about it some time and concluded that some function class must include body range, otherwise there will be no easy way to get function end (it contents may be iterated (I did it in my code before I realized I need to change locations placing itself, it was

[Mesa-dev] [PATCH 1/8] loader: Factor out code to map PCI ID to driver name

2014-02-06 Thread Emil Velikov
From: Kristian Høgsberg k...@bitplanet.net Making this its own function cleans up loader_get_driver_for_fd() a bit and simplifies the control flow. Signed-off-by: Kristian Høgsberg k...@bitplanet.net v2: - change patch order and rebase (Emil) --- src/loader/loader.c | 48

[Mesa-dev] [PATCH 5/8] loader: Move loader_get_driver_for_fd() into the three different #ifdef cases

2014-02-06 Thread Emil Velikov
Having one function that tries to accomodate the different decision trees for the three different #ifdef cases makes the logic hard to follow. Now that most of the complexity in loader_get_driver_for_fd() has been split out in helper functions, we can just move loader_get_driver_for_fd() into the

[Mesa-dev] [PATCH 3/8] loader: Get driver name from udev hwdb when available

2014-02-06 Thread Emil Velikov
The udev hwdb is a mechanism for applying udev properties to devices at hotplug time. The hwdb text files are compiled into a binary database that lets udev efficiently look up and apply properties to devices that match a given modalias. This patch exports the mesa PCI ID tables as hwdb files

[Mesa-dev] [PATCH 6/8] loader: Switch loader to match modalias strings instead of PCI IDs

2014-02-06 Thread Emil Velikov
This lets us match any device on any bus, including platform devices. Signed-off-by: Kristian Høgsberg k...@bitplanet.net v2: (Emil) - correctly handle chip_id = 0 devices under android - fnmatch.h is only available under linux - cleanup a few typos s/driver-map/modalias-map/ XXX: - scons

[Mesa-dev] [PATCH 7/8] loader: cleanup loader_get_pci_id_from_id fallout path

2014-02-06 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/loader/loader.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/loader/loader.c b/src/loader/loader.c index cbb501d..d75380b 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -264,13

[Mesa-dev] [PATCH 2/8] loader: Factor out drmGetVersion() fallback code

2014-02-06 Thread Emil Velikov
From: Kristian Høgsberg k...@bitplanet.net Signed-off-by: Kristian Høgsberg k...@bitplanet.net v2: - change patch order and rebase (Emil) --- src/loader/loader.c | 44 +--- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git

[Mesa-dev] [PATCH 0/8] use hwdb in loader v4

2014-02-06 Thread Emil Velikov
Helo Kristian, Rather than nitpicking like an old bat, I took the liberty of respinning your patchset. Most patches are left as is, minus a reshuffle in their order + rebase. Available in the hwdb-loader-v4 branch at https://github.com/evelikov/Mesa/ Highlights comparing to v3: - Dropped

[Mesa-dev] [PATCH 4/8] loader: Move debug logging to where we find the driver

2014-02-06 Thread Emil Velikov
Trying to figure out where a driver name comes from by looking at whether or not chip_id is -1 isn't very roboust. Signed-off-by: Kristian Høgsberg k...@bitplanet.net v2: - change patch order and rebase (Emil) Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/loader/loader.c | 25

[Mesa-dev] [PATCH 8/8] loader: cleanup loader_get_device_name_for_fd error path

2014-02-06 Thread Emil Velikov
Make sure that we unref the udev, if we fail to retrieve the device. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/loader/loader.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/loader/loader.c b/src/loader/loader.c index d75380b..422079a 100644

Re: [Mesa-dev] [PATCH] egl/dri2/android: free driver_name in dri2_initialize_android error path

2014-02-06 Thread Emil Velikov
ping ? On 29/01/14 20:10, Emil Velikov wrote: v2: Cleanup driver name if dri2_load_driver() fails. Spotted by Chad Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- Hmm... I swear I had that hunk in mind when writing the patch. Or maybe I was day dreaming. Thanks Chad

[Mesa-dev] [PATCHv2] configure: cleanup libudev handling

2014-02-06 Thread Emil Velikov
Add the explicit note about the required version during configure. Require the same version (151) of udev when building the pipe-loader. Mention the udev version requirement in GBM Requires.private. v2: Resolve a couple of silly typos. Spotted by Ilia Signed-off-by: Emil Velikov

Re: [Mesa-dev] [PATCH 0/8] Cleanup usage of libudev CFLAGS and linking

2014-02-06 Thread Emil Velikov
ping ? On 29/01/14 20:23, Emil Velikov wrote: Hello list, Now that everything libudev related is moved to src/loader and we handle the library by dlopen-ing it, we can cleanup a few includes, CFLAGS and LIBS that were behind. The final commit adds explicit version check for udev, where

Re: [Mesa-dev] [PATCH] loader: Allow a non-udev linux fallback

2014-02-06 Thread Emil Velikov
On 01/02/14 09:27, Lauri Kasanen wrote: On Fri, 31 Jan 2014 10:58:48 -0800 Kenneth Graunke kenn...@whitecape.org wrote: On 01/31/2014 03:14 AM, Lauri Kasanen wrote: It's important not to break existing uses. There is no need to require udev for 3d. This is an alternative to Stéphane

[Mesa-dev] [PATCH v4 5/9] mesa: initialize gl_geometry_program Invocations field

2014-02-06 Thread Jordan Justen
Signed-off-by: Jordan Justen jordan.l.jus...@intel.com Reviewed-by: Paul Berry stereotype...@gmail.com --- src/mesa/main/mtypes.h | 1 + src/mesa/main/shaderapi.c | 1 + src/mesa/program/program.c | 1 +

Re: [Mesa-dev] [PATCH] R600/SI: Make sure M0 is always initialized when DS instructions are used

2014-02-06 Thread Michel Dänzer
On Don, 2014-02-06 at 09:40 -0800, Tom Stellard wrote: From: Tom Stellard thomas.stell...@amd.com DS instructions that access local memory can only uses addresses that are less than or equal to the value of M0. When M0 is uninitialized, then we experience undefined behavior. [...] @@

[Mesa-dev] [PATCH 2/2] st/mesa: add texture gather support.

2014-02-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This respects the CAP and adds glsl-tgsi support for the TG4 opcode. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_extensions.c | 4 src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 11 --- 2 files changed, 12

Re: [Mesa-dev] [PATCH 1/4] r600g, radeonsi: force VRAM placement for DRI2 buffers

2014-02-06 Thread Michel Dänzer
On Mon, 2014-02-03 at 18:07 +0100, Marek Olšák wrote: Do you mean something like: write_domains = VRAM read_domains = VRAM | GTT I don't think it's perfect. That's what I meant, and of course it's not perfect. :) We should treat rendering by an app and blitting by u_blitter (= texture

[Mesa-dev] [PATCH 1/2] gallium: add texture gather support to gallium (v2)

2014-02-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the TG4 opcode, and a CAP for the max texture gather components. v2: add component selection src and a cap to say hw can do it. (st can use to help control GL_ARB_gpu_shader5/GLSL 4.00). Add docs. Signed-off-by: Dave Airlie airl...@redhat.com

[Mesa-dev] [PATCH 2/2] st/mesa: add texture gather support. (v2)

2014-02-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This respects the CAP and adds glsl-tgsi support for the TG4 opcode. v2: propogate the component selection to gallium Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_extensions.c | 4

[Mesa-dev] [PATCH v4 1/9] glsl: convert GS input primitive to use ast_type_qualifier

2014-02-06 Thread Jordan Justen
We introduce a new merge_in_qualifier ast_type_qualifier which allows specialized handling of merging input layout qualifiers. By merging layout qualifiers into state-in_qualifier, we allow multiple input qualifiers. For example, the primitive type can be specified specified separately from the

Re: [Mesa-dev] [PATCH 1/2] gallium: add texture gather support to gallium

2014-02-06 Thread Dave Airlie
On Fri, Feb 7, 2014 at 12:36 PM, Roland Scheidegger srol...@vmware.com wrote: Am 07.02.2014 02:56, schrieb Ilia Mirkin: On Thu, Feb 6, 2014 at 8:52 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This just adds the TG4 opcode, and a CAP for the max texture

[Mesa-dev] [PATCH] tgsi/docs: gallium document tg4 caps

2014-02-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com I'll merge this with the previous patches. --- src/gallium/docs/source/screen.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 90e8278..0677e93 100644 ---

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with r600 driver and mesa 10.0.1

2014-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 --- Comment #13 from Barto mister.free...@laposte.net --- here is the apitrace of the bug : http://demo.ovh.eu/download/4460655c06da77b352f00024805c88ac/fgfs.trace.tar.gz the bug starts when the engine starts, the trees will disapear -- You

[Mesa-dev] gallium ARB_texture_gather support

2014-02-06 Thread Dave Airlie
This just adds the gallium opcode/cap + the st/mesa pieces to enable it, I have r600g code but I want to go over it again before sending it. I also have a couple of other extensions that have trivial gallium bits I'd like to line up. (GL_ARB_texture_query_lod, and GL_ARB_texture_query_levels).

[Mesa-dev] [PATCH 1/2] gallium: add texture gather support to gallium

2014-02-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the TG4 opcode, and a CAP for the max texture gather components. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_info.c | 1 + src/gallium/include/pipe/p_defines.h | 3 ++-

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with r600 driver and mesa 10.0.1

2014-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 --- Comment #14 from Ilia Mirkin imir...@alum.mit.edu --- In case it's of any interest, I also see the bug with nouveau/nv50 (nv98 card) by replaying the apitrace -- so yeah, probably a core bug. Or mesa/st. -- You are receiving this mail

[Mesa-dev] [PATCH v4 0/9] i965/gen7 instanced GS support for ARB_gpu_shader5

2014-02-06 Thread Jordan Justen
v4: * Merge with recent compute shader parsing of input layout qualifiers v3: * Fix major brokenness of dual instance mode operation using Paul's suggestions * Update parsing to allow separate primitive and invocation declarations. Fixes piglit test:

Re: [Mesa-dev] [PATCH 1/2] gallium: add texture gather support to gallium

2014-02-06 Thread Ilia Mirkin
On Thu, Feb 6, 2014 at 8:52 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This just adds the TG4 opcode, and a CAP for the max texture gather components. Is this different from GATHER4? If it is, should probably be documented in docs/source/tgsi.rst...

[Mesa-dev] [PATCH v4 9/9] i965: support instanced GS on gen7

2014-02-06 Thread Jordan Justen
v3: * Properly prevent dual object mode execution when the invocation count 1 Signed-off-by: Jordan Justen jordan.l.jus...@intel.com Reviewed-by: Paul Berry stereotype...@gmail.com --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_defines.h

[Mesa-dev] [PATCH v4 2/9] glsl: Generate error for invalid input layout declarations

2014-02-06 Thread Jordan Justen
Fixes various piglit tests: spec/glsl-1.50/compiler/incorrect-in-layout-qualifier-*.geom Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/glsl/ast_type.cpp | 13 + 1 file changed, 13 insertions(+) diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp index

[Mesa-dev] [PATCH v4 4/9] glsl/linker: produce gl_shader_program Geom.Invocations

2014-02-06 Thread Jordan Justen
Grab the parsed invocation count, check for consistency during linking, and finally save the result in gl_shader_program Geom.Invocations. Signed-off-by: Jordan Justen jordan.l.jus...@intel.com Reviewed-by: Paul Berry stereotype...@gmail.com --- src/glsl/glsl_parser_extras.cpp | 4

Re: [Mesa-dev] [PATCH 1/2] gallium: add texture gather support to gallium

2014-02-06 Thread Roland Scheidegger
Am 07.02.2014 02:56, schrieb Ilia Mirkin: On Thu, Feb 6, 2014 at 8:52 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This just adds the TG4 opcode, and a CAP for the max texture gather components. Is this different from GATHER4? If it is, should probably be

Re: [Mesa-dev] [PATCHv2] configure: cleanup libudev handling

2014-02-06 Thread Stefan Brüns
On Friday 07 February 2014 00:58:47 Emil Velikov wrote: Add the explicit note about the required version during configure. Require the same version (151) of udev when building the pipe-loader. Mention the udev version requirement in GBM Requires.private. v2: Resolve a couple of silly typos.

[Mesa-dev] [PATCH v4 7/9] glsl: add gl_InvocationID variable for ARB_gpu_shader5

2014-02-06 Thread Jordan Justen
v2: * Make gl_InvocationID a system value Signed-off-by: Jordan Justen jordan.l.jus...@intel.com Reviewed-by: Paul Berry stereotype...@gmail.com --- src/glsl/builtin_variables.cpp | 2 ++ src/mesa/main/mtypes.h | 1 + 2 files changed, 3 insertions(+) diff --git

[Mesa-dev] [PATCH v4 8/9] i965: support gl_InvocationID for gen7

2014-02-06 Thread Jordan Justen
v2: * Make gl_InvocationID a system value v3: * Properly shift from R0.1 into DST.4 by adding GS_OPCODE_GET_INSTANCE_ID Signed-off-by: Jordan Justen jordan.l.jus...@intel.com Acked-by: Paul Berry stereotype...@gmail.com --- src/mesa/drivers/dri/i965/brw_defines.h | 12

Re: [Mesa-dev] [RFC PATCH] mesa: add support for multiple buffer mappings

2014-02-06 Thread Marek Olšák
On Thu, Feb 6, 2014 at 11:08 PM, Eric Anholt e...@anholt.net wrote: Marek Olšák mar...@gmail.com writes: From: Marek Olšák marek.ol...@amd.com OpenGL allows a buffer to be mapped only once, but we also map buffers internally, e.g. in the software primitive restart fallback, for PBOs,

[Mesa-dev] [PATCH v4 6/9] main/shaderapi: GL_GEOMETRY_SHADER_INVOCATIONS GetProgramiv support

2014-02-06 Thread Jordan Justen
v3: * Add check for ARB_gpu_shader5 Signed-off-by: Jordan Justen jordan.l.jus...@intel.com Reviewed-by: Paul Berry stereotype...@gmail.com --- src/mesa/main/shaderapi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index

[Mesa-dev] [PATCH v4 3/9] glsl: parse invocations layout qualifier for ARB_gpu_shader5

2014-02-06 Thread Jordan Justen
_mesa_glsl_parse_state in_qualifier-invocations will store the invocations count. v3: * Use in_qualifier to allow the primitive to be specied separately from the invocations count (merge_qualifiers) Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/glsl/ast.h | 10

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with r600 driver and mesa 10.0.1

2014-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 --- Comment #12 from Barto mister.free...@laposte.net --- I tried the 3 patches from Fredrik Höglund ( bug 73504 ) with the source code of mesa 10.0.3 ( the official source code, not the last git version ) but the bug is still here, the trees

Re: [Mesa-dev] [PATCH 4/4] glsl: Change locations from yylloc to appropriate tokens positions.

2014-02-06 Thread Sir Anthony
Yes, I will be very grateful if someone will do it. Thanks. On Thu, 06 Feb 2014 12:40:21 -0800 Carl Worth cwo...@cworth.org wrote: Sir Anthony anth...@adsorbtion.org writes: This is tough question, I thought about it some time and concluded that some function class must include body range,

[Mesa-dev] Flatland

2014-02-06 Thread Connor Abbott
Hi, So I believe that we can all agree that the tree-based representation that GLSL IR currently uses for shaders needs to go. For the benefit of those that didn't watch Ian Romanick's talk at FOSDEM, I'll reiterate some of the problems with it as of now: - All the ir_dereference chains blow up