Re: [Mesa-dev] [PATCH 1/2] i965: Remove never used RSR and RSL opcodes.

2013-08-28 Thread Kenneth Graunke
On 08/28/2013 05:22 PM, Matt Turner wrote: Existed since the initial import, but appear to never have actually existed. --- Rotate? src/mesa/drivers/dri/i965/brw_defines.h | 2 -- src/mesa/drivers/dri/i965/brw_eu.h | 2 -- src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 -- src/mesa/dri

Re: [Mesa-dev] [PATCH 00/22] i965/gen7: Initial geometry shader support, part 2

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: [snip] [PATCH 01/22] i965: rename legacy gs structs and functions to ff_gs. [PATCH 02/22] i965: Rename user-defined gs structs from vec4_gs to gs. [PATCH 03/22] i965: Move vec4 register allocation data structures to brw->vec4. [PATCH 04/22] i965/gs: Updat

Re: [Mesa-dev] [PATCH 08/22] i965/gs: Allocate URB space for use by GS.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: Previously, we gave all of the URB space (other than the small amount that is used for push constants) to the vertex shader. However, when a geometry shader is active, we need to divide it up between the vertex and geometry shaders. The size of the URB

Re: [Mesa-dev] [PATCH 21/22] i965/gen7: Generalize gen7_vs_state in preparation for GS.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: --- src/mesa/drivers/dri/i965/brw_state.h | 41 ++ src/mesa/drivers/dri/i965/gen7_vs_state.c | 123 -- 2 files changed, 122 insertions(+), 42 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/

Re: [Mesa-dev] [PATCH 20/22] i965/gen7: merge defines for 3DSTATE{VS, GS, WM} dword 2

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: Dword 2 of all 3DSTATE commands is the same, so there's no need tohave Well, not -all- 3DSTATE commands...just these :) It's weird that you decided to share the bits for 3DSTATE_VS, 3DSTATE_GS, and 3DSTATE_WM on SNB, but not GEN7_PS_* for 3DSTATE_PS o

Re: [Mesa-dev] [PATCH 13/22] i965/gs: Implement support for geometry shader surfaces.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: This patch implements pull constant upload, binding table upload, and surface setup for geometry shaders, by re-using vertex shader code that was generalized in previous patches. Based on work by Eric Anholt . This looks a lot better than the previous

Re: [Mesa-dev] [PATCH 11/22] i965: generalize brw_vs_pull_constants in preparation for GS.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: --- src/mesa/drivers/dri/i965/brw_state.h| 8 +++ src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 66 +++- 2 files changed, 50 insertions(+), 24 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/sr

Re: [Mesa-dev] [PATCH 09/22] i965/gs: Allocate push constant space for use by GS.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: Previously, we would always use the same push constant allocation regardless of what shader programs were being run: the available push constant space was split into 2 equal size partitions, one for the vertex shader, and one for the fragment shader. Now

Re: [Mesa-dev] [PATCH 10/22] i965: Make sure constants re-sent after constant buffer reallocation.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: The hardware requires that after constant buffers for a stage are allocated using a 3DSTATE_PUSH_CONSTANT_ALLOC_{VS,HS,DS,GS,PS} command, and prior to execution of a 3DPRIMITIVE, the corresponding stage's constant buffers must be reprogrammed using a 3DST

Re: [Mesa-dev] [PATCH 2/4] nv50: implement new float comparison instructions

2013-08-28 Thread Lucas Stach
Am Dienstag, den 13.08.2013, 20:14 +0200 schrieb Christoph Bumiller: > On 13.08.2013 19:04, srol...@vmware.com wrote: > > From: Roland Scheidegger > > > > untested. > > Looks like it should work though, thanks. > nv50 only supported u32 result all along and on nvc0 both cases are > already handle

[Mesa-dev] [PATCH 2/2] i965: Remove never used DPA2 opcode.

2013-08-28 Thread Matt Turner
Existed since the initial import, but appears to never have actually existed. --- src/mesa/drivers/dri/i965/brw_defines.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h index 7e5be2a..21c8baa 100644 --- a/src/me

[Mesa-dev] [PATCH 1/2] i965: Remove never used RSR and RSL opcodes.

