Re: [Mesa-dev] [PATCH] prog_to_nir: Fix fragment depth writes.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 10:01 PM, Kenneth Graunke wrote: > In the ARB_fragment_program specification, the result.depth output > variable is treated as a vec4, where the fragment depth is stored in the > .z component, and the other three components are undefined. > > This is different than GLSL, whi

Re: [Mesa-dev] [PATCH resend 7/7] i965: Disable HW-binding tables on batch finish for Broadwell

2015-06-04 Thread Abdiel Janulgue
On 06/03/2015 10:56 PM, Ben Widawsky wrote: > On Wed, Jun 03, 2015 at 12:34:56PM -0700, Ben Widawsky wrote: >> On Wed, Jun 03, 2015 at 12:05:34PM -0700, Kenneth Graunke wrote: >>> On Wednesday, June 03, 2015 09:44:21 AM Ben Widawsky wrote: On Wed, Jun 03, 2015 at 12:45:12PM +0300, Ville Syrj

[Mesa-dev] [PATCH] prog_to_nir: Fix fragment depth writes.

2015-06-04 Thread Kenneth Graunke
In the ARB_fragment_program specification, the result.depth output variable is treated as a vec4, where the fragment depth is stored in the .z component, and the other three components are undefined. This is different than GLSL, which uses a scalar value (gl_FragDepth). To make this consistent fo

[Mesa-dev] [PATCH] mesa: set override_version per api version override

2015-06-04 Thread Tapani Pälli
Before 9b5e92f get_gl_override was called only once, but now it is called for multiple APIs (GLES2, GL), version needs to be set always. Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90797 --- src/mesa/main/version.c | 36 ++--

Re: [Mesa-dev] i965 FS back-end IR builder migration.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:04 AM, Francisco Jerez wrote: > This series migrates the FS compiler back-end to the i965 IR builder I > proposed a while ago as part of my ARB_shader_image_load_store series, > and fixes a couple of bugs I found during the process. It doesn't yet > attempt to convert the

Re: [Mesa-dev] [PATCH 17/38] i965/fs: Migrate Gen4 send dependency workarounds to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 26 +- > src/mesa/drivers/dri/i965/brw_fs.h | 2 +- > 2 files changed, 10 insertions(+), 18 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/

Re: [Mesa-dev] [PATCH 23/38] i965/fs: Migrate FS gl_SamplePosition/ID computation code to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 51 > ++-- > 1 file changed, 26 insertions(+), 25 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/mesa/drivers/dri/i965/brw_fs.cpp > i

Re: [Mesa-dev] [PATCH 22/38] i965/fs: Migrate FS interpolation code to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 28 ++-- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 66 > ++-- > 2 files changed, 46 insertions(+), 48 deletions(-) > > diff --git a/src/mesa/driver

Re: [Mesa-dev] [PATCH 2/5] mesa: Fix error returned by glCopyTexImage2D() upon an invalid internal format

2015-06-04 Thread Ben Widawsky
On Wed, Mar 11, 2015 at 10:01:25AM +0100, Eduardo Lima Mitev wrote: > Section '8.6 Alternate Texture Image Specification Commands', page 161 of the > OpenGL ES 3.1 spec, and page 207 of the same section in the OpenGL 4.5 spec > state in relation to CopyTexImage2D method: > > "An INVALID_ENUM e

Re: [Mesa-dev] [PATCH 1/5] mesa: Fix errors values returned by glShaderBinary()

2015-06-04 Thread Ben Widawsky
On Wed, Mar 11, 2015 at 10:01:24AM +0100, Eduardo Lima Mitev wrote: > Page 68, section 7.2 'Shader Binaries" of the of the OpenGL ES 3.1, > and page 88 of the OpenGL 4.5 specs state: > > "An INVALID_VALUE error is generated if count or length is negative. > An INVALID_ENUM error is genera

Re: [Mesa-dev] [PATCH] llvmpipe: Implement stencil export

