Re: [Mesa-dev] [PATCH 1/2] egl/dri2: implement platform_null (v2).

2015-04-07 Thread Frank Henigman
On Wed, Apr 8, 2015 at 1:28 AM, Chad Versace wrote: > On Tue 07 Apr 2015, Kristian Høgsberg wrote: >> >> On Tue, Apr 7, 2015 at 6:46 PM, Frank Henigman >> wrote: >>> >>> The name "surfaceless" suits me. >>> >>> Does this platform need to provide a hint to the user about buffer >>> format? >>> Pla

Re: [Mesa-dev] [PATCH 1/2] egl/dri2: implement platform_null (v2).

2015-04-07 Thread Chad Versace
On Tue 07 Apr 2015, Kristian Høgsberg wrote: On Tue, Apr 7, 2015 at 6:46 PM, Frank Henigman wrote: The name "surfaceless" suits me. Does this platform need to provide a hint to the user about buffer format? Platform drm does this via the EGL_NATIVE_VISUAL_ID query of eglGetConfigAttrib(), retu

Re: [Mesa-dev] [PATCH 1/2] egl/dri2: implement platform_null (v2).

2015-04-07 Thread Kristian Høgsberg
On Tue, Apr 7, 2015 at 6:46 PM, Frank Henigman wrote: > The name "surfaceless" suits me. > > Does this platform need to provide a hint to the user about buffer format? > Platform drm does this via the EGL_NATIVE_VISUAL_ID query of > eglGetConfigAttrib(), returning a gbm format value. Unless we do

Re: [Mesa-dev] [PATCH] i965: Fix depth field setting in surface state for raw buffer on Gen7/8

2015-04-07 Thread Zhenyu Wang
On 2015.04.07 09:18:08 -0700, Kristian Høgsberg wrote: > On Mon, Apr 6, 2015 at 10:51 PM, Zhenyu Wang wrote: > > On Gen7/8 for RAW surface format, the depth field (surf[3]) in surface > > state means [30:21] bits of number of entries which is different from > > other surface format which uses [26:

Re: [Mesa-dev] [PATCH 1/2] egl/dri2: implement platform_null (v2).

2015-04-07 Thread Frank Henigman
The name "surfaceless" suits me. Does this platform need to provide a hint to the user about buffer format? Platform drm does this via the EGL_NATIVE_VISUAL_ID query of eglGetConfigAttrib(), returning a gbm format value. Unless we do the same or similar here, how does the user robustly find the r

Re: [Mesa-dev] [PATCH] st/mesa: align cube map arrays layers

2015-04-07 Thread Dave Airlie
On 8 April 2015 at 10:43, Ilia Mirkin wrote: > On Tue, Apr 7, 2015 at 8:02 PM, Dave Airlie wrote: >> From: Dave Airlie >> >> We create textures internally for texsubimage, and we use >> the values from sub image to create a new texture, however >> we don't align these to valid sizes, and cube ma

[Mesa-dev] [PATCH] st/mesa: convert sub image for cube map arrays to 2d arrays for upload

2015-04-07 Thread Dave Airlie
From: Dave Airlie Since we can subimage upload a number of cube map array layers, that aren't a complete cube map array, we should specify things as a 2D array and blit from that. Suggested by Ilia Mirkin as an alternate fix for texsubimage cube map array issues. seems to work just as well. Si

Re: [Mesa-dev] [PATCH] st/mesa: align cube map arrays layers

2015-04-07 Thread Ilia Mirkin
On Tue, Apr 7, 2015 at 8:02 PM, Dave Airlie wrote: > From: Dave Airlie > > We create textures internally for texsubimage, and we use > the values from sub image to create a new texture, however > we don't align these to valid sizes, and cube map arrays > must have an array size aligned to 6. > >

[Mesa-dev] [PATCH] st/mesa: align cube map arrays layers

2015-04-07 Thread Dave Airlie
From: Dave Airlie We create textures internally for texsubimage, and we use the values from sub image to create a new texture, however we don't align these to valid sizes, and cube map arrays must have an array size aligned to 6. This fixes texsubimage cube_map_array on CAYMAN at least, (it was

Re: [Mesa-dev] Value Range Propagation in NIR (GSoC)

2015-04-07 Thread Connor Abbott
> Yes, copy propagation probably won't be so useful once we have value > range propagation; the former is a special case of the latter. Err, I meant constant propagation... ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop

Re: [Mesa-dev] Value Range Propagation in NIR (GSoC)

2015-04-07 Thread Connor Abbott
Hi Thomas, Thanks for submitting a proposal! Some comments/answers below. On Tue, Apr 7, 2015 at 3:34 PM, Thomas Helland wrote: > Hi, > > For those that don't know I've submitted a proposal for this years GSoC. > I've proposed to implement value range propagation and loop unrolling in > NIR. > S

Re: [Mesa-dev] [PATCH] gallium/ttn: add support for temp arrays

2015-04-07 Thread Jason Ekstrand
On Tue, Apr 7, 2015 at 1:30 PM, Rob Clark wrote: > From: Rob Clark > > Since the rest of NIR really would rather have these as variables rather > than registers, create a nir_variable per array. But rather than > completely re-arrange ttn to be variable based rather than register > based, keep t

Re: [Mesa-dev] [PATCH] glsl: Allow any sort of sampler array indexing with GLSL ES < 3.00

2015-04-07 Thread Ian Romanick
On 04/07/2015 03:22 AM, Francisco Jerez wrote: > Tapani Pälli writes: > >> From: Kalyan Kondapally >> >> Dynamic indexing of sampler arrays is prohibited by GLSL ES 3.00. >> Earlier versions allow 'constant-index-expression' indexing, where >> index can contain a loop induction variable. >> >> P

Re: [Mesa-dev] [PATCH] i965: Add the ability to render to I8/L8 and I16/L16 UNORM formats.

2015-04-07 Thread Ian Romanick
On 04/06/2015 05:06 PM, Kenneth Graunke wrote: > This allows those formats to work with the meta PBO upload path. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_surface_formats.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH] gallium/ttn: add support for temp arrays