2013-08-28 Thread Matt Turner
Existed since the initial import, but appear to never have actually existed. --- Rotate? src/mesa/drivers/dri/i965/brw_defines.h | 2 -- src/mesa/drivers/dri/i965/brw_eu.h | 2 -- src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 -- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 2 -- 4 files chan

Re: [Mesa-dev] [PATCH 05/22] i965: Move data from brw->vs into a base class if gs will also need it.

2013-08-28 Thread Kenneth Graunke
On 08/26/2013 03:12 PM, Paul Berry wrote: This paves the way for sharing the code that will set up the vertex and geometry shader pipeline state. --- src/mesa/drivers/dri/i965/brw_context.h | 47 ++-- src/mesa/drivers/dri/i965/brw_draw.c | 3 +- src/m

Re: [Mesa-dev] [PATCH] glsl: Allow precision qualifiers for sampler types

2013-08-28 Thread Ian Romanick
On 08/27/2013 12:52 PM, Anuj Phogat wrote: > On Tue, Aug 27, 2013 at 11:53 AM, Ian Romanick wrote: >> On 08/27/2013 10:45 AM, Anuj Phogat wrote: >>> >>> GLSL 1.30 doesn't allow precision qualifiers on sampler types, >>> but in GLSL ES, sampler types are also allowed. This seems like >>> an oversig

[Mesa-dev] [PATCH 6/6] mesa: Rename gl_context::swtnl_im to vbo_context; use proper type.