2015-06-04 Thread Roland Scheidegger
Am 04.06.2015 um 13:37 schrieb Emil Velikov: > Hi Roland, > > On 3 June 2015 at 00:35, wrote: >> From: Roland Scheidegger >> >> Pretty trivial, fixes the issue that we're expected to be able to blit >> stencil surfaces (as the blit just relies on util blitter code which needs >> stencil export

Re: [Mesa-dev] NIR documentation

2015-06-04 Thread Rob Clark
I guess current comments + docs connor posted would have mostly substituted for current comments + liberal pinging of cwabbott/jekstrand/etc on IRC for what I've done so far in converting freedreno over to NIR + various random additions to tgsi_to_nir.. or in other words I think what was missing in

Re: [Mesa-dev] [RFC] i965: Don't consider uniform value locations in program uploads

2015-06-04 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 09:32:55PM +0300, Pohjolainen, Topi wrote: > On Wed, Jun 03, 2015 at 09:21:11PM +0300, Topi Pohjolainen wrote: > > Shader programs are cached per stage (FS, VS, GS) using the > > corresponding shader source identifier and compile time choices > > as key. However, one not onl

Re: [Mesa-dev] [PATCH 36/38] i965/fs: Migrate test_fs_cmod_propagation to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > .../drivers/dri/i965/test_fs_cmod_propagation.cpp | 75 > +- > 1 file changed, 45 insertions(+), 30 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp > b/src/mesa/drivers/dri/i

Re: [Mesa-dev] [PATCH 35/38] i965/fs: Migrate test_fs_saturate_propagation to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > .../dri/i965/test_fs_saturate_propagation.cpp | 57 > +- > 1 file changed, 34 insertions(+), 23 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp > b/src/mesa/drivers/d

Re: [Mesa-dev] [PATCH 34/38] i965/fs: Migrate translation of NIR texturing instructions to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 11 --- > 2 files changed, 6 insertions(+), 8 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.h > b/src/mesa/drive

Re: [Mesa-dev] [PATCH 33/38] i965/fs: Migrate translation of NIR intrinsics to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.h | 3 +- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 77 > > 2 files changed, 41 insertions(+), 39 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw

Re: [Mesa-dev] [PATCH] i965: Use vec4 vs shader path in spill cases.

2015-06-04 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 05:42:10PM -0700, Matt Turner wrote: > On Wed, Jun 3, 2015 at 5:29 PM, Kenneth Graunke wrote: > > On Wednesday, June 03, 2015 11:35:43 PM Bish, Jim wrote: > >> For BDW and newer hardware, vertex shaders can be dispatched > >> using simd8 scalars, but when spills occur perfo

Re: [Mesa-dev] NIR documentation

2015-06-04 Thread Timothy Arceri
Nice, thanks Connor. I'm just spinning up on NIR now so look forward to reading over it. One thing I've notice about nir is the code comments are few an far between which raises the learning curve a bit. Are there any plans to pad this out a bit? Not suggesting you go do it all, more just wonderin

Re: [Mesa-dev] [PATCH 31/38] i965/fs: Migrate translation of NIR control flow to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 23 --- > 2 files changed, 14 insertions(+), 12 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.h > b/

Re: [Mesa-dev] [PATCH 26/38] i965/fs: Migrate FS framebuffer writes to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 9 ++--- > src/mesa/drivers/dri/i965/brw_fs.h | 3 +- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 57 > ++-- > 3 files changed, 35 insertions(+),

Re: [Mesa-dev] [PATCH 22/38] i965/fs: Migrate FS interpolation code to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 28 ++-- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 66 > ++-- > 2 files changed, 46 insertions(+), 48 deletions(-) > > diff --git a/src/mesa/driver

Re: [Mesa-dev] [PATCH 21/38] i965/fs: Migrate shader time to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 54 > +--- > src/mesa/drivers/dri/i965/brw_fs.h | 5 ++-- > 2 files changed, 23 insertions(+), 36 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_f

