Re: [Mesa-dev] [PATCH 02/13] i965/fs: Remove creation of a MOV instruction that's never used.

2013-03-22 Thread Kenneth Graunke
On 03/20/2013 05:36 PM, Eric Anholt wrote: We weren't inserting it into the list, so it did nothing. This line was replaced by the MOV/MUL block above. NOTE: This is a candidate for the 9.1 branch. --- src/mesa/drivers/dri/i965/brw_fs.cpp |1 - 1 file changed, 1 deletion(-) diff --git a

Re: [Mesa-dev] [PATCH 5/5] radeonsi: add preloading for all samplers

2013-03-22 Thread Christian König
Am 21.03.2013 17:20, schrieb Alex Deucher: On Thu, Mar 21, 2013 at 12:09 PM, Christian König wrote: Am 21.03.2013 15:10, schrieb Alex Deucher: On Thu, Mar 21, 2013 at 7:38 AM, Christian König wrote: From: Christian König Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/

Re: [Mesa-dev] [PATCH 5/5] radeonsi: add preloading for all samplers

2013-03-22 Thread Christian König
Am 21.03.2013 17:17, schrieb Michel Dänzer: On Don, 2013-03-21 at 17:12 +0100, Christian König wrote: Am 21.03.2013 15:06, schrieb Michel Dänzer: When I tried this earlier, something broke. Unfortunately, I can't seem to remember or dig up if it was a piglit test or e.g. one of the sampler demo

Re: [Mesa-dev] [PATCH 5/5] radeonsi: add preloading for all samplers

2013-03-22 Thread Michel Dänzer
On Fre, 2013-03-22 at 11:04 +0100, Christian König wrote: > Am 21.03.2013 17:17, schrieb Michel Dänzer: > > On Don, 2013-03-21 at 17:12 +0100, Christian König wrote: > >> Am 21.03.2013 15:06, schrieb Michel Dänzer: > >>> When I tried this earlier, something broke. Unfortunately, I can't seem > >>>

[Mesa-dev] [PATCH] android: fix Android.mk bug in mesa/drivers/dri/common

2013-03-22 Thread groleo
From: Adrian Marius Negreanu target-specific variables are undefined when used as pre-requisites. instead, use secondary-expansion. I noticed this when building the patch: i965: Add a driconf option to disable flush throttling Signed-off-by: Adrian Marius Negreanu --- src/mesa/drivers/dr

[Mesa-dev] [PATCH] st/mesa: fix crash with blit-based GetTexImage

2013-03-22 Thread Marek Olšák
https://bugs.freedesktop.org/show_bug.cgi?id=62573 Tested-by: Andreas Boll --- src/mesa/state_tracker/st_cb_texture.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index c922a31..5f92fb3 100

Re: [Mesa-dev] [PATCH] llvmpipe: add EXT_packed_float render target format support

