Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Chia-I Wu
On Wed, Apr 17, 2013 at 5:25 AM, Dave Airlie airl...@gmail.com wrote: Those are just ideas. I'm open to discussion. The driver is disabled by default and needs to be enabled via --with-gallium-drivers=i965. I think a warning + maybe something like

Re: [Mesa-dev] [PATCH] radeon/llvm: Use LLVM C API for compiling LLVM IR to ISA.

2013-04-17 Thread Mathias Fröhlich
Tom, -class LLVMEnsureMultithreaded { -public: - LLVMEnsureMultithreaded() - { - llvm_start_multithreaded(); - } -}; - -static LLVMEnsureMultithreaded lLVMEnsureMultithreaded; Removing this leads to crashes in llvm with applications that concurrently work on different gl

Re: [Mesa-dev] [PATCH 2/2] gallium: Desambiguate TGSI_OPCODE_IF.

2013-04-17 Thread Michel Dänzer
On Son, 2013-04-14 at 09:12 +0100, jfons...@vmware.com wrote: diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 314c963..dfc7cbc 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++

[Mesa-dev] [PATCH] mesa: fix type comparison error in sub-texture error checking code

2013-04-17 Thread Tapani Pälli
patch fixes a crash that happens if glTexSubImage2D is called with a negative xoffset. Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index

Re: [Mesa-dev] [PATCH 2/2] gallium: Desambiguate TGSI_OPCODE_IF.

2013-04-17 Thread Jose Fonseca
- Original Message - On Son, 2013-04-14 at 09:12 +0100, jfons...@vmware.com wrote: diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 314c963..dfc7cbc 100644 ---

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Chia-I Wu
On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšák mar...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If you could extend Gallium to consume

Re: [Mesa-dev] [PATCH] radeon/llvm: Use LLVM C API for compiling LLVM IR to ISA.

2013-04-17 Thread Christian König
Am 17.04.2013 01:13, schrieb Tom Stellard: From: Tom Stellard thomas.stell...@amd.com The LLVM C API is considered stable and should never change, so it is much more desirable to use than the LLVM C++ API, which is constantly in flux. Looks good on first glance, but I would separate the

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2013 at 07:25:12AM +1000, Dave Airlie wrote: Those are just ideas. I'm open to discussion. The driver is disabled by default and needs to be enabled via --with-gallium-drivers=i965. I think a warning + maybe something like --with-gallium-drivers=i965g-unofficial might

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Jose Fonseca
- Original Message - On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšák mar...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If

[Mesa-dev] [PATCH] egl-static: use automake conditionals for defining FEATURE_{GL, ES1, ES2}

2013-04-17 Thread Andreas Boll
Removes the need of API_DEFINES. Cc: Brian Paul bri...@vmware.com --- Brian, do you have somewhere an updated branch of your remove-mfeatures work? I'd like to rebase my remove API_DEFINES patch. src/gallium/targets/egl-static/Makefile.am | 12 +++- 1 file changed, 11 insertions(+),

[Mesa-dev] [PATCH] gallivm: JIT symbol resolution with linux perf.

2013-04-17 Thread jfonseca
From: José Fonseca jfons...@vmware.com Details on docs/llvmpipe.html --- bin/perf-annotate-jit | 240 configure.ac |7 - docs/llvmpipe.html | 40 ++--

Re: [Mesa-dev] [PATCH 8/8] draw/gs: make sure geometry shaders don't overflow

2013-04-17 Thread Jose Fonseca
Series looks good to me. Reviewed-by: Jose Fonseca jfons...@vmware.com - Original Message - The specification says that the geometry shader should exit if the number of emitted vertices is bigger or equal to max_output_vertices and we can't do that because we're running in the SoA

[Mesa-dev] [Bug 63404] [wayland egl] intel_do_flush_locked failed: invalid argument, crash

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63404 --- Comment #2 from Kristian Høgsberg k...@bitplanet.net --- Joe, if you're up for compiling a new kernel, here are two patches you can try http://lists.freedesktop.org/archives/dri-devel/2013-April/037101.html against Linus git master. --

[Mesa-dev] [Bug 63404] [wayland egl] intel_do_flush_locked failed: invalid argument, crash

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63404 --- Comment #3 from Joe Konno joe.ko...@linux.intel.com --- I'm up for it. I'll give it a go later today. (In reply to comment #2) Joe, if you're up for compiling a new kernel, here are two patches you can try