Re: [Mesa-dev] [PATCH 5/6] i965/gen9: Set HALIGN_16 for all aux buffers

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 05:06:09PM -0700, Chad Versace wrote: > On Thu 28 May 2015, Ben Widawsky wrote: > > Just like the previous patch, but for the GEN9 constraints. > > > > Signed-off-by: Ben Widawsky > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 5 + > > 1 file changed, 5 i

Re: [Mesa-dev] [PATCH 4/6] i965/gen8: Correct HALIGN for AUX surfaces

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 05:21:14PM -0700, Chad Versace wrote: > On Fri 29 May 2015, Chad Versace wrote: > > On Thu 28 May 2015, Ben Widawsky wrote: > > > This restriction was attempted in this commit: > > > commit 47053464630888f819ef8cc44278f1a1220159b9 > > > Author: Anuj Phogat > > > Date: Fri

[Mesa-dev] NIR documentation

2015-06-04 Thread Connor Abbott
Hi, Over the past few weeks or so, I've been sitting down and writing some documentation on how NIR, and especially the core NIR datastructures, works. At this point I think it's reasonably complete, although I've probably forgotten something that I should mention, and one thing that's missing for

Re: [Mesa-dev] [PATCH 3/6] i965: Extract tiling from fast clear decision

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 12:27:17PM -0700, Chad Versace wrote: > On Thu 28 May 2015, Ben Widawsky wrote: > > There are several constraints when determining if one can fast clear a > > surface. > > Some of these are alignment, pixel density, tiling formats, and others that > > vary > > by generatio

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Rob Clark
On Thu, Jun 4, 2015 at 3:55 PM, Jose Fonseca wrote: > On 04/06/15 20:36, Rob Clark wrote: >> >> On Thu, Jun 4, 2015 at 3:22 PM, Rob Clark wrote: >>> >>> On Thu, Jun 4, 2015 at 3:11 PM, Jose Fonseca wrote: On 04/06/15 19:50, Rob Clark wrote: > > > On Thu, Jun 4, 2015 at 2:14

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Roland Scheidegger
Am 04.06.2015 um 21:36 schrieb Rob Clark: > On Thu, Jun 4, 2015 at 3:22 PM, Rob Clark wrote: >> On Thu, Jun 4, 2015 at 3:11 PM, Jose Fonseca wrote: >>> On 04/06/15 19:50, Rob Clark wrote: On Thu, Jun 4, 2015 at 2:14 PM, Jose Fonseca wrote: > > I think we had a discussion about

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Jose Fonseca
On 04/06/15 20:36, Rob Clark wrote: On Thu, Jun 4, 2015 at 3:22 PM, Rob Clark wrote: On Thu, Jun 4, 2015 at 3:11 PM, Jose Fonseca wrote: On 04/06/15 19:50, Rob Clark wrote: On Thu, Jun 4, 2015 at 2:14 PM, Jose Fonseca wrote: I think we had a discussion about this on mesa3d-dev a while ag

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Rob Clark
On Thu, Jun 4, 2015 at 3:22 PM, Rob Clark wrote: > On Thu, Jun 4, 2015 at 3:11 PM, Jose Fonseca wrote: >> On 04/06/15 19:50, Rob Clark wrote: >>> >>> On Thu, Jun 4, 2015 at 2:14 PM, Jose Fonseca wrote: I think we had a discussion about this on mesa3d-dev a while ago. I don't

Re: [Mesa-dev] [PATCH 1/2] clover: fix event handling of buffer operations

2015-06-04 Thread Grigori Goronzy
On 28.05.2015 10:10, Grigori Goronzy wrote: > Wrap MapBuffer and MapImage as hard_event actions, like other > operations. This enables correct profiling. Also make sure to wait > for events to finish when blocking is requested by the caller. > --- Ping? > src/gallium/state_trackers/clover/api/tr

