[Mesa-dev] [PATCH] mesa: fix error type for GetFramebufferAttachmentParameteriv

2015-10-27 Thread Tapani Pälli
Fixes following failing dEQP test: dEQP-GLES3.functional.fbo.api.attachment_query_empty_fbo Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92649 Cc: "11.0" --- src/mesa/main/fbobject.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [Bug 92687] Add support for EXT_internalformat_query2

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92687 Bug ID: 92687 Summary: Add support for EXT_internalformat_query2 Product: Mesa Version: unspecified Hardware: Other OS: All Status: ASSIGNED Severity: nor

[Mesa-dev] Intent to work on support for EXT_internalformat_query2

2015-10-27 Thread Eduardo Lima Mitev
Hello, This is an announcement that a few folks at Igalia team are planning to work on adding support for EXT_internalformat_query2 extension to Mesa. If somebody had started work on this already, or has any input that is relevant to the implementation, we would be very thankful to hear about it.

[Mesa-dev] [Bug 91596] EGL_KHR_gl_colorspace (v2) causes problem with Android-x86 GUI

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91596 --- Comment #23 from Chih-Wei Huang --- (In reply to Emil Velikov from comment #15) > (In reply to Chih-Wei Huang from comment #11) > > Mesa still doesn't support PIXEL_FORMAT_RGBA_? > > It should, depending on how exactly you define the for

Re: [Mesa-dev] Intent to work on support for EXT_internalformat_query2

2015-10-27 Thread Chris Forbes
Presumably ARB_internalformat_query2? On Tue, Oct 27, 2015 at 9:31 PM, Eduardo Lima Mitev wrote: > Hello, > > This is an announcement that a few folks at Igalia team are planning to > work on adding support for EXT_internalformat_query2 extension to Mesa. > > If somebody had started work on this

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread Julien Isorce
On 25 October 2015 at 21:56, Samuel Pitoiset wrote: > > > On 10/22/2015 01:16 AM, Julien Isorce wrote: > >> The real fix is in nouveau_drm_winsys.c by setting dev to 0. >> Which means dev's ownership has been passed to previous call. >> Other changes are there to be consistent with what the >> sc

[Mesa-dev] [PATCH v2] nouveau: fix double free when screen_create fails

2015-10-27 Thread Julien Isorce
This patch prevents to call nouveau_device_del twice on the same device. Encountered this case when nvc0_screen_create fails with: nvc0_screen_create:717 - Error allocating PGRAPH context for M2MF: -16 https://bugs.freedesktop.org/show_bug.cgi?id=70354 Signed-off-by: Julien Isorce --- src/gall

[Mesa-dev] [PATCH] main: fix GL_MAX_NUM_ACTIVE_VARIABLES value for shader storage blocks

2015-10-27 Thread Samuel Iglesias Gonsalvez
The maximum number of active variables for shader storage blocks should take into account the specific rules for shader storage blocks, i.e. for an active shader storage block member declared as an array, an entry will be generated only for the first array element, regardless of its type. Fixes 3

Re: [Mesa-dev] [PATCH 3/3] st/mesa: implement ARB_copy_image