Re: [Mesa-dev] [PATCH] mesa: fix type comparison error in sub-texture error checking code

2013-04-17 Thread Brian Paul
On 04/17/2013 12:07 AM, Tapani Pälli wrote: patch fixes a crash that happens if glTexSubImage2D is called with a negative xoffset. Signed-off-by: Tapani Pällitapani.pa...@intel.com --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH] gallivm: JIT symbol resolution with linux perf.

2013-04-17 Thread Brian Paul
On 04/17/2013 06:34 AM, jfons...@vmware.com wrote: From: José Fonsecajfons...@vmware.com Details on docs/llvmpipe.html --- bin/perf-annotate-jit | 240 configure.ac |7 - docs/llvmpipe.html

Re: [Mesa-dev] [PATCH] egl-static: use automake conditionals for defining FEATURE_{GL, ES1, ES2}

2013-04-17 Thread Brian Paul
On 04/17/2013 03:36 AM, Andreas Boll wrote: Removes the need of API_DEFINES. Cc: Brian Paulbri...@vmware.com --- Brian, do you have somewhere an updated branch of your remove-mfeatures work? I'd like to rebase my remove API_DEFINES patch. I'm trickling out the patches from that branch. I'll

[Mesa-dev] [Bug 63645] New: g3dvl should be disabled when not building gallium drivers

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63645 Priority: medium Bug ID: 63645 Assignee: mesa-dev@lists.freedesktop.org Summary: g3dvl should be disabled when not building gallium drivers Severity: normal

Re: [Mesa-dev] [PATCH] gallivm: JIT symbol resolution with linux perf.

2013-04-17 Thread Jose Fonseca
- Original Message - On 04/17/2013 06:34 AM, jfons...@vmware.com wrote: From: José Fonsecajfons...@vmware.com Details on docs/llvmpipe.html --- bin/perf-annotate-jit | 240 configure.ac

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Brian Paul
On 04/17/2013 02:31 AM, Jose Fonseca wrote: - Original Message - On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšákmar...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wuolva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turnermatts...@gmail.com wrote: I

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Brian Paul
On 04/16/2013 01:58 PM, Chia-I Wu wrote: If you could agree with me, then, technically, we need to make the new driver less confusing. The driver is disabled by default, of course. It can be enabled with --with-gallium-drivers=i965 now. Would it help if I change it to something like

Re: [Mesa-dev] [PATCH] gallivm: JIT symbol resolution with linux perf.

2013-04-17 Thread Roland Scheidegger
Am 17.04.2013 14:34, schrieb jfons...@vmware.com: From: José Fonseca jfons...@vmware.com Details on docs/llvmpipe.html --- bin/perf-annotate-jit | 240 configure.ac |7 - docs/llvmpipe.html

[Mesa-dev] [PATCH] docs: update release notes for 9.2

2013-04-17 Thread Andreas Boll
--- docs/relnotes/9.2.html | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/relnotes/9.2.html b/docs/relnotes/9.2.html index ec9cc47..0dcc960 100644 --- a/docs/relnotes/9.2.html +++ b/docs/relnotes/9.2.html @@ -44,8 +44,13 @@ Note: some of the new features

Re: [Mesa-dev] [PATCH] docs: update release notes for 9.2

2013-04-17 Thread Matt Turner
On Wed, Apr 17, 2013 at 8:27 AM, Andreas Boll andreas.boll@gmail.com wrote: --- docs/relnotes/9.2.html | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/relnotes/9.2.html b/docs/relnotes/9.2.html index ec9cc47..0dcc960 100644 ---

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Ian Romanick
On 04/16/2013 05:09 PM, Marek Olšák wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If you could extend Gallium to consume GLSL IR it might actually

Re: [Mesa-dev] [PATCH] mesa: fix type comparison error in sub-texture error checking code

2013-04-17 Thread Ian Romanick
On 04/16/2013 11:07 PM, Tapani Pälli wrote: patch fixes a crash that happens if glTexSubImage2D is called with a negative xoffset. Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Mesa-dev] [Bug 63650] New: gallium/opencl opencl-examples test failures

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63650 Priority: medium Bug ID: 63650 Assignee: mesa-dev@lists.freedesktop.org Summary: gallium/opencl opencl-examples test failures Severity: minor Classification: Unclassified

Re: [Mesa-dev] [PATCH 09/11] mesa: remove DD_TRI_UNFILLED flag

2013-04-17 Thread Eric Anholt
Brian Paul bri...@vmware.com writes: Use alternate code in intel, r200, radeon drivers. v2: use conditional operator instead of bit shifting --- src/mesa/drivers/dri/i915/intel_tris.c |4 +++- src/mesa/drivers/dri/r200/r200_state.c |5 +++--

Re: [Mesa-dev] [PATCH 01/11] mesa: remove unused DD_LINE_SMOOTH flag

2013-04-17 Thread Eric Anholt
Other than a whitespace comment, this series is: Reviewed-by: Eric Anholt e...@anholt.net pgp7WGJWJkC9K.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 63650] gallium/opencl opencl-examples test failures

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63650 --- Comment #1 from Tom Stellard tstel...@gmail.com --- Can you post the config.log file from your mesa build? -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev

[Mesa-dev] [Bug 63650] gallium/opencl opencl-examples test failures

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63650 --- Comment #2 from Tom Stellard tstel...@gmail.com --- What commits of Mesa and LLVM are you using? You may want to try updating your mesa and llvm to the latest versions, if you haven't already. -- You are receiving this mail because: You

Re: [Mesa-dev] [PATCH 02/14] st/mesa: add a simple path to BufferData if it only discards buffer contents

2013-04-17 Thread Eric Anholt
Marek Olšák mar...@gmail.com writes: The next patch makes sure _NEW_BUFFER_OBJECT is not needlessly set for this code. This seems like a pretty dubious optimization -- on UMA systems you're increasing the memory bandwidth usage in the data case, and only trying to eliminate

Re: [Mesa-dev] [PATCH 11/14] mesa: don't flag _NEW_DEPTH in Begin/EndQuery if driver implements the functions

2013-04-17 Thread Eric Anholt
Marek Olšák mar...@gmail.com writes: We don't want to set the flag for Gallium. I think only swrast needs the flag to be set for occlusion queries. Reviewed-by: Brian Paul bri...@vmware.com v2: fix stats_wm updates in i965 Reviewed-by: Eric Anholt e...@anholt.net pgp2KgQ82ApWZ.pgp

Re: [Mesa-dev] [PATCH 05/14] mesa, i965: use NewDriverState to communicate TFB state changes with the driver

2013-04-17 Thread Eric Anholt
Marek Olšák mar...@gmail.com writes: _NEW_TRANSFORM_FEEDBACK is not used by core Mesa, so it can be removed. Instead, an new private flag is added to i965 to serve the same purpose. If you're new to this: diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c

[Mesa-dev] [Bug 63650] gallium/opencl opencl-examples test failures

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63650 --- Comment #3 from Iaroslav pontost...@gmail.com --- I build with OBS and do not have all logs. 2-3 weeks ago, all works. I had some problem with the libclc corrected in this way ./configure.py --prefix=/usr

[Mesa-dev] [Bug 63650] gallium/opencl opencl-examples test failures

2013-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63650 --- Comment #4 from Iaroslav pontost...@gmail.com --- Created attachment 78147 -- https://bugs.freedesktop.org/attachment.cgi?id=78147action=edit strace log -- You are receiving this mail because: You are the assignee for the bug.

Re: [Mesa-dev] [PATCH 2/2] i965: Implement color clears using a simple shader in blorp.

2013-04-17 Thread Paul Berry
On 16 April 2013 16:21, Eric Anholt e...@anholt.net wrote: The upside is less CPU overhead in fiddling with GL error handling, the ability to use the constant color write message in most cases, and no GLSL clear shaders appearing in MESA_GLSL=dump output. The downside is more batch flushing

[Mesa-dev] [PATCH] gallivm/gs: fix indirect addressing in geometry shaders

2013-04-17 Thread Zack Rusin
We were always treating the vertex index as a scalar but when the shader is using indirect addressing it will be a vector of indices for each channel. This was causing some nasty crashes insides LLVM. Signed-off-by: Zack Rusin za...@vmware.com --- src/gallium/auxiliary/draw/draw_llvm.c

[Mesa-dev] [PATCH] r200: fix build failure introduced with cbbcb0247e6aa8d7adc274a94206ee02f9c70bea

2013-04-17 Thread Laurent Carlier
--- src/mesa/drivers/dri/r200/r200_swtcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r200/r200_swtcl.c b/src/mesa/drivers/dri/r200/r200_swtcl.c index 274e338..0f1e013 100644 --- a/src/mesa/drivers/dri/r200/r200_swtcl.c +++

Re: [Mesa-dev] [PATCH] gallivm/gs: fix indirect addressing in geometry shaders

2013-04-17 Thread Roland Scheidegger
Am 17.04.2013 21:17, schrieb Zack Rusin: We were always treating the vertex index as a scalar but when the shader is using indirect addressing it will be a vector of indices for each channel. This was causing some nasty crashes insides LLVM. Signed-off-by: Zack Rusin za...@vmware.com ---

Re: [Mesa-dev] [PATCH] r200: fix build failure introduced with cbbcb0247e6aa8d7adc274a94206ee02f9c70bea

2013-04-17 Thread Brian Paul
On Wed, Apr 17, 2013 at 1:40 PM, Laurent Carlier lordhea...@gmail.comwrote: --- src/mesa/drivers/dri/r200/r200_swtcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r200/r200_swtcl.c b/src/mesa/drivers/dri/r200/r200_swtcl.c index 274e338..0f1e013

[Mesa-dev] [PATCH 2/2] docs: add info about bugzilla_mesa.sh script

2013-04-17 Thread Andreas Boll
--- docs/devinfo.html |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/devinfo.html b/docs/devinfo.html index 7176824..f5eb4d4 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -206,8 +206,8 @@ branch is relevant. p Create a docs/relnotes/x.y.z.html

[Mesa-dev] Geometry shader support for nv50

2013-04-17 Thread Bryan Cain
The following patch set makes the necessary changes to support geometry shaders in the nv50 driver. There are no piglit tests yet for geometry shader corner cases yet, so these changes were tested with all of the GS demos in mesa/demos and several corner case tests, using Paul Berry's gs branch

[Mesa-dev] [PATCH 1/3] nv50/ir: fix PFETCH and add RDSV to get VSTRIDE for GPs

2013-04-17 Thread Bryan Cain
From: Christoph Bumiller e0425...@student.tuwien.ac.at v2 (Bryan Cain bryanca...@gmail.com): Fix emission of PFETCH instructions using the SHL form. --- src/gallium/drivers/nv50/codegen/nv50_ir.h |1 + .../drivers/nv50/codegen/nv50_ir_emit_nv50.cpp | 62 ++--

[Mesa-dev] [PATCH 2/3] nv50/ir: delay calculation of indirect addresses

2013-04-17 Thread Bryan Cain
Instead of emitting an SHL 4 io an address register on the TGSI ARL and UARL instructions, emit the shift when the loaded address is actually used. This is necessary because input vertex and attribute indices in geometry shaders on nv50 need to be shifted left by 2 instead of 4. ---

[Mesa-dev] [PATCH 3/3] nv50: add support for geometry shaders

2013-04-17 Thread Bryan Cain
Layer output probably doesn't work yet, but other than that everything seems to be working. --- .../drivers/nv50/codegen/nv50_ir_emit_nv50.cpp | 25 +++- src/gallium/drivers/nv50/nv50_program.c| 17 + src/gallium/drivers/nv50/nv50_shader_state.c

Re: [Mesa-dev] i915c vs i915g piglit run

2013-04-17 Thread Kenneth Graunke
On 04/17/2013 01:59 PM, Dave Airlie wrote: Hi, I put a 3Ghz Core2 Q35 box i found in the office to good use (so much nicer than a pineview atom). http://people.freedesktop.org/~airlied/piglit/i915c/ is a full run with i915c forced to advertise GL2.0 using the stub occlusion query hack in

Re: [Mesa-dev] [PATCH 1/2] i965: Don't flush the batch at the end of blorp.

2013-04-17 Thread Kenneth Graunke
On 04/16/2013 04:21 PM, Eric Anholt wrote: Improves GLB2.7 performance 0.13% +/- 0.09% (n=104/105, outliers removed). More importantly, once color glClear()s are done through blorp in the next commit, this reduces regression in GLES3 conformance tests that rely on queueing up many glClear()s and

Re: [Mesa-dev] [PATCH 09/11] intel: Add support for blitting 6 byte-per-pixel formats.

2013-04-17 Thread Kenneth Graunke
On 04/16/2013 05:21 PM, Eric Anholt wrote: The next commit introduces what is apparently our first one, which tripped over this in glReadPixels. --- src/mesa/drivers/dri/intel/intel_blit.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) Commit message here

Re: [Mesa-dev] [PATCH 1/2] i965: Don't flush the batch at the end of blorp.

2013-04-17 Thread Ian Romanick
On 04/16/2013 04:21 PM, Eric Anholt wrote: Improves GLB2.7 performance 0.13% +/- 0.09% (n=104/105, outliers removed). More importantly, once color glClear()s are done through blorp in the next commit, this reduces regression in GLES3 conformance tests that rely on queueing up many glClear()s and

Re: [Mesa-dev] [PATCH 02/11] mesa: Remove extension checking from ChooseTexFormat.

2013-04-17 Thread Ian Romanick
On 04/16/2013 05:21 PM, Eric Anholt wrote: This should already be handled by _mesa_base_tex_format() calls in TexImage*. --- NOTE! I've replaced the actual patch full of unindentation of code described by: src/mesa/main/texformat.c | 1184 - 1

Re: [Mesa-dev] [PATCH 09/11] intel: Add support for blitting 6 byte-per-pixel formats.

2013-04-17 Thread Ian Romanick
On 04/17/2013 02:53 PM, Kenneth Graunke wrote: On 04/16/2013 05:21 PM, Eric Anholt wrote: The next commit introduces what is apparently our first one, which tripped over this in glReadPixels. --- src/mesa/drivers/dri/intel/intel_blit.c | 21 ++--- 1 file changed, 14

Re: [Mesa-dev] [PATCH 1/2] mesa: Add a script to generate the list of fixed bugs

2013-04-17 Thread Ian Romanick
On 04/17/2013 01:02 PM, Andreas Boll wrote: This list appears in the fixed bugs section of the release notes. NOTE: This is a candidate for the stable branches. That's really similar to the one I came up with for the 9.1.1 release (attached). I think you want -n on sort, though. I also had

Re: [Mesa-dev] [PATCH] ralloc: don't write to memory in case of alloc fail.

2013-04-17 Thread Ian Romanick
On 04/16/2013 06:08 PM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com For some reason I made this happen under indirect rendering, I think we might have a leak, valgrind gave out, so I said I'd fix the basic problem. NOTE: This is a candidate for stable branches. Signed-off-by:

[Mesa-dev] [PATCH] softpipe/so: use the correct variable for reporting stream out

2013-04-17 Thread Zack Rusin
we were using the wrong vars, reporting incorrect stream output statistics. Signed-off-by: Zack Rusin za...@vmware.com --- src/gallium/drivers/softpipe/sp_query.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_query.c

[Mesa-dev] [PATCH] draw/so: respect leading/provoking vertex info

2013-04-17 Thread Zack Rusin
we were ignoring leading/provoking vertex settings which was breaking decomposition of some strips. Signed-off-by: Zack Rusin za...@vmware.com --- src/gallium/auxiliary/draw/draw_so_emit_tmp.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH] autoconf: enable detection of vdpau and xvmc by default

2013-04-17 Thread Paul Berry
On 12 April 2013 01:26, Christian König deathsim...@vodafone.de wrote: From: Christian König christian.koe...@amd.com Since we now have UVD support we should enable them by default. Signed-off-by: Christian König christian.koe...@amd.com Those of us who don't build Gallium now need to add

[Mesa-dev] [PATCH 2/6] glsl: Initialize ctx-ShaderCompilerOptions in standalone scaffolding.

2013-04-17 Thread Kenneth Graunke
This code is copied from _mesa_init_shader_state(). Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/glsl/standalone_scaffolding.cpp | 12 1 file changed, 12 insertions(+) diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp index

[Mesa-dev] [PATCH 1/6] glsl: Copy _mesa_shader_type_to_index() to standalone scaffolding.

2013-04-17 Thread Kenneth Graunke
We can't include shaderobj.h from the standalone utilities, so we unfortunately have to copy this function. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/glsl/standalone_scaffolding.h | 17 + 1 file changed, 17 insertions(+) diff --git

[Mesa-dev] [PATCH 4/6] mesa: Move the mvp_with_dp4 flag to ShaderCompilerOptions.