Re: [Mesa-dev] [PATCH 1/2] gallium: add PIPE_COMPUTE_CAP_SUBGROUP_SIZE

2015-06-04 Thread Grigori Goronzy
On 28.05.2015 13:04, Grigori Goronzy wrote: > We need this to implement OpenCL's > CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE. > --- Ping? > src/gallium/docs/source/screen.rst | 2 ++ > src/gallium/drivers/ilo/ilo_screen.c | 8 > src/gallium/drivers/nouveau/nvc

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Rob Clark
On Thu, Jun 4, 2015 at 3:11 PM, Jose Fonseca wrote: > On 04/06/15 19:50, Rob Clark wrote: >> >> On Thu, Jun 4, 2015 at 2:14 PM, Jose Fonseca wrote: >>> >>> I think we had a discussion about this on mesa3d-dev a while ago. I >>> don't >>> recall the conclusions but I wish I did. >>> >>> We have t

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Jose Fonseca
On 04/06/15 19:14, Jose Fonseca wrote: I think we had a discussion about this on mesa3d-dev a while ago. I don't recall the conclusions but I wish I did. Found it: http://lists.freedesktop.org/archives/mesa-dev/2014-November/thread.html#71577 http://lists.freedesktop.org/archives/mesa-dev/2

Re: [Mesa-dev] [PATCH] squash! i965: Consolidate certain miptree params to flags

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 11:33 AM, Ben Widawsky wrote: > Here is the diff compared to v1, with the r-b tags I got. I've only compile > tested this, but I'll send it through jenkins before push. > > Thanks for the comments. Please delete this before you push. :) _

Re: [Mesa-dev] [PATCH 1/6] i965: Consolidate certain miptree params to flags

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 12:07:36PM -0700, Chad Versace wrote: > On Fri 29 May 2015, Pohjolainen, Topi wrote: > > On Fri, May 29, 2015 at 09:32:53AM +0300, Pohjolainen, Topi wrote: > > > On Thu, May 28, 2015 at 10:21:29AM -0700, Ben Widawsky wrote: > > > > I think pretty much everyone agrees that ha

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Jose Fonseca
On 04/06/15 19:50, Rob Clark wrote: On Thu, Jun 4, 2015 at 2:14 PM, Jose Fonseca wrote: I think we had a discussion about this on mesa3d-dev a while ago. I don't recall the conclusions but I wish I did. We have tgsi_return_type. Why isn't this enough? Or better, why isn't being used for thi

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Rob Clark
On Thu, Jun 4, 2015 at 2:14 PM, Jose Fonseca wrote: > I think we had a discussion about this on mesa3d-dev a while ago. I don't > recall the conclusions but I wish I did. > > We have tgsi_return_type. Why isn't this enough? Or better, why isn't > being used for this? mostly arbitrary reasons..

[Mesa-dev] [PATCH] squash! i965: Consolidate certain miptree params to flags

2015-06-04 Thread Ben Widawsky
Here is the diff compared to v1, with the r-b tags I got. I've only compile tested this, but I'll send it through jenkins before push. Thanks for the comments. Cc: "Pohjolainen, Topi" Reviewed-by: Chad Versace Reviewed-by: Anuj Phogat Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/

Re: [Mesa-dev] [PATCH 19/38] i965/fs: Migrate texturing implementation to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 159 > +-- > 1 file changed, 78 insertions(+), 81 deletions(-) There are a number of tabs in this patch that should be removed. _

Re: [Mesa-dev] [PATCH 17/38] i965/fs: Migrate Gen4 send dependency workarounds to the IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:05 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 26 +- > src/mesa/drivers/dri/i965/brw_fs.h | 2 +- > 2 files changed, 10 insertions(+), 18 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/