2015-04-07 Thread Rob Clark
From: Rob Clark Since the rest of NIR really would rather have these as variables rather than registers, create a nir_variable per array. But rather than completely re-arrange ttn to be variable based rather than register based, keep the registers. In the cases where there is a matching var for

Re: [Mesa-dev] DMA_BUF render targets disabled for intel

2015-04-07 Thread Chad Versace
On Thu 02 Apr 2015, Axel Davy wrote: Hi, you may be interesting look at this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=87452#c5 Yours, Axel Davy On 02/04/2015 11:58, Volker Vogelhuber wrote : We currently want to stream OpenGL output to an FPGA that does not provide a

[Mesa-dev] [PATCH v2] i965/fs: Always invert predicate of SEL with swapped arguments

2015-04-07 Thread Ian Romanick
From: Ian Romanick Commit b616164 added an optimization of b2f generation of a comparison. It also included an extra optimization of one of the comparison values is a constant of zero. The trick was that some value was known to be zero, so that value could be used in the SEL instruction instead

[Mesa-dev] Value Range Propagation in NIR (GSoC)

2015-04-07 Thread Thomas Helland
Hi, For those that don't know I've submitted a proposal for this years GSoC. I've proposed to implement value range propagation and loop unrolling in NIR. Since I'm no expert on compilers I've read up on some litterature: I started with "Constant propagation with conditional branches" (thanks Co

[Mesa-dev] [PATCH 6/5] nir: Make nir_*_instr_create take a nir_shader instead of a void * context

2015-04-07 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/glsl/nir/nir.c | 36 ++-- src/glsl/nir/nir.h | 18 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 1c6b603..c6e5361 100644 --- a/src/glsl/nir/ni

Re: [Mesa-dev] [PATCH] i965: replace __FUNCTION__ with __func__

2015-04-07 Thread Matt Turner
On Tue, Apr 7, 2015 at 12:05 PM, Marius Predut wrote: > Consistently just use C99's __func__ everywhere. > The patch was verified with Microsoft Visual studio 2013 > redistributable package(RTM version number: 18.0.21005.1) Presumably not, since i965 isn't built with MSVC :) But yeah, the patch

[Mesa-dev] [PATCH] glx: replace __FUNCTION__ with __func__

2015-04-07 Thread Marius Predut
Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Signed-off-by: Marius Predut --- src/glx/apple/apple_glx_log.

[Mesa-dev] [PATCH] i915: replace __FUNCTION__ with __func__

2015-04-07 Thread Marius Predut
Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Signed-off-by: Marius Predut --- src/mesa/drivers/dri/i915/i8

[Mesa-dev] [PATCH] i965: replace __FUNCTION__ with __func__

2015-04-07 Thread Marius Predut
Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Signed-off-by: Marius Predut --- src/mesa/drivers/dri/common/

[Mesa-dev] [PATCH] main: replace __FUNCTION__ with __func__

2015-04-07 Thread Marius Predut
Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Signed-off-by: Marius Predut --- src/mesa/main/atifragshader.

[Mesa-dev] [PATCH] state_tracker: replace __FUNCTION__ with __func__

2015-04-07 Thread Marius Predut
Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Signed-off-by: Marius Predut --- src/mesa/state_tracker/st_at

[Mesa-dev] [PATCH] swrast: replace __FUNCTION__ with __func__

2015-04-07 Thread Marius Predut
Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Signed-off-by: Marius Predut --- src/mesa/swrast/s_linetemp.h

Re: [Mesa-dev] [PATCH] i965: Use SET_FIELD in 3DSTATE_STREAMOUT packets.

2015-04-07 Thread Anuj Phogat
On Mon, Apr 6, 2015 at 4:12 PM, Kenneth Graunke wrote: > Suggested by Topi Pohjolainen. > > Signed-off-by: Kenneth Graunke > Cc: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/gen7_sol_state.c | 16 > src/mesa/drivers/dri/i965/gen8_sol_state.c | 16 > 2 fi

[Mesa-dev] [Bug 89899] nir/nir_lower_tex_projector.c:112: error: unknown field ‘ssa’ specified in initializer

2015-04-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89899 Jason Ekstrand changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] i965: Add the ability to render to I8/L8 and I16/L16 UNORM formats.

2015-04-07 Thread Anuj Phogat
On Mon, Apr 6, 2015 at 5:06 PM, Kenneth Graunke wrote: > This allows those formats to work with the meta PBO upload path. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_surface_formats.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/mesa/drivers/

Re: [Mesa-dev] [PATCH 1/4] mesa/teximage: use correct extension for accept stencil texture.

2015-04-07 Thread Kenneth Graunke
On Monday, April 06, 2015 09:44:07 PM Pohjolainen, Topi wrote: > On Mon, Apr 06, 2015 at 11:37:08AM -0700, Ian Romanick wrote: > > On 04/06/2015 08:33 AM, Pohjolainen, Topi wrote: > > > On Sun, Apr 05, 2015 at 08:22:13PM +0300, Pohjolainen, Topi wrote: > > >> On Sun, Apr 05, 2015 at 08:06:50PM +030

Re: [Mesa-dev] [PATCH] nir/lower_tex_projector: Don't use designated initializers

2015-04-07 Thread Mark Janes
Reviewed-by: Mark Janes Jason Ekstrand writes: > These don't work in MSVC or in older versions of GCC > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89899 > Cc: Eric Anholt > --- > src/glsl/nir/nir_lower_tex_projector.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >

Re: [Mesa-dev] [PATCH] i965: Fix depth field setting in surface state for raw buffer on Gen7/8