2013-03-22 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > New conversion code to handle conversion from/to r11g11b10 AoS to/from > SoA floats, and also add code for conversion from rgb9e5 AoS to float SoA > (which works pretty much the same as r11g11b10 except for the packing). > (This code sho

Re: [Mesa-dev] [PATCH 5/5] radeonsi: add preloading for all samplers

2013-03-22 Thread Alex Deucher
On Fri, Mar 22, 2013 at 5:54 AM, Christian König wrote: > Am 21.03.2013 17:20, schrieb Alex Deucher: > >> On Thu, Mar 21, 2013 at 12:09 PM, Christian König >> wrote: >>> >>> Am 21.03.2013 15:10, schrieb Alex Deucher: >>> On Thu, Mar 21, 2013 at 7:38 AM, Christian König wrote: > >>>

[Mesa-dev] [PATCH] primgen: new test for PRIMITIVES_GENERATED query

2013-03-22 Thread Marek Olšák
--- tests/all.tests|1 + .../spec/ext_transform_feedback/CMakeLists.gl.txt |2 +- tests/spec/ext_transform_feedback/primgen.c| 114 3 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 tests/spec/ext_transf

Re: [Mesa-dev] [PATCH] primgen: new test for PRIMITIVES_GENERATED query

2013-03-22 Thread Marek Olšák
Please disregard this patch. Marek On Fri, Mar 22, 2013 at 2:22 PM, Marek Olšák wrote: > --- > tests/all.tests|1 + > .../spec/ext_transform_feedback/CMakeLists.gl.txt |2 +- > tests/spec/ext_transform_feedback/primgen.c| 114 >

Re: [Mesa-dev] [PATCH] llvmpipe: add EXT_packed_float render target format support

2013-03-22 Thread Roland Scheidegger
Am 22.03.2013 13:28, schrieb Jose Fonseca: > - Original Message - >> From: Roland Scheidegger >> >> New conversion code to handle conversion from/to r11g11b10 AoS to/from >> SoA floats, and also add code for conversion from rgb9e5 AoS to float SoA >> (which works pretty much the same as r1

Re: [Mesa-dev] [PATCH] llvmpipe: add EXT_packed_float render target format support

2013-03-22 Thread Jose Fonseca
- Original Message - > Am 22.03.2013 13:28, schrieb Jose Fonseca: > >> @@ -1009,6 +1020,17 @@ lp_blend_type_from_format_desc(const struct > >> util_format_description *format_desc > >> unsigned i; > >> unsigned chan; > >> > >> + if (format_desc->format == PIPE_FORMAT_R11G11B10

[Mesa-dev] [PATCH] i965: Clarify nomenclature: vert_result -> varying

2013-03-22 Thread Paul Berry
This patch removes the terminology "vert_result" from the i965 driver, replacing it with "varying". The old terminology, "vert_result", was confusing because (a) it referred to the enum gl_vert_result, which no longer exists (it was replaced with gl_varying_slot), and (b) it implied a vertex outpu

[Mesa-dev] [Bug 62612] dispatch_sanity test lumps GL4.0+ functions into 4.3

2013-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62612 --- Comment #1 from Ian Romanick --- (In reply to comment #0) > I noticed: > >{ "glDrawTransformFeedback", 43, -1 }, >{ "glDrawTransformFeedbackStream", 43, -1 }, > > which are from ARB_transform_feedback2 and 3 respectively are in GL 4

Re: [Mesa-dev] [PATCH] i965: Clarify nomenclature: vert_result -> varying

2013-03-22 Thread Ian Romanick
On 03/22/2013 10:23 AM, Paul Berry wrote: This patch removes the terminology "vert_result" from the i965 driver, replacing it with "varying". The old terminology, "vert_result", was confusing because (a) it referred to the enum gl_vert_result, which no longer exists (it was replaced with gl_vary

Re: [Mesa-dev] [PATCH] i965: Clarify nomenclature: vert_result -> varying

2013-03-22 Thread Eric Anholt
Paul Berry writes: > This patch removes the terminology "vert_result" from the i965 driver, > replacing it with "varying". The old terminology, "vert_result", was > confusing because (a) it referred to the enum gl_vert_result, which no > longer exists (it was replaced with gl_varying_slot), and

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-22 Thread Eric Anholt
Paul Berry writes: > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c > b/src/mesa/drivers/dri/i965/brw_vs.c > index c8ca018..7e941dd 100644 > --- a/src/mesa/drivers/dri/i965/brw_vs.c > +++ b/src/mesa/drivers/dri/i965/brw_vs.c > @@ -66,6 +66,12 @@ brw_compute_vue_map(struct brw_context *brw, struc

[Mesa-dev] [Bug 62357] llvmpipe: Fragment Shader with "return" in main causes back output

2013-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62357 Roland Scheidegger changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] Status of GL_ARB_separate_shader_objects? I would like to help.

2013-03-22 Thread gregory hainaut
Hello, I would like to run PCSX2 on mesa drivers but unfortunately it miss a couple of features, mostly the GL_ARB_separate_shader_objects extension. I think I can help to implement this extension at least the opengl (ie not glsl) plumbering part (with some piglit tests). The extension GL_EXT_sep

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-22 Thread Paul Berry
On 22 March 2013 12:32, Eric Anholt wrote: > Paul Berry writes: > > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c > b/src/mesa/drivers/dri/i965/brw_vs.c > > index c8ca018..7e941dd 100644 > > --- a/src/mesa/drivers/dri/i965/brw_vs.c > > +++ b/src/mesa/drivers/dri/i965/brw_vs.c > > @@ -66,6 +66,

[Mesa-dev] [Bug 62357] llvmpipe: Fragment Shader with "return" in main causes back output

2013-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62357 --- Comment #13 from José Fonseca --- (In reply to comment #12) > This is fixed with 5af7b45986d1b56c568ebe9c3a40d48853e2e9ff. > Not sure if the testcase would be that useful as a piglit test. Why not? -- You are receiving this mail because: Y

[Mesa-dev] [Bug 62357] llvmpipe: Fragment Shader with "return" in main causes back output

2013-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62357 --- Comment #14 from Roland Scheidegger --- (In reply to comment #13) > (In reply to comment #12) > > This is fixed with 5af7b45986d1b56c568ebe9c3a40d48853e2e9ff. > > Not sure if the testcase would be that useful as a piglit test. > > Why not?

[Mesa-dev] [Bug 62357] llvmpipe: Fragment Shader with "return" in main causes back output

2013-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62357 --- Comment #15 from José Fonseca --- (In reply to comment #14) > (In reply to comment #13) > > (In reply to comment #12) > > > This is fixed with 5af7b45986d1b56c568ebe9c3a40d48853e2e9ff. > > > Not sure if the testcase would be that useful as a

[Mesa-dev] [PATCH] gallium/tgsi: fix valgrind warning

2013-03-22 Thread Marek Olšák
"Conditional jump or move depends on uninitialised value(s)" --- src/gallium/auxiliary/tgsi/tgsi_text.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index 5abcb45..78534d9 100644 --- a/src/ga

[Mesa-dev] [PATCH] i965/fs: Improve performance of copy propagation dataflow using bitsets.

2013-03-22 Thread Eric Anholt
Reduces compile time of l4d2's slowest shader by 17.8% +/- 1.3% (n=10). --- .../drivers/dri/i965/brw_fs_copy_propagation.cpp | 67 ++-- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/

Re: [Mesa-dev] Status of GL_ARB_separate_shader_objects? I would like to help.

2013-03-22 Thread Matt Turner
On Fri, Mar 22, 2013 at 1:00 PM, gregory hainaut wrote: > * GenProgramPipelines doesn't create object! > ... Spec extract: > These names are marked as used, for the purposes of GenBuffers only, > but they acquire buffer state only when they are first bound with > BindBuffer (see below), just a

[Mesa-dev] [PATCH 0/5] Head-up display for Gallium DRI2 drivers

2013-03-22 Thread Marek Olšák
Hi everyone, one image is better than a thousand words: http://people.freedesktop.org/~mareko/gallium-hud.png So there you have it. This gallium module can draw transparent graphs and text on top of what apps are rendering. By default, it can show framerate, cpu load (each CPU or the average of

[Mesa-dev] [PATCH 1/5] gallium: add interface for driver queries like performance counters, etc.

2013-03-22 Thread Marek Olšák
The pipe query interface is reused. The list of available queries can be obtained using pipe_screen::get_driver_query_info. --- src/gallium/auxiliary/util/u_inlines.h |2 +- src/gallium/include/pipe/p_defines.h | 12 src/gallium/include/pipe/p_screen.h| 11 +++ 3

[Mesa-dev] [PATCH 3/5] st/dri: integrate the HUD

2013-03-22 Thread Marek Olšák
--- src/gallium/state_trackers/dri/common/dri_context.c |5 + src/gallium/state_trackers/dri/common/dri_context.h |2 ++ src/gallium/state_trackers/dri/common/dri_drawable.c |4 3 files changed, 11 insertions(+) diff --git a/src/gallium/state_trackers/dri/common/dri_context

[Mesa-dev] [PATCH 4/5] r600g: add a driver query returning the number of draw_vbo calls

2013-03-22 Thread Marek Olšák
between begin_query and end_query --- src/gallium/drivers/r600/r600_pipe.c | 19 +++ src/gallium/drivers/r600/r600_pipe.h |6 src/gallium/drivers/r600/r600_query.c| 44 +++--- src/gallium/drivers/r600/r600_state_common.c |1 + 4

[Mesa-dev] [PATCH 5/5] r600g: add a driver query returning the amount of requested VRAM and GTT memory

2013-03-22 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_pipe.c |3 +++ src/gallium/drivers/r600/r600_pipe.h |2 ++ src/gallium/drivers/r600/r600_query.c | 16 src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 14 ++ src/gallium/winsys/rade

[Mesa-dev] [PATCH] i965: Dump shader source for linked shader programs.

2013-03-22 Thread Eric Anholt
We dump shader source in ir_to_mesa.cpp, and we dump linked programs here, but we had no reference from the linked programs to their source. This was preventing improvement of shader-db to use linked shader programs instead of individual shader files (which is bogus, because it means we optimize o

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-22 Thread Eric Anholt
Paul Berry writes: > On 22 March 2013 12:32, Eric Anholt wrote: > >> Paul Berry writes: >> > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c >> b/src/mesa/drivers/dri/i965/brw_vs.c >> > index c8ca018..7e941dd 100644 >> > --- a/src/mesa/drivers/dri/i965/brw_vs.c >> > +++ b/src/mesa/drivers/dri/i

[Mesa-dev] [PATCH] gallivm: Add code for rgb9e5 shared exponent format to float conversion

2013-03-22 Thread sroland
From: Roland Scheidegger And use this (and the code for r11g11b10 packed float to float conversion) in the soa texturing code (the generated code looks quite good). Should be an order of magnitude faster probably than using the fallback (not measured). Tested with piglit texwrap GL_EXT_packed_flo

Re: [Mesa-dev] [PATCH v2 06/15] glsl parser: allow in & out for interface block members

2013-03-22 Thread Jordan Justen
On Wed, Mar 20, 2013 at 5:32 PM, Eric Anholt wrote: > Jordan Justen writes: > >> Previously uniform blocks allowed for the 'uniform' keyword >> to be used with members of a uniform blocks. With interface >> blocks 'in' can be used on 'in' interface block members and >> 'out' can be used on 'out'