Re: [Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Jose Fonseca
I think we had a discussion about this on mesa3d-dev a while ago. I don't recall the conclusions but I wish I did. We have tgsi_return_type. Why isn't this enough? Or better, why isn't being used for this? Jose On 04/06/15 16:50, Rob Clark wrote: From: Rob Clark Signed-off-by: Rob Clar

Re: [Mesa-dev] [PATCH 03/38] i965/fs: Allocate a common IR builder object in fs_visitor.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:04 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 11 +++ > src/mesa/drivers/dri/i965/brw_fs.h | 2 ++ > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 +++- > 3 files changed, 16 insertions(+), 1 deletion(-) > > di

Re: [Mesa-dev] [PATCH 08/38] i965/fs: Don't drop force_writemask_all and _sechalf when copying a CSE temporary.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:04 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp > b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp > index 3ddd17c..822a6a3 100644

Re: [Mesa-dev] [PATCH 01/38] i965/fs: Introduce FS IR builder.

2015-06-04 Thread Jordan Justen
I guess we'll be carrying forward our strained backronym of FS as fast scalar? :) -Jordan On 2015-06-04 09:04:50, Francisco Jerez wrote: > The purpose of this change is threefold: First, it improves the > modularity of the compiler back-end by separating the functionality > required to construct

Re: [Mesa-dev] [PATCH 07/38] i965/vec4: Take into account all instruction fields in CSE instructions_match().

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:04 AM, Francisco Jerez wrote: > Most of these fields affect the behaviour of the instruction so it > could actually break the program if we CSE a pair of otherwise > matching instructions with different values of these fields. > --- > src/mesa/drivers/dri/i965/brw_vec4_cs

Re: [Mesa-dev] [PATCH 01/38] i965/fs: Introduce FS IR builder.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 9:04 AM, Francisco Jerez wrote: > The purpose of this change is threefold: First, it improves the > modularity of the compiler back-end by separating the functionality > required to construct an i965 IR program from the rest of the visitor > god-object, what in turn will red

Re: [Mesa-dev] [PATCH 0/2] tgsi: texture type support

2015-06-04 Thread Rob Clark
a4xx is same, we need to set dest type (s16/s32/u16/u32/f16/f32) in the shader instruction BR, -R On Thu, Jun 4, 2015 at 12:48 PM, Ilia Mirkin wrote: > On a3xx at least, the format you get in the shader is separate from > sampler/texture settings. You can get int as floats back, or regular ints,

Re: [Mesa-dev] [PATCH 0/2] tgsi: texture type support

2015-06-04 Thread Ilia Mirkin
On a3xx at least, the format you get in the shader is separate from sampler/texture settings. You can get int as floats back, or regular ints, depending on instruction dest type. So we need to specify float or int value in the shader, otherwise we get the wrong format back. On Jun 4, 2015 19:19, "M

Re: [Mesa-dev] [PATCH 0/2] tgsi: texture type support

2015-06-04 Thread Marek Olšák
Reviewed-by: Marek Olšák What does the type really do? Does it only disable filtering for int/uint? Because without filtering, there is no difference between a float and int texture fetch. Marek On Thu, Jun 4, 2015 at 5:50 PM, Rob Clark wrote: > From: Rob Clark > > Some drivers (well, at leas

[Mesa-dev] [Bug 90821] Segfault when calling glViewport on surfaceless EGL context without bound FBO

2015-06-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90821 --- Comment #3 from Matt Turner --- Indeed, I can reproduce on master using your test program (thanks a lot for that!) Program received signal SIGSEGV, Segmentation fault. 0x74e1ad42 in dri2InvalidateDrawable (drawable=0x0) at ../../../.

[Mesa-dev] [PATCH 03/38] i965/fs: Allocate a common IR builder object in fs_visitor.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 11 +++ src/mesa/drivers/dri/i965/brw_fs.h | 2 ++ src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 +++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/d

[Mesa-dev] [PATCH 07/38] i965/vec4: Take into account all instruction fields in CSE instructions_match().

2015-06-04 Thread Francisco Jerez
Most of these fields affect the behaviour of the instruction so it could actually break the program if we CSE a pair of otherwise matching instructions with different values of these fields. --- src/mesa/drivers/dri/i965/brw_vec4_cse.cpp | 8 1 file changed, 8 insertions(+) diff --git a/

[Mesa-dev] [PATCH 21/38] i965/fs: Migrate shader time to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 54 +--- src/mesa/drivers/dri/i965/brw_fs.h | 5 ++-- 2 files changed, 23 insertions(+), 36 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 4e8d6ae..bd94dc4 1

[Mesa-dev] [PATCH 24/38] i965/fs: Migrate FS discard handling to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 266ff07..e55998c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/b

[Mesa-dev] [PATCH 15/38] i965/fs: Migrate lower_load_payload to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 34 +++--- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 759e77f..5aa54cf 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp ++

[Mesa-dev] [PATCH 14/38] i965/fs: Migrate register spills and fills to the IR builder.

2015-06-04 Thread Francisco Jerez
Yes, it's incorrect to use the 0-th channel enable group unconditionally without considering the execution and regioning controls of the instruction that uses the spilled value, but it matches the previous behaviour exactly, the builder just makes the preexisting problem more obvious because emitti

[Mesa-dev] i965 FS back-end IR builder migration.

2015-06-04 Thread Francisco Jerez
This series migrates the FS compiler back-end to the i965 IR builder I proposed a while ago as part of my ARB_shader_image_load_store series, and fixes a couple of bugs I found during the process. It doesn't yet attempt to convert the VEC4 back-end, but the VEC4 version of the builder is also incl

[Mesa-dev] [PATCH 10/38] i965/fs: Create and emit instructions in one step in opt_peephole_sel.

2015-06-04 Thread Francisco Jerez
This simplifies opt_peephole_sel() slightly by emitting the SEL instructions immediately after they are created, what makes the sel_inst and mov_imm_inst arrays unnecessary and will make it possible to get rid of the explicit inserts when the pass is migrated to the IR builder. --- src/mesa/driver

[Mesa-dev] [PATCH 13/38] i965/fs: Migrate try_replace_with_sel to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 9ee6dd8..deeb6c4 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_

[Mesa-dev] [PATCH 02/38] i965/vec4: Introduce VEC4 IR builder.

2015-06-04 Thread Francisco Jerez
See "i965/fs: Introduce FS IR builder." for the rationale. v2: Drop scalarizing VEC4 builder. v3: Take a backend_shader as constructor argument. Improve handling of debug annotations and execution control flags. --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 08/38] i965/fs: Don't drop force_writemask_all and _sechalf when copying a CSE temporary.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp index 3ddd17c..822a6a3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp +++ b/src/mesa/driver

[Mesa-dev] [PATCH 06/38] i965/fs: Take into account all instruction fields in CSE instructions_match().

2015-06-04 Thread Francisco Jerez
Most of these fields affect the behaviour of the instruction so it could actually break the program if we CSE a pair of otherwise matching instructions with different values of these fields. --- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 20 1 file changed, 12 insertions(+), 8

[Mesa-dev] [PATCH 05/38] i965/fs: Migrate opt_peephole_predicated_break to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp b/src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp index cf3da7b..d92d4bbd 1006

[Mesa-dev] [PATCH 09/38] i965/fs: Migrate opt_cse to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp index 822a6a3..70f0217 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_c

[Mesa-dev] [PATCH 04/38] i965/fs: Migrate opt_combine_constants to the IR builder.

2015-06-04 Thread Francisco Jerez
--- .../drivers/dri/i965/brw_fs_combine_constants.cpp | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp b/src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp index aa62031..0af5a91 100644 --- a/sr

[Mesa-dev] [PATCH 36/38] i965/fs: Migrate test_fs_cmod_propagation to the IR builder.

2015-06-04 Thread Francisco Jerez
--- .../drivers/dri/i965/test_fs_cmod_propagation.cpp | 75 +- 1 file changed, 45 insertions(+), 30 deletions(-) diff --git a/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp b/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp index 0e48e82..17c519c 100644 --- a/s

[Mesa-dev] [PATCH 29/38] i965/fs: Migrate NIR emit_percomp() to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 16 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 571d411..3f775d3 100644 --- a/src/me

[Mesa-dev] [PATCH 01/38] i965/fs: Introduce FS IR builder.

2015-06-04 Thread Francisco Jerez
The purpose of this change is threefold: First, it improves the modularity of the compiler back-end by separating the functionality required to construct an i965 IR program from the rest of the visitor god-object, what in turn will reduce the coupling between other components and the visitor allowi

[Mesa-dev] [PATCH 27/38] i965/fs: Migrate VS output writes to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 98429fa..92c2056 100644 --- a/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 38/38] i965/fs: Drop fs_inst::force_uncompressed.