2013-08-28 Thread Kenneth Graunke
The main GL context's swtnl_im field is the VBO module's vbo_context structure. Using the name "swtnl" in the name is confusing since some drivers use hardware texturing and lighting, but still rely on the VBO module for drawing. v2: Forward declare the type and use that instead of void * (su

[Mesa-dev] [PATCH 5/6] i965: Rename "prim" parameter to "prims" where it's an array.

2013-08-28 Thread Kenneth Graunke
Some drawing functions take a single _mesa_prim object, while others take an array of primitives. Both kinds of functions used a parameter called "prim" (the singular form), which was confusing. Using the plural form, "prims," clearly communicates that the parameter is an array of primitives. Si

[Mesa-dev] [PATCH 4/6] i965: Clarify that we only check one prim's type for cut index support.

2013-08-28 Thread Kenneth Graunke
can_cut_index_handle_prims() was passed an array of _mesa_prim objects and a count, and runs a loop for that many iterations. However, it treats the array like a pointer, repeatedly checking the first element. This is wasteful and bizarre. The VBO module will never call us with multiple primitiv

[Mesa-dev] [PATCH 3/6] i965: Use the proper element of the prim array in brw_try_draw_prims.

2013-08-28 Thread Kenneth Graunke
The VBO module actually calls us with an array of _mesa_prim objects. For example, it may break up a DrawArrays() call into multiple primitives when primitive restart is enabled. Previously, we treated prim like a pointer, always accessing element 0. This worked because all of the primitive object

[Mesa-dev] [PATCH 2/6] i965: Combine brw_emit_prim and gen7_emit_prim.

2013-08-28 Thread Kenneth Graunke
These functions have almost identical code; the only difference is that a few of the bits moved around. Adding a few trivial conditionals allows the same function to work on all generations, and the resulting code is still quite readable. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/

[Mesa-dev] [PATCH 1/6] i965: Remove unused ATTRIB_BIT_DWORDS define.

2013-08-28 Thread Kenneth Graunke
--- src/mesa/drivers/dri/i965/brw_context.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index c456e61..3cb6dc6 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_c

[Mesa-dev] [PATCH] gallivm: support per-pixel min/mag filter in SoA path

2013-08-28 Thread sroland
From: Roland Scheidegger Since we can have per-pixel lod we should also honor the filter per-pixel (in fact we didn't honor it per quad neither in the multiple quad case). Do this by running the linear path and simply beating the weights into shape (the sample with the higher weight is the one wh

Re: [Mesa-dev] [PATCH] draw: fix point/line/triangle determination in draw_need_pipeline()

2013-08-28 Thread Roland Scheidegger
Am 29.08.2013 01:14, schrieb Brian Paul: > The previous point/line/triangle() functions didn't handle GS primitives. > --- > src/gallium/auxiliary/draw/draw_pipe_validate.c | 31 > +-- > 1 file changed, 6 insertions(+), 25 deletions(-) > > diff --git a/src/gallium/auxiliary

Re: [Mesa-dev] [PATCH 1/2] i965/vs: Detect GRF sources in split_virtual_grfs send-from-GRF code.

2013-08-28 Thread Eric Anholt
Kenneth Graunke writes: > It is incorrect to assume that src[0] of a SEND-from-GRF opcode is the GRF. > VS_OPCODE_PULL_CONSTANT_LOAD_GEN7 uses an IMM as src[0], and stores the > GRF as src[1]. > > To be safe, loop over all the source registers and mark any GRFs. We > probably won't ever have mor

[Mesa-dev] [PATCH] draw: fix point/line/triangle determination in draw_need_pipeline()

2013-08-28 Thread Brian Paul
The previous point/line/triangle() functions didn't handle GS primitives. --- src/gallium/auxiliary/draw/draw_pipe_validate.c | 31 +-- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw

Re: [Mesa-dev] [PATCH 1/2] i965/gen7: Use the base_level field of the sampler to handle GL's BASE_LEVEL.

2013-08-28 Thread Kenneth Graunke
On 08/28/2013 03:27 PM, Eric Anholt wrote: This avoids the need to get the inter- and intra-tile offset and adjust our miptree info based on them. --- src/mesa/drivers/dri/i965/gen7_sampler_state.c| 19 +-- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 14 +++-

Re: [Mesa-dev] [PATCH 8/8] i965: Avoid flushing the batch for every blorp op.

2013-08-28 Thread Eric Anholt
Paul Berry writes: > On 27 August 2013 15:21, Eric Anholt wrote: > >> This brings over the batch-wrap-prevention and aperture space checking >> code from the normal brw_draw.c path, so that we don't need to flush the >> batch every time. >> >> There's a risk here if the intel_emit_post_sync_nonz

[Mesa-dev] [PATCH 2/2] i965: Switch gen4-6 to using the sampler's base level for GL BASE_LEVEL.

2013-08-28 Thread Eric Anholt
Thanks to Ken for trawling through my neglected public branches and finding the bug in this change (inside a megacommit) that made me abandon this work. --- src/mesa/drivers/dri/i965/brw_wm_sampler_state.c | 19 +-- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 16 +++-

[Mesa-dev] [PATCH 1/2] i965/gen7: Use the base_level field of the sampler to handle GL's BASE_LEVEL.

2013-08-28 Thread Eric Anholt
This avoids the need to get the inter- and intra-tile offset and adjust our miptree info based on them. --- src/mesa/drivers/dri/i965/gen7_sampler_state.c| 19 +-- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 14 +++--- 2 files changed, 12 insertions(+), 21 delet

Re: [Mesa-dev] [PATCH 1/2] gallivm: refactor num_lods handling

2013-08-28 Thread Jose Fonseca
LGTM. Jose - Original Message - > From: Roland Scheidegger > > This is just preparation for per-pixel (or per-quad in case of multiple > quads) > min/mag filter since some assumptions about number of miplevels being equal > to number of lods no longer holds true. > This change does not

[Mesa-dev] [PATCH] glsl: propagate max_array_access through function calls

2013-08-28 Thread Dominik Behr
Fixes a bug where if an uniform array is passed to a function the accesses to the array are not propagated so later all but the first vector of the uniform array are removed in parcel_out_uniform_storage resulting in broken shaders and out of bounds access to arrays in brw::vec4_visitor::pack_unifo

Re: [Mesa-dev] [PATCH] r600g/compute: Fix bug in compute memory pool

2013-08-28 Thread Aaron Watry
The changes look good to me... That seems to be a much more sane way to add the item to the beginning of the linked list. I've tested this on CEDAR (Radeon 5400) without any OpenCL regressions, and the only piglit change was that the new piglit test created for this bug now passes. --Aaron On T

[Mesa-dev] [PATCH 2/2] i965/fs: Detect GRF sources in split_virtual_grfs send-from-GRF code.

2013-08-28 Thread Kenneth Graunke
It is incorrect to assume that src[0] of a SEND-from-GRF opcode is the GRF. For example, FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD uses src[1] for the GRF. To be safe, loop over all the source registers and mark any GRFs. We probably won't ever have more than one, but it's simpler to just check all t

[Mesa-dev] [PATCH 1/2] i965/vs: Detect GRF sources in split_virtual_grfs send-from-GRF code.

2013-08-28 Thread Kenneth Graunke
It is incorrect to assume that src[0] of a SEND-from-GRF opcode is the GRF. VS_OPCODE_PULL_CONSTANT_LOAD_GEN7 uses an IMM as src[0], and stores the GRF as src[1]. To be safe, loop over all the source registers and mark any GRFs. We probably won't ever have more than one, but it's simpler to just

Re: [Mesa-dev] [PATCH] r600g: fix color exports when we have no CBs

2013-08-28 Thread Marek Olšák
On Wed, Aug 28, 2013 at 7:56 PM, Vadim Girlin wrote: > On 08/28/2013 01:15 PM, Christian König wrote: >> >> Well, for this discussion let's just assume that we fixed the delay in >> the upper layers of the stack and the driver sees the shader code as >> soon as the application (if I understood it

[Mesa-dev] [PATCH 3/6] r600g: move streamout state to drivers/radeon

2013-08-28 Thread Marek Olšák
It looks like this patch got stuck in the moderation queue. You can also find it here: http://cgit.freedesktop.org/~mareko/mesa/commit/?h=radeonsi-stuff&id=13bb26b24e738da6a8c51ee33876dc541fcde9da Marek ___ mesa-dev mailing list mesa-dev@lists.freedeskt

Re: [Mesa-dev] [PATCH] r600g: fix color exports when we have no CBs

2013-08-28 Thread Vadim Girlin
On 08/28/2013 01:15 PM, Christian König wrote: Well, for this discussion let's just assume that we fixed the delay in the upper layers of the stack and the driver sees the shader code as soon as the application (if I understood it correctly Vadim has just volunteered for the job). No, I'm not r

[Mesa-dev] [PATCH] vbo: Implement new gs prim types in vbo_count_tessellated_primitives.

2013-08-28 Thread Paul Berry
--- src/mesa/vbo/vbo_exec.c | 12 1 file changed, 12 insertions(+) diff --git a/src/mesa/vbo/vbo_exec.c b/src/mesa/vbo/vbo_exec.c index 9c20bde..aa2c7b0 100644 --- a/src/mesa/vbo/vbo_exec.c +++ b/src/mesa/vbo/vbo_exec.c @@ -149,6 +149,18 @@ vbo_count_tessellated_primitives(GLenum mod

Re: [Mesa-dev] [PATCH 13/22] i965/gs: Implement support for geometry shader surfaces.

2013-08-28 Thread Paul Berry
On 26 August 2013 15:12, Paul Berry wrote: > This patch implements pull constant upload, binding table upload, and > surface setup for geometry shaders, by re-using vertex shader code > that was generalized in previous patches. > > Based on work by Eric Anholt . > --- > src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH] radeonsi: Do not suspend timer queries

2013-08-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Aug 28, 2013 at 6:42 PM, Niels Ole Salscheider wrote: > Signed-off-by: Niels Ole Salscheider > --- > src/gallium/drivers/radeonsi/r600.h| 1 + > src/gallium/drivers/radeonsi/r600_hw_context.c | 28 > ++ > src/gallium

[Mesa-dev] [PATCH 5/6] radeonsi: convert constant buffers to si_descriptors

2013-08-28 Thread Marek Olšák
There is a new "class" si_buffer_resources, which should be good enough for implementing any kind of buffer bindings (constant buffers, vertex buffers, streamout buffers, shader storage buffers, etc.) I don't even keep a copy of pipe_constant_buffer - we don't need it. The main motivation behind

[Mesa-dev] [PATCH 0/6] radeonsi: Minor cleanups and improvements

2013-08-28 Thread Marek Olšák
This series contains the changes my transform feedback work depends on, but there are some useful fixes too, making it worth comitting earlier. The last patch is the most important one, because it fixes the issues we had with the emission of resource descriptors that we had to use 256 resource

[Mesa-dev] [PATCH 6/6] radeonsi: simplify and improve flushing

2013-08-28 Thread Marek Olšák
This mimics r600g. The R600_CONTEXT_xxx flags are added to rctx->b.flags and si_emit_cache_flush emits the packets. That's it. The shared radeon code tells us when the streamout cache should be flushed, so we have to check the flags anyway. There is a new atom "cache_flush", because caches must be

[Mesa-dev] [PATCH 2/6] radeonsi: cleanup initialization of SGPR shader parameters

2013-08-28 Thread Marek Olšák
--- src/gallium/drivers/radeonsi/radeonsi_shader.c | 32 +++--- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index 2b1928a..13bc92c 100644 --- a/src/gallium/drive

[Mesa-dev] [PATCH 1/6] r600g,radeonsi: remove unused variables

2013-08-28 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_pipe.h | 3 --- src/gallium/drivers/radeonsi/radeonsi_pipe.h | 5 - 2 files changed, 8 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 21d68c9..1564cc3 100644 --- a/src/gallium/drivers/r600/

[Mesa-dev] [PATCH] radeon/uvd: fix MPEG2/4 ref frame index limit

2013-08-28 Thread Christian König
From: Christian König Otherwise the first few frames have an incorrect reference index. Signed-off-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/d

[Mesa-dev] [PATCH] radeonsi: Do not suspend timer queries

2013-08-28 Thread Niels Ole Salscheider
Signed-off-by: Niels Ole Salscheider --- src/gallium/drivers/radeonsi/r600.h| 1 + src/gallium/drivers/radeonsi/r600_hw_context.c | 28 ++ src/gallium/drivers/radeonsi/r600_query.c | 7 +-- src/gallium/drivers/radeonsi/radeonsi_pipe.c | 2 +- src/

Re: [Mesa-dev] [PATCH 8/8] i965: Avoid flushing the batch for every blorp op.

2013-08-28 Thread Paul Berry
On 27 August 2013 15:21, Eric Anholt wrote: > This brings over the batch-wrap-prevention and aperture space checking > code from the normal brw_draw.c path, so that we don't need to flush the > batch every time. > > There's a risk here if the intel_emit_post_sync_nonzero_flush() call isn't > high

Re: [Mesa-dev] tgsi dump and parsing

2013-08-28 Thread Jose Fonseca
Yes, if we change the representation, we should keep backwards compatability in tgsi text parsing Jose - Original Message - > There are some TGSI shaders parsed by tgsi_text_translate which > declare floating-point immediates. Any incompatible change to the > parser would break them. >

Re: [Mesa-dev] tgsi dump and parsing

2013-08-28 Thread Marek Olšák
There are some TGSI shaders parsed by tgsi_text_translate which declare floating-point immediates. Any incompatible change to the parser would break them. Marek On Wed, Aug 28, 2013 at 3:57 PM, Jose Fonseca wrote: > - Original Message - >> On Wed, Aug 28, 2013 at 3:32 PM, Dave Airlie wr

[Mesa-dev] Vendor-neutral OpenGL dispatching library

2013-08-28 Thread Brian Nguyen
Last September, Andy Ritger proposed updating the Linux OpenGL ABI to allow for multiple vendors to co-exist within a single process and OpenGL applications to dispatch commands to different vendors with per-context granularity. The current proposal [1] calls for a vendor-neutral "API library" whic

Re: [Mesa-dev] [PATCH] draw: fix segfaults with aaline and aapoint stages disabled

2013-08-28 Thread Jose Fonseca
- Original Message - > There are drivers not using these optional stages. > > Broken by a3ae5dc7dd5c2f8893f86a920247e690e550ebd4. > > Cc: mesa-sta...@lists.freedesktop.org > --- > src/gallium/auxiliary/draw/draw_context.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) >

Re: [Mesa-dev] obtain def-use chain in glsl s-expression

2013-08-28 Thread Kenneth Graunke
On 08/27/2013 11:34 PM, Liu Xin wrote: Hi, Mesa community, I am not familiar with S-expression or other forms of lisp languages. That's OK - the IR has no resemblance to actual Scheme or Lisp programming. We just print and read the () syntax because it's simple. I am working on GLSL IR tr

[Mesa-dev] [PATCH 2/2] gallivm: don't calculate square root of rho if we use accurate rho method

2013-08-28 Thread sroland
From: Roland Scheidegger While a sqrt here and there shouldn't hurt much (depending on the cpu) it is possible to completely omit it since rho is only used for calculating lod and there log2(x) == 0.5*log2(x^2). Depending on the exact path taken for calculating lod this means we get a simple mul

[Mesa-dev] [PATCH 1/2] gallivm: refactor num_lods handling

2013-08-28 Thread sroland
From: Roland Scheidegger This is just preparation for per-pixel (or per-quad in case of multiple quads) min/mag filter since some assumptions about number of miplevels being equal to number of lods no longer holds true. This change does not change behavior yet (though theoretically when forcing p

Re: [Mesa-dev] [PATCH] r600g: fix color exports when we have no CBs

2013-08-28 Thread Henri Verbeet
On 28 August 2013 12:17, Marek Olšák wrote: > Yeah, st/mesa also compiles shaders on the first use, so we've got 3 > places to fix: Wine, st/mesa, the driver. > For what it's worth, while Wine definitely has some room for improvement in this regard, in some cases we don't get the shaders any earli

Re: [Mesa-dev] [PATCH V2 03/15] mesa: Add a clone function to mesa hash

2013-08-28 Thread Timothy Arceri
- Original Message - From: Brian Paul >On 08/27/2013 08:39 PM, Timothy Arceri wrote: >> V2: const qualify table parameter >> >> Signed-off-by: Timothy Arceri >> --- >>  src/mesa/main/hash.c |  28 >>  src/mesa/main/hash.h |    3 +++ >>  2 files changed, 3

Re: [Mesa-dev] [PATCH V2 03/15] mesa: Add a clone function to mesa hash

2013-08-28 Thread Brian Paul
On 08/27/2013 08:39 PM, Timothy Arceri wrote: V2: const qualify table parameter Signed-off-by: Timothy Arceri --- src/mesa/main/hash.c | 28 src/mesa/main/hash.h |3 +++ 2 files changed, 31 insertions(+) Reviewed-by: Brian Paul Do you need someone to

Re: [Mesa-dev] tgsi dump and parsing

2013-08-28 Thread Jose Fonseca
- Original Message - > On Wed, Aug 28, 2013 at 3:32 PM, Dave Airlie wrote: > >>> IMM[0] FLT32 { 0x, 0x, 0x, 0x } # 1.0, 3.0, 2.0, 4.0 > >> > >> If you use "%.9g" instead of "%.4f" then floating point numbers will be > >> preserved without loss of precision. > >> > > > > I

Re: [Mesa-dev] [PATCH] r600g: fix color exports when we have no CBs

2013-08-28 Thread Christian König
Well, for this discussion let's just assume that we fixed the delay in the upper layers of the stack and the driver sees the shader code as soon as the application (if I understood it correctly Vadim has just volunteered for the job). Also let's assume that shaders are small and having allot o

[Mesa-dev] obtain def-use chain in glsl s-expression

2013-08-28 Thread Liu Xin
Hi, Mesa community, I am not familiar with S-expression or other forms of lisp languages. I am working on GLSL IR transformation. for example, i want to change a variable to a array of same type. By now , i can find the definition of a variable. How can i update all uses of this variable in

[Mesa-dev] glsl: memory leak in parsing extension statements?

2013-08-28 Thread Aras Pranckevicius
Hi, Looking at the code, is there a potential memory leak in GLSL parser wrt extension statements? glsl_lexer.ll has: [_a-zA-Z][_a-zA-Z0-9]* { yylval->identifier = strdup(yytext); return IDENTIFIER; } i.e. calls strdup on the token (there's one other place that calls strdup;

Re: [Mesa-dev] [PATCH] glx: make the interval of LIBGL_SHOW_FPS adjustable

2013-08-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Aug 28, 2013 at 6:14 AM, Chia-I Wu wrote: > LIBGL_SHOW_FPS=1 makes GLX print FPS every second while other values do > nothing. Extend it so that LIBGL_SHOW_FPS=N will print the FPS every N > seconds. > --- > src/glx/dri2_glx.c | 12 > 1 file

Re: [Mesa-dev] [PATCH] r600g: fix color exports when we have no CBs

2013-08-28 Thread Marek Olšák
Yeah, st/mesa also compiles shaders on the first use, so we've got 3 places to fix: Wine, st/mesa, the driver. Marek On Wed, Aug 28, 2013 at 2:07 AM, Vadim Girlin wrote: > On 08/28/2013 02:59 AM, Marek Olšák wrote: >> >> First, you won't really see any significant continual difference in >> fram

Re: [Mesa-dev] [PATCH] glsl: propagate max_array_access through function calls

2013-08-28 Thread Dominik Behr
Ah it is by design. Sentinels are special nodes with no payload. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev