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 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 initialization and finding t

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-unoffi

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 wrote: > > On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu wrote: > >> > >> On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner wrote: > >>> > >>> I think everything Marek said was correct. If you could extend Gallium > >>> to co

[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 --- 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(+), 1 deletion(-) dif

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

2013-04-17 Thread jfonseca
From: José Fonseca Details on docs/llvmpipe.html --- bin/perf-annotate-jit | 240 configure.ac |7 - docs/llvmpipe.html | 40 ++-- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

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 - 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 mode, which means t

[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 --- 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. -- You are receiving thi

[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 --- 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 > > http://lists.freedesktop.org/archives/dri-devel/2013

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älli --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/m

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é Fonseca 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 Paul --- 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 push a few more

[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 Classificatio

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é Fonseca > > > > 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šák wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner wrote: I think everything Marek said was correct. If you could ex

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 --enable-g

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 > > 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 are

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 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 > --- a/docs/relnotes/9.2.html > +++ b/docs/re

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 wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner wrote: I think everything Marek said was correct. If you could extend Gallium to consume GLSL IR it might actually be an interesting project. Yes, it

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 --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/

[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 OS:

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

2013-04-17 Thread Eric Anholt
Brian Paul 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 +++-- > src/mesa/drivers/dri/r200/r200_swtcl.c |

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 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 --- 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 mailing list 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 --- 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 are the assignee for

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 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 update_array_object_max_eleme

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 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 > > v2: fix stats_wm updates in i965 Reviewed-by: Eric Anholt pgp2KgQ82ApWZ.pgp Description: PGP signature

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 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 > b/src/mesa/drivers/dri/i965/brw_state

[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 --- 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 --with-llvm-config=/usr/bin/llvm-config for 32/64 bit i

[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 --- Created attachment 78147 --> https://bugs.freedesktop.org/attachment.cgi?id=78147&action=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 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 and a total

[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 --- src/gallium/auxiliary/draw/draw_llvm.c | 34 ++

[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 +++ b/src/mesa/drivers/dri/r200

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 > --- > src/gall

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 wrote: > --- > 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

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

2013-04-17 Thread Andreas Boll
This list appears in the fixed bugs section of the release notes. NOTE: This is a candidate for the stable branches. --- bin/bugzilla_mesa.sh | 43 +++ 1 file changed, 43 insertions(+) create mode 100755 bin/bugzilla_mesa.sh diff --git a/bin/bugzilla_me

[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. Create a docs/relnotes/x.y.z.html file.

[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 v2 (Bryan Cain ): 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 ++-- src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp |

[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. --- .../drivers/n

[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

[Mesa-dev] i915c vs i915g piglit run

2013-04-17 Thread Dave Airlie
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 drirc, and i915g advertising GL2.1, and built agai

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 drirc

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 shou

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 file

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 insertio

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 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: Dave Airlie Review

[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 --- 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 b/src/gallium/dri

[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 --- src/gallium/auxiliary/draw/draw_so_emit_tmp.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h b/

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 wrote: > From: Christian König > > Since we now have UVD support we should enable them by default. > > Signed-off-by: Christian König > Those of us who don't build Gallium now need to add "--disable-gallium-g3dvl" to our configure parameters, or the buil

[Mesa-dev] Matrix flipper v2

2013-04-17 Thread Kenneth Graunke
This series does two things: first, it plumbs ShaderCompilerOptions into do_common_optimization(), since optimization & lowering passes may want to consult that. Secondly, it adds an optimization pass that converts (matrix * vector) operations to (vector * matrixTranspose) for certain built-in mat

[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 --- 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 0c1f52f..3d9e1bf 100644 --

[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 --- src/glsl/standalone_scaffolding.h | 17 + 1 file changed, 17 insertions(+) diff --git a/src/glsl/standalone_scaffolding.h b/src/glsl/st

[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 Sh

[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 w

[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 scal

[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 wrote: > >> From: Christian König >> >> Since we now have UVD support we should enable them by default. >> >> Signed-off-by: Christian König >> > > Those of us who don't build Gallium now need to add > "--disable-ga

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 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 that rely on

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

2013-04-17 Thread Eric Anholt
Kenneth Graunke 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 insertions(+),

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 wrote: >> >>> From: Christian König >>> >>> Since we now have UVD support we should enable them by default. >>> >>> Signed-off-by: Christian König >>> >> >> Those of us who do

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

2013-04-17 Thread Eric Anholt
Kenneth Graunke 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 advertise GL2

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 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 wrote: >>> From: Christian König Since we now have UVD support we should enable them by default. >

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

2013-04-17 Thread Matt Turner
On Wed, Apr 17, 2013 at 5:30 PM, Kenneth Graunke wrote: > We can't include shaderobj.h from the standalone utilities, so we > unfortunately have to copy this function. This is happening a lot. It'd be nice if src/glsl was just built as part of the core. Oh no, I've suggested a project for myself

[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 --- src/gall

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

2013-04-17 Thread Tapani Pälli
On 04/17/2013 05:12 PM, Brian Paul wrote: 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älli --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

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 10:26 PM, Brian Paul wrote: > On 04/17/2013 02:31 AM, Jose Fonseca wrote: [snipped] >>> How hard would it be to make GLSL IR an alternative IR for pipe >>> drivers? On the driver side, it seems I only need to add >>> PIPE_SHADER_IR_GLSL for the preferred IR and change the

[Mesa-dev] [PATCH v2] mesa: fix type comparison errors 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. NOTE: This is a candidate for stable branches. Signed-off-by: Tapani Pälli --- v2: corrected xoffset cast to happen before sign + added more checks src/mesa/main/teximage.c | 10 +- 1 file changed,

[Mesa-dev] renaming i965g

2013-04-17 Thread Chia-I Wu
Hi list, Per the discussion, i965g is confusing and misleading. Instead of preventing the confusions via --with-gallium-drivers=i965g-unofficial or --with-gallium-drivers=experimental-i965g, which kind of makes i965g a second-class citizen, I think it is better to rename it. Then whenever