2015-06-04 Thread Francisco Jerez
This is now unused. Saves a whole bit of memory per instruction. --- src/mesa/drivers/dri/i965/brw_ir_fs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_ir_fs.h b/src/mesa/drivers/dri/i965/brw_ir_fs.h index eee4d7e..96dc20d 100644 --- a/src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 30/38] i965/fs: Migrate NIR variable handling to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 7e33d72..3f84830 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp

[Mesa-dev] [PATCH 18/38] i965/fs: Migrate pull constant loads to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 39 src/mesa/drivers/dri/i965/brw_fs.h | 9 src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 4 ++-- 3 files changed, 21 insertions(+), 31 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/s

[Mesa-dev] [PATCH 28/38] i965/fs: Migrate CS terminate message to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 92c2056..d73f890 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp ++

[Mesa-dev] [PATCH 22/38] i965/fs: Migrate FS interpolation code to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 28 ++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 66 ++-- 2 files changed, 46 insertions(+), 48 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index bd

[Mesa-dev] [PATCH 32/38] i965/fs: Migrate translation of NIR ALU instructions to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 +- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 192 +++ 3 files changed, 99 insertions(+), 99 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mes

[Mesa-dev] [PATCH 20/38] i965/fs: Migrate untyped surface read and atomic to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 55 ++-- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index e436d14..4fa635b 100644 --- a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH 34/38] i965/fs: Migrate translation of NIR texturing instructions to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 11 --- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 338c816..ef0256d 100644 --- a/src/mesa/dri