2015-04-07 Thread Anuj Phogat
On Mon, Apr 6, 2015 at 10:51 PM, Zhenyu Wang wrote: > On Gen7/8 for RAW surface format, the depth field (surf[3]) in surface > state means [30:21] bits of number of entries which is different from > other surface format which uses [26:21] bits field. > > Signed-off-by: Zhenyu Wang > --- > src/me

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-07 Thread Emil Velikov
On 7 April 2015 at 16:21, Jose Fonseca wrote: > On 07/04/15 15:01, Emil Velikov wrote: ... >> >> So let see if I got this correct, apologies in advance if it comes out >> too blunt. >> >> Unless I'm mistaken the gallium interfaces are internal/private, so >> comparing them with public ones (like t

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-07 Thread Jose Fonseca
On 07/04/15 17:16, Matt Turner wrote: On Tue, Apr 7, 2015 at 5:14 AM, Jose Fonseca wrote: Sorry for the delay. I've been away during the Easter. On 02/04/15 19:02, Matt Turner wrote: On Thu, Apr 2, 2015 at 7:32 AM, Jose Fonseca wrote: These were being defined in SCons, but it's not practi

Re: [Mesa-dev] [PATCH v2 1/2] primconvert: select pv convention only from flatshade_first

2015-04-07 Thread Roland Scheidegger
This looks good to me. Note that generally it is not true that this doesn't affect things when flatshading isn't in effect - this is only true if you only have old-style semantics, where color is the only attribute which can be flatshaded (and is done so with the rasterizer setting). But not true i

Re: [Mesa-dev] [RFC 2/2] gallium/ttn: add support for temp arrays

2015-04-07 Thread Rob Clark
On Tue, Apr 7, 2015 at 12:32 PM, Jason Ekstrand wrote: > On Tue, Apr 7, 2015 at 8:52 AM, Rob Clark wrote: >> From: Rob Clark >> >> Since the rest of NIR really would rather have these as variables rather >> than registers, create a nir_variable per array. But rather than >> completely re-arrang

Re: [Mesa-dev] [RFC 0/2] nir and ttn support for indirect/arrays

2015-04-07 Thread Jason Ekstrand
On Tue, Apr 7, 2015 at 8:52 AM, Rob Clark wrote: > From: Rob Clark > > Introduce intrinsics to load/store global vars (since I'm not sure what > the point is to have global as a var type if there is no way to access > it, but maybe I'm missing something), and update ttn to generate global > varia

Re: [Mesa-dev] [RFC 2/2] gallium/ttn: add support for temp arrays

2015-04-07 Thread Jason Ekstrand
On Tue, Apr 7, 2015 at 8:52 AM, Rob Clark wrote: > From: Rob Clark > > Since the rest of NIR really would rather have these as variables rather > than registers, create a nir_variable per array. But rather than > completely re-arrange ttn to be variable based rather than register > based, keep t

Re: [Mesa-dev] [PATCH] glsl: check for forced_language_version in is_version()

2015-04-07 Thread Brian Paul
Ping. On 04/01/2015 02:38 PM, Brian Paul wrote: This is a follow-on fix from the earlier "glsl: allow ForceGLSLVersion to override #version directives" change. Since we're not changing the language_version field, we have to check forced_language_version here. --- src/glsl/glsl_parser_extras.h

Re: [Mesa-dev] [PATCH v2 1/2] primconvert: select pv convention only from flatshade_first

2015-04-07 Thread Ilia Mirkin
BTW, I should have mentioned -- this affects the way that quads are split up into tri's, which is most likely the source of any differences from my later change which makes quads respect pv order. On Tue, Apr 7, 2015 at 12:12 PM, Ilia Mirkin wrote: > This should match to how drivers program hardw

Re: [Mesa-dev] [PATCH] i965: Fix depth field setting in surface state for raw buffer on Gen7/8

2015-04-07 Thread Kristian Høgsberg
On Mon, Apr 6, 2015 at 10:51 PM, Zhenyu Wang wrote: > On Gen7/8 for RAW surface format, the depth field (surf[3]) in surface > state means [30:21] bits of number of entries which is different from > other surface format which uses [26:21] bits field. > > Signed-off-by: Zhenyu Wang Is there a bu

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-07 Thread Matt Turner
On Tue, Apr 7, 2015 at 5:14 AM, Jose Fonseca wrote: > Sorry for the delay. I've been away during the Easter. > > On 02/04/15 19:02, Matt Turner wrote: >> >> On Thu, Apr 2, 2015 at 7:32 AM, Jose Fonseca wrote: >>> >>> These were being defined in SCons, but it's not practical -- we actually >>> nee

[Mesa-dev] [PATCH v2 1/2] primconvert: select pv convention only from flatshade_first

2015-04-07 Thread Ilia Mirkin
This should match to how drivers program hardware. It shouldn't matter when flatshading isn't in effect, but somehow it seems to. Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/indices/u_primconvert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/auxilia

[Mesa-dev] [PATCH v2 2/2] indices: fix provoking vertex for quads/quadstrips

2015-04-07 Thread Ilia Mirkin
This allows drivers to provide consistent flat shading for quads. Otherwise a driver that only supported tris would have to force last provoking vertex when drawing quads (and would have to say that quads don't follow the provoking vertex convention). Signed-off-by: Ilia Mirkin --- vmware folks

Re: [Mesa-dev] [PATCH] indices: fix provoking vertex for quads/quadstrips

2015-04-07 Thread Ilia Mirkin
Mystery semi-solved? Previously u_primconvert would always select *FIRST* provoking order when flatshading wasn't enabled, but the quads would still follow the "last" logic. No big deal. I added support for quads to be able to follow the provoking vertex convention, but now the way that the quad is

[Mesa-dev] [RFC 0/2] nir and ttn support for indirect/arrays

2015-04-07 Thread Rob Clark
From: Rob Clark Introduce intrinsics to load/store global vars (since I'm not sure what the point is to have global as a var type if there is no way to access it, but maybe I'm missing something), and update ttn to generate global variables for arrays. So, for example: FRAG PROPERTY FS_CO

[Mesa-dev] [RFC 2/2] gallium/ttn: add support for temp arrays

2015-04-07 Thread Rob Clark
From: Rob Clark Since the rest of NIR really would rather have these as variables rather than registers, create a nir_variable per array. But rather than completely re-arrange ttn to be variable based rather than register based, keep the registers. In the cases where there is a matching var for

[Mesa-dev] [RFC 1/2] nir: add intrinsics for load/store global

2015-04-07 Thread Rob Clark
From: Rob Clark Seemed like these were missing in action? This is how it works for other vars (uniform/shader_in/shader_out/etc), so seemed sensible. Signed-off-by: Rob Clark --- src/glsl/nir/nir_intrinsics.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/glsl/n

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-07 Thread Jose Fonseca
On 07/04/15 15:01, Emil Velikov wrote: On 7 April 2015 at 13:14, Jose Fonseca wrote: Sorry for the delay. I've been away during the Easter. On 02/04/15 19:02, Matt Turner wrote: On Thu, Apr 2, 2015 at 7:32 AM, Jose Fonseca wrote: These were being defined in SCons, but it's not practical -

Re: [Mesa-dev] [PATCH] indices: fix provoking vertex for quads/quadstrips

2015-04-07 Thread Roland Scheidegger
It will look different with llvmpipe if you use the right debug variables (GALLIVM_DEBUG=no_brilinear,no_quad_lod,no_rho_approx), though still fail. I think the test may not be really valid. This is because if you use texgrad, the driver/hw probably will (or should) use per-pixel lod. But if you do

Re: [Mesa-dev] [PATCH 5/5] nir: Implement a nir_sweep() pass.

2015-04-07 Thread Jason Ekstrand
On Apr 7, 2015 2:32 AM, "Kenneth Graunke" wrote: > > This pass performs a mark and sweep pass over a nir_shader's associated > memory - anything still connected to the program will be kept, and any > dead memory we dropped on the floor will be freed. > > The expectation is that this will be called

Re: [Mesa-dev] [PATCH 4/5] nir: Allocate dereferences out of their parent instruction or deref.

2015-04-07 Thread Jason Ekstrand
Other than my nitpicking below this looks great! Thanks for working on this! On Apr 7, 2015 2:32 AM, "Kenneth Graunke" wrote: > > Jason pointed out that variable dereferences in NIR are really part of > their parent instruction, and should have the same lifetime. > > Unlike in GLSL IR, they're not

Re: [Mesa-dev] [PATCH] indices: fix provoking vertex for quads/quadstrips

2015-04-07 Thread Ilia Mirkin
Oh fun, those tests also fail with nvc0 and llvmpipe. But pass on softpipe. (The llvmpipe fail is visually different from the nvc0 and freedreno/a3xx one though.) On Tue, Apr 7, 2015 at 10:25 AM, Ilia Mirkin wrote: > Weird, this seems to regress > > bin/arb_shader_texture_lod-texgrad > bin/arb_sh

Re: [Mesa-dev] [PATCH] indices: fix provoking vertex for quads/quadstrips

2015-04-07 Thread Ilia Mirkin
Weird, this seems to regress bin/arb_shader_texture_lod-texgrad bin/arb_shader_texture_lod-texgradcube Visually they look the same, but piglit finds small differences. On Tue, Apr 7, 2015 at 2:20 AM, Ilia Mirkin wrote: > On Tue, Apr 7, 2015 at 1:44 AM, Ilia Mirkin wrote: >> Signed-off-by: Ilia

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-07 Thread Emil Velikov
On 7 April 2015 at 13:14, Jose Fonseca wrote: > Sorry for the delay. I've been away during the Easter. > > On 02/04/15 19:02, Matt Turner wrote: >> >> On Thu, Apr 2, 2015 at 7:32 AM, Jose Fonseca wrote: >>> >>> These were being defined in SCons, but it's not practical -- we actually >>> need to i

[Mesa-dev] [PATCH v2] glsl: fix assignment of multiple scalar and vecs to matrices.

2015-04-07 Thread Samuel Iglesias Gonsalvez
When a vec has more elements than row components in a matrix, the code could end up failing an assert inside assign_to_matrix_column(). This patch makes sure that when there is still room in the matrix for more elements (but in other columns of the matrix), the data is actually assigned. This pat

Re: [Mesa-dev] [PATCH] glsl: Allow any sort of sampler array indexing with GLSL ES < 3.00

2015-04-07 Thread Francisco Jerez
Tapani Pälli writes: > On 04/07/2015 01:22 PM, Francisco Jerez wrote: >> Tapani Pälli writes: >> >>> From: Kalyan Kondapally >>> >>> Dynamic indexing of sampler arrays is prohibited by GLSL ES 3.00. >>> Earlier versions allow 'constant-index-expression' indexing, where >>> index can contain a l

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-07 Thread Jose Fonseca
Sorry for the delay. I've been away during the Easter. On 02/04/15 19:02, Matt Turner wrote: On Thu, Apr 2, 2015 at 7:32 AM, Jose Fonseca wrote: These were being defined in SCons, but it's not practical -- we actually need to include Gallium headers from external source trees, with completely

Re: [Mesa-dev] [PATCH 4/5] glsl: Consider active all elements of a shared/std140 block array

2015-04-07 Thread Iago Toral
Besides fixing the mentioned dEQP crashes, this patch also generally fixes instance arrays with UBOs. The problem we have now is that each element in the UBO instance array is a separate UBO mapped to a specific binding point (and thus, a separate buffer), but we kill the instances that are not bei

Re: [Mesa-dev] [PATCH] glsl: Allow any sort of sampler array indexing with GLSL ES < 3.00

2015-04-07 Thread Tapani Pälli
On 04/07/2015 01:22 PM, Francisco Jerez wrote: Tapani Pälli writes: From: Kalyan Kondapally Dynamic indexing of sampler arrays is prohibited by GLSL ES 3.00. Earlier versions allow 'constant-index-expression' indexing, where index can contain a loop induction variable. Patch allows dynami

Re: [Mesa-dev] [PATCH] glsl: Allow any sort of sampler array indexing with GLSL ES < 3.00

2015-04-07 Thread Francisco Jerez
Tapani Pälli writes: > From: Kalyan Kondapally > > Dynamic indexing of sampler arrays is prohibited by GLSL ES 3.00. > Earlier versions allow 'constant-index-expression' indexing, where > index can contain a loop induction variable. > > Patch allows dynamic indexing for sampler arrays when GLSL

[Mesa-dev] [PATCH] glsl: Allow any sort of sampler array indexing with GLSL ES < 3.00

2015-04-07 Thread Tapani Pälli
From: Kalyan Kondapally Dynamic indexing of sampler arrays is prohibited by GLSL ES 3.00. Earlier versions allow 'constant-index-expression' indexing, where index can contain a loop induction variable. Patch allows dynamic indexing for sampler arrays when GLSL ES < 3.00. This change makes 'sampl

[Mesa-dev] [PATCH 2/5] nir: Allocate nir_phi_src values out of the nir_phi_instr.

2015-04-07 Thread Kenneth Graunke
Phi sources are part of the phi instruction and should have the same lifetime. Signed-off-by: Kenneth Graunke --- src/glsl/nir/nir_lower_phis_to_scalar.c | 2 +- src/glsl/nir/nir_lower_vars_to_ssa.c| 2 +- src/glsl/nir/nir_to_ssa.c | 2 +- 3 files changed, 3 insertions(+), 3 de

[Mesa-dev] [PATCH 5/5] nir: Implement a nir_sweep() pass.

2015-04-07 Thread Kenneth Graunke
This pass performs a mark and sweep pass over a nir_shader's associated memory - anything still connected to the program will be kept, and any dead memory we dropped on the floor will be freed. The expectation is that this will be called when finished building and optimizing the shader. However,

[Mesa-dev] [PATCH 4/5] nir: Allocate dereferences out of their parent instruction or deref.

2015-04-07 Thread Kenneth Graunke
Jason pointed out that variable dereferences in NIR are really part of their parent instruction, and should have the same lifetime. Unlike in GLSL IR, they're not used very often - just for intrinsic variables, call parameters & return, and indirect samplers for texturing. Also, nir_deref_var is

[Mesa-dev] [PATCH 3/5] nir: Allocate nir_ssa_def::uses/if_uses out of the instruction.

2015-04-07 Thread Kenneth Graunke
We can't allocate them out of the nir_ssa_def itself, because it may not be ralloc'd (for example, nir_dest embeds a nir_ssa_def). However, allocating them out of the instruction should work. Signed-off-by: Kenneth Graunke --- src/glsl/nir/nir.c | 6 ++ 1 file changed, 2 insertions(+), 4 de

[Mesa-dev] [PATCH 1/5] nir: Allocate nir_call_instr::params out of the nir_call itself.

2015-04-07 Thread Kenneth Graunke
The lifetime of the params array needs to be match the nir_call_instr itself. So, allocate it using the instruction itself as the context. Signed-off-by: Kenneth Graunke --- src/glsl/nir/nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) This is the 'nir-memory-v2' branch in my tree.

[Mesa-dev] [Bug 89599] symbol 'x86_64_entry_start' is already defined when building with LLVM/clang

2015-04-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89599 --- Comment #2 from Tomasz Paweł Gajc --- This patch fixes this issues: https://abf.io/openmandriva/mesa/blob/master/mesa-10.5.2-hide-few-symbols-to-workaround-clang.patch -- You are receiving this mail because: You are the QA Contact for the