2015-10-27 Thread Nicolai Hähnle
On 25.10.2015 18:25, Marek Olšák wrote: +/** + * Handle complex format conversions using 2 blits with a temporary texture + * in between, e.g. blitting from B10G10R10A2 to G16R16. + * + * This example is implemented this way: + * 1) First, blit from B10G10R10A2 to R10G10B10A2, which is canonical,

Re: [Mesa-dev] [PATCH v2] nouveau: fix double free when screen_create fails

2015-10-27 Thread samuel.pitoiset
What about this one http://hastebin.com/uboruxicof.coffee ? This patch is loosely based on your first attempt, except that I removed the call to nouveau_device_del() in nouveau_drm_screen_create(). On 27/10/2015 09:52, Julien Isorce wrote: This patch prevents to call nouveau_device_del twice

[Mesa-dev] [Bug 92687] Add support for ARB_internalformat_query2

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92687 Alejandro Piñeiro (freenode IRC: apinheiro) changed: What|Removed |Added Summary|Add support for |Add support

Re: [Mesa-dev] [PATCH] mesa: fix error type for GetFramebufferAttachmentParameteriv

2015-10-27 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 27/10/15 08:11, Tapani Pälli wrote: > Fixes following failing dEQP test: >dEQP-GLES3.functional.fbo.api.attachment_query_empty_fbo > > Signed-off-by: Tapani Pälli > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92649 > Cc: "11.0" > --- >

Re: [Mesa-dev] [PATCH 3/3] st/mesa: implement ARB_copy_image

2015-10-27 Thread Marek Olšák
On Tue, Oct 27, 2015 at 4:26 AM, Ilia Mirkin wrote: >> + >> +static void >> +copy_image(struct pipe_context *pipe, >> + struct pipe_resource *dst, >> + unsigned dst_level, >> + unsigned dstx, unsigned dsty, unsigned dstz, >> + struct pipe_resource *src, >> +

[Mesa-dev] [PATCH 4/4] i965: use the load-combine pass

2015-10-27 Thread Iago Toral Quiroga
--- src/mesa/drivers/dri/i965/brw_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 11f1113..dd3b06c 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -170,6 +170,

[Mesa-dev] [PATCH 3/4] nir/load_combine: expand the pass to support load-after-store.

2015-10-27 Thread Iago Toral Quiroga
--- src/glsl/nir/nir_opt_load_combine.c | 107 +++- 1 file changed, 105 insertions(+), 2 deletions(-) diff --git a/src/glsl/nir/nir_opt_load_combine.c b/src/glsl/nir/nir_opt_load_combine.c index 926b1ab..effba13 100644 --- a/src/glsl/nir/nir_opt_load_combine.c +++

[Mesa-dev] [PATCH 2/4] nir: add a load-combine pass

2015-10-27 Thread Iago Toral Quiroga
For now, this pass can handle ssbo load combines within the same block. This is useful, for example, to make code such as this: buffer SSBO { mat4 sm4; }; uniform mat4 um4; void main() { sm4 *= um4; } go from 16 SSBO loads down to only 4. --- src/glsl/Makefile.sources | 1 +

[Mesa-dev] [PATCH 1/4] nir/instr_set: Add an allow_loads field

2015-10-27 Thread Iago Toral Quiroga
We need this so we can configure different behaviors for passes that cannot deal with side-effectful instructions (CSE) and passes that can (we will add a load-combine pass shortly). For now, when allow_loads is true, we let the instruction set rewrite SSBO loads. --- src/glsl/nir/nir_instr_set.c

[Mesa-dev] [PATCH 0/4] Nir: implement a load-combine pass

2015-10-27 Thread Iago Toral Quiroga
This follows the load-combine approach suggested by Connor and Jason in this thread: http://lists.freedesktop.org/archives/mesa-dev/2015-October/098052.html The pass works on local blocks only and supports rewriting loads with previous stores too. Only supports SSBO load/store operations at the m

Re: [Mesa-dev] [PATCH 3/3] st/mesa: implement ARB_copy_image

2015-10-27 Thread Michel Dänzer
On 26.10.2015 02:25, Marek Olšák wrote: > > +/** > + * Handle complex format conversions using 2 blits with a temporary texture > + * in between, e.g. blitting from B10G10R10A2 to G16R16. > + * > + * This example is implemented this way: > + * 1) First, blit from B10G10R10A2 to R10G10B10A2, which

Re: [Mesa-dev] Intent to work on support for ARB_internalformat_query2

2015-10-27 Thread Antía Puentes
Hi! Chris, On mar, 2015-10-27 at 21:45 +1300, Chris Forbes wrote: > Presumably ARB_internalformat_query2? Eduardo meant ARB_internalformat_query2, indeed. > On Tue, Oct 27, 2015 at 9:31 PM, Eduardo Lima Mitev > wrote: > Hello, > > This is an announcement that a few folk

Re: [Mesa-dev] [PATCH 3/3] st/mesa: implement ARB_copy_image

2015-10-27 Thread Marek Olšák
On Tue, Oct 27, 2015 at 10:33 AM, Michel Dänzer wrote: > On 26.10.2015 02:25, Marek Olšák wrote: >> >> +/** >> + * Handle complex format conversions using 2 blits with a temporary texture >> + * in between, e.g. blitting from B10G10R10A2 to G16R16. >> + * >> + * This example is implemented this wa

Re: [Mesa-dev] [PATCH v2] nouveau: fix double free when screen_create fails

2015-10-27 Thread Julien Isorce
Looks good though what happened to the del around if (!oclass) in nv30_screen_create ? Also it seems to fix the other problem around else if (dupfd) which was not closed on failure. On 27 October 2015 at 09:10, samuel.pitoiset wrote: > What about this one http://hastebin.com/uboruxicof.coffee ?

Re: [Mesa-dev] [PATCH v2] nouveau: fix double free when screen_create fails

2015-10-27 Thread samuel.pitoiset
On 27/10/2015 11:08, Julien Isorce wrote: Looks good though what happened to the del around if (!oclass) in nv30_screen_create ? Yeah, good catch. I think we could use FAIL_SCREEN_INIT() there. I'll send a new patch with this fix. Also it seems to fix the other problem around else if (dupfd

[Mesa-dev] [Bug 92645] kodi vdpau interop fails since mesa, meta: move gl_texture_object::TargetIndex initializations

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92645 --- Comment #1 from Marek Olšák --- Created attachment 119221 --> https://bugs.freedesktop.org/attachment.cgi?id=119221&action=edit possible fix Could you please test this patch? -- You are receiving this mail because: You are the QA Contact

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread Emil Velikov
On 22 October 2015 at 00:16, Julien Isorce wrote: > The real fix is in nouveau_drm_winsys.c by setting dev to 0. > Which means dev's ownership has been passed to previous call. > Other changes are there to be consistent with what the > screen_create functions already do on errors. > > Encountered

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread samuel.pitoiset
On 27/10/2015 11:37, Emil Velikov wrote: On 22 October 2015 at 00:16, Julien Isorce wrote: The real fix is in nouveau_drm_winsys.c by setting dev to 0. Which means dev's ownership has been passed to previous call. Other changes are there to be consistent with what the screen_create functions

Re: [Mesa-dev] [PATCH v2] mesa: Draw indirect is not allowed if the default VAO is bound.

2015-10-27 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 10/26/2015 11:58 AM, Marta Lofstedt wrote: From: Marta Lofstedt From OpenGL ES 3.1 specification, section 10.5: "DrawArraysIndirect requires that all data sourced for the command, including the DrawArraysIndirectCommand structure, be in buffer objects, and may

[Mesa-dev] [Bug 92645] kodi vdpau interop fails since mesa, meta: move gl_texture_object::TargetIndex initializations

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92645 --- Comment #2 from Andy Furniss --- (In reply to Marek Olšák from comment #1) > Created attachment 119221 [details] [review] > possible fix > > Could you please test this patch? Working OK with the patch, thanks. -- You are receiving this ma

Re: [Mesa-dev] [PATCH 1/2] i965/vec4: Remove unnecessary #includes from the generator.

2015-10-27 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Sat, 2015-10-24 at 13:20 -0700, Matt Turner wrote: > --- > src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 8 > 1 file changed, 8 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp > b/src/mesa/drivers/dri/i965/brw_vec4

[Mesa-dev] [PATCH 2/2] glsl: add fragdata arrays to program resource list

2015-10-27 Thread Tapani Pälli
This makes sure that user is still able to query properties about variables that have gotten removed by opt_dead_builtin_varyings pass. Fixes following OpenGL ES 3.1 test: ES31-CTS.program_interface_query.output-layout No Piglit regressions. Signed-off-by: Tapani Pälli --- src/glsl/linker.c

[Mesa-dev] [PATCH 1/2] mesa: add fragdata_arrays list to gl_shader

2015-10-27 Thread Tapani Pälli
This is required to store information about fragdata arrays, currently these variables get lost and cannot be retrieved later in sensible way for program interface queries. List will be utilized by next patch. Patch also modifies opt_dead_builtin_varyings pass to build list when lowering fragdata

[Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV

2015-10-27 Thread Marek Olšák
From: Marek Olšák This is required since 7d7dd1871174905dfdd3ca874a09d9. --- src/mesa/main/vdpau.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/vdpau.c b/src/mesa/main/vdpau.c index 0efa56e..0c000c4 100644 --- a/src/mesa/main/vdpau.c +++ b/src/mesa/main/vdpau.c @@ -375,6

Re: [Mesa-dev] [PATCH] main: fix GL_MAX_NUM_ACTIVE_VARIABLES value for shader storage blocks

2015-10-27 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 10/27/2015 11:08 AM, Samuel Iglesias Gonsalvez wrote: The maximum number of active variables for shader storage blocks should take into account the specific rules for shader storage blocks, i.e. for an active shader storage block member declared as an array, an entr

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread Emil Velikov
On 27 October 2015 at 10:50, samuel.pitoiset wrote: > On 27/10/2015 11:37, Emil Velikov wrote: >> >> On 22 October 2015 at 00:16, Julien Isorce >> wrote: >>> >>> The real fix is in nouveau_drm_winsys.c by setting dev to 0. >>> Which means dev's ownership has been passed to previous call. >>> Othe

[Mesa-dev] [Bug 69589] [bisected] Piglit gl-3.2-draw-buffers-errors fails

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69589 Tapani Pälli changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH] glsl: join calculate_array_size() and calculate_array_stride()

2015-10-27 Thread Juha-Pekka Heikkila
These helpers are ran for same case the same loop. Here joined their operation so the loop is ran just once. Also fixed out-of-memory condition here. v2: Make the loop simpler to read as per Tapani's suggestion Signed-off-by: Juha-Pekka Heikkila --- src/glsl/linker.cpp | 190 +++

Re: [Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV

2015-10-27 Thread Emil Velikov
Hi Marek, On 27 October 2015 at 11:31, Marek Olšák wrote: > From: Marek Olšák > > This is required since 7d7dd1871174905dfdd3ca874a09d9. Can you add the bugzilla tag please. I'd suspect many of us are not fluent in gl-vdpau interop can you please throw in a small comment. Thinking about the fol

Re: [Mesa-dev] [PATCH 2/2] glsl: add fragdata arrays to program resource list

2015-10-27 Thread Pohjolainen, Topi
On Tue, Oct 27, 2015 at 01:18:42PM +0200, Tapani P?lli wrote: > This makes sure that user is still able to query properties about > variables that have gotten removed by opt_dead_builtin_varyings pass. > > Fixes following OpenGL ES 3.1 test: >ES31-CTS.program_interface_query.output-layout > >

Re: [Mesa-dev] [PATCH 1/4] nir/instr_set: Add an allow_loads field

2015-10-27 Thread Pohjolainen, Topi
On Tue, Oct 27, 2015 at 10:28:58AM +0100, Iago Toral Quiroga wrote: > We need this so we can configure different behaviors for passes that > cannot deal with side-effectful instructions (CSE) and passes that can > (we will add a load-combine pass shortly). > > For now, when allow_loads is true, we

Re: [Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV

2015-10-27 Thread Christian König
On 27.10.2015 13:16, Emil Velikov wrote: Hi Marek, On 27 October 2015 at 11:31, Marek Olšák wrote: From: Marek Olšák This is required since 7d7dd1871174905dfdd3ca874a09d9. Can you add the bugzilla tag please. I'd suspect many of us are not fluent in gl-vdpau interop can you please throw in

Re: [Mesa-dev] [PATCH 1/2] mesa: add fragdata_arrays list to gl_shader

2015-10-27 Thread Lofstedt, Marta
Reviewed-by: Marta Lofstedt > -Original Message- > From: Palli, Tapani > Sent: Tuesday, October 27, 2015 12:19 PM > To: mesa-dev@lists.freedesktop.org > Cc: Lofstedt, Marta; Palli, Tapani > Subject: [PATCH 1/2] mesa: add fragdata_arrays list to gl_shader > > This is required to store inf

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread samuel.pitoiset
On 27/10/2015 12:52, Emil Velikov wrote: On 27 October 2015 at 10:50, samuel.pitoiset wrote: On 27/10/2015 11:37, Emil Velikov wrote: On 22 October 2015 at 00:16, Julien Isorce wrote: The real fix is in nouveau_drm_winsys.c by setting dev to 0. Which means dev's ownership has been passed t

Re: [Mesa-dev] [PATCH] glsl: join calculate_array_size() and calculate_array_stride()

2015-10-27 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 27/10/15 12:55, Juha-Pekka Heikkila wrote: > These helpers are ran for same case the same loop. Here joined > their operation so the loop is ran just once. Also fixed > out-of-memory condition here. > > v2: Make the loop simpler to read as per Tapani's s

Re: [Mesa-dev] [PATCH 1/2] gbm: Add a flag to enable creation of rotated scanout buffers

2015-10-27 Thread Ville Syrjälä
On Fri, Oct 23, 2015 at 06:25:55PM -0700, Vivek Kasireddy wrote: > On Fri, 23 Oct 2015 15:29:08 +0300 > Ville Syrjälä wrote: > > > On Fri, Oct 23, 2015 at 12:18:39PM +0900, Michel Dänzer wrote: > > > On 23.10.2015 10:44, Vivek Kasireddy wrote: > > > > For certain platforms that support rotated sc

Re: [Mesa-dev] [PATCH 18/20] i965: Program the push constants state using the gather table

2015-10-27 Thread Francisco Jerez
Francisco Jerez writes: > Abdiel Janulgue writes: > >> Use the gather table generated from the uniform uploads and >> ir_binop_ubo_load to gather and pack the constants to the gather pool. >> >> Note that the 3DSTATE_CONSTANT_* packet now refers to the gather >> pool generated by the resource st

Re: [Mesa-dev] [PATCH 2/2] glsl: add fragdata arrays to program resource list

2015-10-27 Thread Lofstedt, Marta
Reviewed-by: Marta Lofstedt > -Original Message- > From: Palli, Tapani > Sent: Tuesday, October 27, 2015 12:19 PM > To: mesa-dev@lists.freedesktop.org > Cc: Lofstedt, Marta; Palli, Tapani > Subject: [PATCH 2/2] glsl: add fragdata arrays to program resource list > > This makes sure that u

[Mesa-dev] [PATCH] main: fix basename match's check if it's an array or struct

2015-10-27 Thread Samuel Iglesias Gonsalvez
Commit 4565b6f did not update the basename match's check for the case that string would exactly match the name of the variable if the suffix "[0]" were appended to it. Fixes two dEQP-GLES31 tests: dEQP-GLES31.functional.program_interface_query.shader_storage_block.resource_list.block_array dEQP-G

Re: [Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV

2015-10-27 Thread Brian Paul
Sorry for causing this regression. Thanks for fixing it. Question below... On 10/27/2015 05:31 AM, Marek Olšák wrote: From: Marek Olšák This is required since 7d7dd1871174905dfdd3ca874a09d9. --- src/mesa/main/vdpau.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/vdp

Re: [Mesa-dev] [Mesa-stable] [PATCH] mesa: fix error type for GetFramebufferAttachmentParameteriv

2015-10-27 Thread Ian Romanick
On 10/27/2015 12:11 AM, Tapani Pälli wrote: > Fixes following failing dEQP test: >dEQP-GLES3.functional.fbo.api.attachment_query_empty_fbo > > Signed-off-by: Tapani Pälli > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92649 > Cc: "11.0" > --- > src/mesa/main/fbobject.c | 5 +++-- >

[Mesa-dev] [Bug 92645] kodi vdpau interop fails since mesa, meta: move gl_texture_object::TargetIndex initializations

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92645 Marek Olšák changed: What|Removed |Added Attachment #119221|0 |1 is obsolete|

Re: [Mesa-dev] [PATCH] st/mesa: fix mipmap generation for immutable textures with incomplete pyramids

2015-10-27 Thread Marek Olšák
On Fri, Oct 23, 2015 at 1:28 AM, Nicolai Hähnle wrote: > (This is an alternative to my previous patch, "mesa: clamp MaxLevel for > immutable textures at initialization"; this patch has no opinion about > how the spec should be interpreted.) > > Without the clamping by NumLevels, the state tracker

[Mesa-dev] [PATCH] AMDGPU: add stoney support

2015-10-27 Thread Alex Deucher
Signed-off-by: Alex Deucher --- lib/Target/AMDGPU/Processors.td | 4 1 file changed, 4 insertions(+) diff --git a/lib/Target/AMDGPU/Processors.td b/lib/Target/AMDGPU/Processors.td index d9a0723..a1584a2 100644 --- a/lib/Target/AMDGPU/Processors.td +++ b/lib/Target/AMDGPU/Processors.td @@ -1

[Mesa-dev] [Bug 92645] kodi vdpau interop fails since mesa, meta: move gl_texture_object::TargetIndex initializations

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92645 --- Comment #4 from Andy Furniss --- (In reply to Marek Olšák from comment #3) > Created attachment 119225 [details] [review] > fix 2 > > The first fix was not completely correct. Would you please test this one? > Thanks. fix2 is working OK. -

[Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV (v2)

2015-10-27 Thread Marek Olšák
From: Marek Olšák We initialized Target, but not TargetIndex. This is required since 7d7dd1871174905dfdd3ca874a09d9. v2: do it in the right place. Noticed by Brian Paul. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92645 --- src/mesa/main/vdpau.c | 5 +++-- 1 file changed, 3 insertio

Re: [Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV (v2)

2015-10-27 Thread Brian Paul
On 10/27/2015 02:17 PM, Marek Olšák wrote: From: Marek Olšák We initialized Target, but not TargetIndex. This is required since 7d7dd1871174905dfdd3ca874a09d9. v2: do it in the right place. Noticed by Brian Paul. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92645 --- src/mesa/main

Re: [Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV (v2)

2015-10-27 Thread Marek Olšák
Thanks, and sorry, I forgot to update the commit message. I will commit it shortly with that fixed. Marek On Tue, Oct 27, 2015 at 9:19 PM, Brian Paul wrote: > On 10/27/2015 02:17 PM, Marek Olšák wrote: >> >> From: Marek Olšák >> >> We initialized Target, but not TargetIndex. >> This is required

[Mesa-dev] [PATCH] i965: Do legacy userclipping in OpenGL ES 1.x contexts.

2015-10-27 Thread Ian Romanick
From: Ian Romanick Commit fba4823a disabled user clipping for everything except compatibility profile. Core profile and OpenGL ES 2.0+ have all removed the classic, OpenGL 1.0 user clip planes. ES 1.x, however, still has them. Fixes OpenGL ES 1.1 conformance mustpass.c and userclip.c Signed-o

Re: [Mesa-dev] [PATCH] i965: Do legacy userclipping in OpenGL ES 1.x contexts.

2015-10-27 Thread Kenneth Graunke
On Tuesday, October 27, 2015 02:56:24 PM Ian Romanick wrote: > From: Ian Romanick > > Commit fba4823a disabled user clipping for everything except > compatibility profile. Core profile and OpenGL ES 2.0+ have all removed > the classic, OpenGL 1.0 user clip planes. ES 1.x, however, still has > t

Re: [Mesa-dev] [PATCH v2 12/11] i965: Add scalar geometry shader support.

2015-10-27 Thread Kristian Høgsberg
On Mon, Oct 12, 2015 at 02:55:32PM -0700, Kenneth Graunke wrote: > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 174 ++ > src/mesa/drivers/dri/i965/brw_fs.h| 16 +- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 378 >

[Mesa-dev] [Bug 92278] Black screen in War Thunder

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92278 --- Comment #6 from Ian Romanick --- (In reply to Sven Arvidsson from comment #5) > The patch works fine here, awesome work! Fantastic to have it fixed so > quickly! > > The developer of the game is Gaijin Entertainment, http://gaijinent.com >

[Mesa-dev] [Bug 92278] Black screen in War Thunder

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92278 --- Comment #7 from Ian Romanick --- (In reply to Tapani Pälli from comment #4) > Created attachment 119200 [details] [review] > hack that fixes issue > > This is slightly cleaner but still just a hack, it looks like we would need > full GL_EXT_

[Mesa-dev] [PATCH] texgetimage: fix regression with shadow 1d array

2015-10-27 Thread Dave Airlie
From: Dave Airlie since 1ad305b612f389fb04c6d51847427d5ec72fae03 Brian Paul Date: Tue Jul 21 18:35:38 2015 -0600 mesa: plumb offset/size parameters through GetTexSubImage code I found this testing virgl which exercises a bunch of these in it's fallbacks. Signed-off-by: Dave Airlie ---

Re: [Mesa-dev] [PATCH] texgetimage: fix regression with shadow 1d array

2015-10-27 Thread Ilia Mirkin
On Tue, Oct 27, 2015 at 10:26 PM, Dave Airlie wrote: > From: Dave Airlie > > since 1ad305b612f389fb04c6d51847427d5ec72fae03 > Brian Paul > Date: Tue Jul 21 18:35:38 2015 -0600 > > mesa: plumb offset/size parameters through GetTexSubImage code > > I found this testing virgl which exercises

[Mesa-dev] [Bug 92278] Black screen in War Thunder

2015-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92278 --- Comment #8 from Tapani Pälli --- (In reply to Ian Romanick from comment #7) > (In reply to Tapani Pälli from comment #4) > > Created attachment 119200 [details] [review] [review] > > hack that fixes issue > > > > This is slightly cleaner but

[Mesa-dev] [PATCH 2/3] mesa: Map program UBOs and SSBOs to Interface Blocks

2015-10-27 Thread Jordan Justen
Signed-off-by: Jordan Justen Cc: Samuel Iglesias Gonsálvez Cc: Iago Toral Quiroga --- src/glsl/linker.cpp | 14 ++ src/glsl/standalone_scaffolding.cpp | 5 + src/mesa/main/mtypes.h | 7 +++ 3 files changed, 26 insertions(+) diff --git a/src/gl

Re: [Mesa-dev] [PATCH] glsl: join calculate_array_size() and calculate_array_stride()

2015-10-27 Thread Tapani Pälli
I did a regression check with CTS, no failures; Tested-by: Tapani Pälli On 10/27/2015 01:55 PM, Juha-Pekka Heikkila wrote: These helpers are ran for same case the same loop. Here joined their operation so the loop is ran just once. Also fixed out-of-memory condition here. v2: Make the loop si

[Mesa-dev] [PATCH 1/3] mesa: rename UniformBlockStageIndex to InterfaceBlockStageIndex

2015-10-27 Thread Jordan Justen
Signed-off-by: Jordan Justen Cc: Samuel Iglesias Gonsálvez Cc: Iago Toral Quiroga --- src/glsl/link_uniform_initializers.cpp | 2 +- src/glsl/linker.cpp| 16 src/glsl/standalone_scaffolding.cpp| 4 ++-- src/mesa/main/mtypes.h | 11 +

[Mesa-dev] [PATCH 3/3] mesa: Use UBO/SSBO indices during binding

2015-10-27 Thread Jordan Justen
Previously we were treating the binding index for Uniform Buffer Objects and Shader Storage Buffer Objects as being part of the combined BufferInterfaceBlocks array. Fixes ES31-CTS.compute_shader.resource-ubo on i965. Signed-off-by: Jordan Justen Cc: Samuel Iglesias Gonsálvez Cc: Iago Toral Qui

Re: [Mesa-dev] [PATCH] main: fix basename match's check if it's an array or struct

2015-10-27 Thread Tapani Pälli
On 10/27/2015 04:04 PM, Samuel Iglesias Gonsalvez wrote: Commit 4565b6f did not update the basename match's check for the case that string would exactly match the name of the variable if the suffix "[0]" were appended to it. Fixes two dEQP-GLES31 tests: dEQP-GLES31.functional.program_interface_

Re: [Mesa-dev] [PATCH 1/4] nir/instr_set: Add an allow_loads field

2015-10-27 Thread Iago Toral
On Tue, 2015-10-27 at 14:33 +0200, Pohjolainen, Topi wrote: > On Tue, Oct 27, 2015 at 10:28:58AM +0100, Iago Toral Quiroga wrote: > > We need this so we can configure different behaviors for passes that > > cannot deal with side-effectful instructions (CSE) and passes that can > > (we will add a lo