[Mesa-dev] [PATCH 23/38] i965/fs: Migrate FS gl_SamplePosition/ID computation code to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 51 ++-- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index d2ec2a7..266ff07 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH 26/38] i965/fs: Migrate FS framebuffer writes to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 9 ++--- src/mesa/drivers/dri/i965/brw_fs.h | 3 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 57 ++-- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH 19/38] i965/fs: Migrate texturing implementation to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 159 +-- 1 file changed, 78 insertions(+), 81 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index deeb6c4..e436d14 100644 --- a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH 33/38] i965/fs: Migrate translation of NIR intrinsics to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 3 +- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 77 2 files changed, 41 insertions(+), 39 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 44a0d31..338c816 100

[Mesa-dev] [PATCH 31/38] i965/fs: Migrate translation of NIR control flow to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 23 --- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 3f775d3..8803d5a 100644 ---

[Mesa-dev] [PATCH 37/38] i965/fs: Remove dead IR construction code from the visitor.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 284 --- src/mesa/drivers/dri/i965/brw_fs.h | 73 --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 79 3 files changed, 436 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/m

[Mesa-dev] [PATCH 25/38] i965/fs: Migrate FS alpha test to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 1efaf3b..5d6d6d6 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.

[Mesa-dev] [PATCH 35/38] i965/fs: Migrate test_fs_saturate_propagation to the IR builder.

2015-06-04 Thread Francisco Jerez
--- .../dri/i965/test_fs_saturate_propagation.cpp | 57 +- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp index 8b1fab0..f4ec432 100644