2013-04-17 Thread Kenneth Graunke
This flag essentially tells the compiler whether it prefers dot products or multiply/adds for matrix operations. As such, ShaderCompilerOptions seems like the right place for it. This also lets us specify it on a per-stage basis. This patch makes all existing users set the flag for the Vertex

[Mesa-dev] [PATCH 3/6] glsl: Pass struct shader_compiler_options into do_common_optimization.

2013-04-17 Thread Kenneth Graunke
do_common_optimization may need to make choices about whether to emit certain kinds of instructions. gl_context::ShaderCompilerOptions contains exactly that information, so it makes sense to pass it in. Rather than passing the whole array, pass the structure for the stage that's currently being

[Mesa-dev] [PATCH 5/6] i965/vs: Set the PreferDP4 shader compiler option.

2013-04-17 Thread Kenneth Graunke
Doing matrix multiplies with DP4s is fewer instructions than MUL/ADD, especially since we don't support MAD in the vertex shader. Not observed to improve performance in any fixed function applications, but is useful for the next patch. I've left this unset for the fragment shader because the

[Mesa-dev] [PATCH 6/6] glsl: Add a pass to flip matrix/vector multiplies to use dot products.

2013-04-17 Thread Kenneth Graunke
This pass flips (matrix * vector) operations to (vector * matrixTranspose) for certain built-in matrices (currently gl_ModelViewProjectionMatrix and gl_TextureMatrix). This is equivalent, but results in dot products rather than multiplies and adds. On some hardware, this is more efficient. This

Re: [Mesa-dev] [PATCH] autoconf: enable detection of vdpau and xvmc by default

2013-04-17 Thread Emil Velikov
On 18/04/13 01:21, Paul Berry wrote: On 12 April 2013 01:26, Christian König deathsim...@vodafone.de wrote: From: Christian König christian.koe...@amd.com Since we now have UVD support we should enable them by default. Signed-off-by: Christian König christian.koe...@amd.com Those of us

Re: [Mesa-dev] [PATCH 1/2] i965: Don't flush the batch at the end of blorp.

2013-04-17 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: On 04/16/2013 04:21 PM, Eric Anholt wrote: Improves GLB2.7 performance 0.13% +/- 0.09% (n=104/105, outliers removed). More importantly, once color glClear()s are done through blorp in the next commit, this reduces regression in GLES3 conformance tests

Re: [Mesa-dev] [PATCH 09/11] intel: Add support for blitting 6 byte-per-pixel formats.

2013-04-17 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: On 04/16/2013 05:21 PM, Eric Anholt wrote: The next commit introduces what is apparently our first one, which tripped over this in glReadPixels. --- src/mesa/drivers/dri/intel/intel_blit.c | 21 ++--- 1 file changed, 14

Re: [Mesa-dev] [PATCH] autoconf: enable detection of vdpau and xvmc by default

2013-04-17 Thread Emil Velikov
On 18/04/13 01:55, Emil Velikov wrote: On 18/04/13 01:21, Paul Berry wrote: On 12 April 2013 01:26, Christian König deathsim...@vodafone.de wrote: From: Christian König christian.koe...@amd.com Since we now have UVD support we should enable them by default. Signed-off-by: Christian König

Re: [Mesa-dev] i915c vs i915g piglit run

2013-04-17 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: On 04/17/2013 01:59 PM, Dave Airlie wrote: Hi, I put a 3Ghz Core2 Q35 box i found in the office to good use (so much nicer than a pineview atom). http://people.freedesktop.org/~airlied/piglit/i915c/ is a full run with i915c forced to

Re: [Mesa-dev] [PATCH] autoconf: enable detection of vdpau and xvmc by default

2013-04-17 Thread Matt Turner
On Wed, Apr 17, 2013 at 6:07 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 18/04/13 01:55, Emil Velikov wrote: On 18/04/13 01:21, Paul Berry wrote: On 12 April 2013 01:26, Christian König deathsim...@vodafone.de wrote: From: Christian König christian.koe...@amd.com Since we now have

[Mesa-dev] [PATCH] draw/so: uses the correct index with the pre clipped coordinates

2013-04-17 Thread Zack Rusin
pre_clip_pos is a float[4] we just use (*float)[4] to be able to jump within the array of vertex_headers with it. So if the idx happened to be anything but 0, we'd actually read from some garbage in memory. Always use 0 to correctly offset withing float[4]. Signed-off-by: Zack Rusin