[Mesa-dev] [PATCH 11/38] i965/fs: Migrate opt_peephole_sel to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp | 25 +++ 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp index 635c91b..8660ec0 100644 --- a/src/mesa/dr

[Mesa-dev] [PATCH 12/38] i965/fs: Migrate opt_sampler_eot to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c1dd0a6..759e77f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/br

[Mesa-dev] [PATCH 16/38] i965/fs: Migrate lower_integer_multiplication to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 5aa54cf..41015e6 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/me

[Mesa-dev] [PATCH 17/38] i965/fs: Migrate Gen4 send dependency workarounds to the IR builder.

2015-06-04 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 26 +- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 41015e6..e654af9 100644 --- a/

[Mesa-dev] [PATCH 1/2] tgsi: add texture-type info to texture instructions

2015-06-04 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 7 +-- src/gallium/auxiliary/tgsi/tgsi_ureg.h | 22 +++--- src/gallium/include/pipe/p_shader_tokens.h | 7 ++- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 19

[Mesa-dev] [PATCH 2/2] gallium/ttn: add texture-type support

2015-06-04 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 515171c..d370b57 100644 --- a/src/gallium/auxiliary/n

[Mesa-dev] [PATCH 0/2] tgsi: texture type support

2015-06-04 Thread Rob Clark
From: Rob Clark Some drivers (well, at least freedreno, maybe others?) need to know when compiling the shader whether the texture is float/int/unsigned. This information is in GLSL IR, and in NIR, but lacking in TGSI. This was previously worked around in the driver by using a shader variant. Bu

Re: [Mesa-dev] [Mesa-stable] [PATCH] draw: (trivial) fix NULL pointer dereference

2015-06-04 Thread Brian Paul
On 06/04/2015 06:37 AM, srol...@vmware.com wrote: From: Roland Scheidegger This probably got broken when the samplers were converted to be indexed by shader type. Seen when looking at bug 89819 though I'm not sure if that really was what the bug was about... Cc: "10.5 10.6" --- src/gallium/

[Mesa-dev] [Bug 90821] Segfault when calling glViewport on surfaceless EGL context without bound FBO

2015-06-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90821 Martina Kollarova changed: What|Removed |Added Component|Drivers/DRI/i965|EGL Assignee|i...@freedesk

Re: [Mesa-dev] [PATCH] i965/vec4: Fix the source register for indexed samplers

2015-06-04 Thread Neil Roberts
Matt Turner writes: > I don't know why I was confused by this patch -- after arriving at the > same conclusion independently I see that all of the analysis I needed > was right there. Yes sorry, I probably didn't explain it very well. Your explanation is a lot clearer. > To sum up, vec4_visitor

Re: [Mesa-dev] [PATCH] main: fix a regression in uniform handling introduced by 87a4bc5

2015-06-04 Thread Tapani
Reviewed-by: Tapani Pälli On 06/04/2015 02:19 PM, Martin Peres wrote: The comment was accurate but the condition was reversed... Signed-off-by: Martin Peres --- src/mesa/program/ir_to_mesa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/program/ir_to_mesa.c

[Mesa-dev] [PATCH V2] glsl: fix binding validation for interface blocks

2015-06-04 Thread Timothy Arceri
V2: fix minor formating issue Cc: Kenneth Graunke --- There is no piglit test for this although I do have an array of arrays test to cover it once that support is added src/glsl/ast_to_hir.cpp | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/gls

[Mesa-dev] [PATCH] draw: (trivial) fix NULL pointer dereference

2015-06-04 Thread sroland
From: Roland Scheidegger This probably got broken when the samplers were converted to be indexed by shader type. Seen when looking at bug 89819 though I'm not sure if that really was what the bug was about... Cc: "10.5 10.6" --- src/gallium/auxiliary/draw/draw_llvm.c | 4 ++-- 1 file changed,

  1   2   >