Re: [Mesa-dev] [PATCH v2 05/23] glsl: Fail to link if inter-stage input/outputs are not assigned to stream 0

2015-07-29 Thread Iago Toral
On Wed, 2015-07-29 at 21:58 +0200, Marek Olšák wrote: > Hi, > > Where does the spec say we should fail to link? I don't see such a > statement there. I have reviewed ARB_gpu_shader5 and I don't see any specific mentions to what should be done in this particular case. That said, isn't this the log

[Mesa-dev] [PATCH] mesa: support arrays of structures in GetProgramResourceIndex

2015-07-29 Thread Tapani Pälli
This fixes a lot of failing tests in: ES31-CTS.program_interface_query.uniform-types Signed-off-by: Tapani Pälli --- src/mesa/main/program_resource.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c

[Mesa-dev] [PATCH] arrays of structures fix

2015-07-29 Thread Tapani Pälli
Hi; This together with Timothy's "set stage flag for structs and arrays in resource list" fixes following failing conformance test: ES31-CTS.program_interface_query.uniform-types Tapani Pälli (1): mesa: support arrays of structures in GetProgramResourceIndex src/mesa/main/program_resource

Re: [Mesa-dev] [PATCH 01/20] mesa: fix and simplify resource query for arrays

2015-07-29 Thread Tapani Pälli
On 07/30/2015 08:50 AM, Timothy Arceri wrote: On 30 July 2015 3:27:41 pm AEST, "Tapani Pälli" wrote: On 07/30/2015 08:25 AM, Tapani Pälli wrote: Hi Timothy; Would it be OK for you to wait a bit with these 3 first patches? I'm currently going through failing PIQ tests and I have a 1 line fix

Re: [Mesa-dev] [PATCH 01/20] mesa: fix and simplify resource query for arrays

2015-07-29 Thread Timothy Arceri
On 30 July 2015 3:27:41 pm AEST, "Tapani Pälli" wrote: >On 07/30/2015 08:25 AM, Tapani Pälli wrote: >> Hi Timothy; >> >> Would it be OK for you to wait a bit with these 3 first patches? I'm >> currently going through failing PIQ tests and I have a 1 line fix to >> valid_program_resource_index_

Re: [Mesa-dev] [PATCH 01/20] mesa: fix and simplify resource query for arrays

2015-07-29 Thread Tapani Pälli
On 07/30/2015 08:25 AM, Tapani Pälli wrote: Hi Timothy; Would it be OK for you to wait a bit with these 3 first patches? I'm currently going through failing PIQ tests and I have a 1 line fix to valid_program_resource_index_name() that together with your patch "glsl: set stage flag for structs

Re: [Mesa-dev] [PATCH 01/20] mesa: fix and simplify resource query for arrays

2015-07-29 Thread Tapani Pälli
Hi Timothy; Would it be OK for you to wait a bit with these 3 first patches? I'm currently going through failing PIQ tests and I have a 1 line fix to valid_program_resource_index_name() that together with your patch "glsl: set stage flag for structs and arrays in resource list" will fix all of

Re: [Mesa-dev] [PATCH 04/20] glsl: set stage flag for structs and arrays in resource list

2015-07-29 Thread Tapani Pälli
I had sightly different fix for this but on same lines; Reviewed-by: Tapani Pälli On 07/29/2015 04:56 PM, Timothy Arceri wrote: This fixes the remaining failing tests in: ES31-CTS.program_interface_query.uniform-types Reviewed-by: Samuel Iglesias Gonsálvez --- src/glsl/linker.cpp | 16

Re: [Mesa-dev] [PATCH 03/17] mesa: fix deletion of inactive bound transform feedback object

2015-07-29 Thread Samuel Iglesias Gonsálvez
On Wed, 2015-07-29 at 12:31 -0700, Ian Romanick wrote: > On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > > When a transform feedback object is bound and not active, the > > OpenGL ES > > 3.0 and GL_ARB_transform_feedback2 specs don't explicitly disallow > > its > > deletion. Only the d

Re: [Mesa-dev] [PATCH] gallium/util: Silence GCC unused-but-set-variable warning.

2015-07-29 Thread Vinson Lee
On Wed, Jul 29, 2015 at 8:33 PM, Matt Turner wrote: > On Wed, Jul 29, 2015 at 8:12 PM, Vinson Lee wrote: >> u_surface.c: In function 'util_resource_copy_region': >> u_surface.c:257:21: warning: variable 'src_format' set but not used >> [-Wunused-but-set-variable] >> enum pipe_format src_form

Re: [Mesa-dev] [PATCH] gallium/util: Silence GCC unused-but-set-variable warning.

2015-07-29 Thread Matt Turner
On Wed, Jul 29, 2015 at 8:12 PM, Vinson Lee wrote: > u_surface.c: In function 'util_resource_copy_region': > u_surface.c:257:21: warning: variable 'src_format' set but not used > [-Wunused-but-set-variable] > enum pipe_format src_format, dst_format; > ^ > > Signed-off-by:

[Mesa-dev] [PATCH] draw: Silence GCC unused-variable warnings.

2015-07-29 Thread Vinson Lee
draw/draw_llvm.c: In function 'create_jit_sampler_type': draw/draw_llvm.c:178:22: warning: unused variable 'target' [-Wunused-variable] LLVMTargetDataRef target = gallivm->target; ^ draw/draw_llvm.c: In function 'create_jit_context_type': draw/draw_llvm.c:218:22: warning:

[Mesa-dev] [PATCH] gallivm: Fix GCC unused-variable warning.

2015-07-29 Thread Vinson Lee
lp_bld_tgsi_soa.c: In function 'lp_emit_immediate_soa': lp_bld_tgsi_soa.c:3065:18: warning: unused variable 'size' [-Wunused-variable] const uint size = imm->Immediate.NrTokens - 1; ^ Signed-off-by: Vinson Lee --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 3 +--

[Mesa-dev] [PATCH] gallium/util: Silence GCC unused-but-set-variable warning.

2015-07-29 Thread Vinson Lee
u_surface.c: In function 'util_resource_copy_region': u_surface.c:257:21: warning: variable 'src_format' set but not used [-Wunused-but-set-variable] enum pipe_format src_format, dst_format; ^ Signed-off-by: Vinson Lee --- src/gallium/auxiliary/util/u_surface.c | 1 + 1

[Mesa-dev] [PATCH] pipebuffer: Silence GCC unused-but-set-variable warning.

2015-07-29 Thread Vinson Lee
pb_buffer_fenced.c: In function 'fenced_buffer_fence': pb_buffer_fenced.c:849:18: warning: variable 'destroyed' set but not used [-Wunused-but-set-variable] boolean destroyed; ^ Signed-off-by: Vinson Lee --- src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 1 +

Re: [Mesa-dev] [PATCH 2/2] mesa: Fix printf format specifier warn of the ptrdiff_t

2015-07-29 Thread Ilia Mirkin
On Wed, Jul 29, 2015 at 10:18 PM, Edward O'Callaghan wrote: > On Thu, Jul 30, 2015, at 09:53 AM, Ilia Mirkin wrote: >> I assume that you mean the C99 spec? I don't think MSVC supports %t or %z >> :( > > Correct, why not it is standard C99 sounds like a compiler bug to me if > that is really the ca

Re: [Mesa-dev] [PATCH 2/2] mesa: Fix printf format specifier warn of the ptrdiff_t

2015-07-29 Thread Edward O'Callaghan
On Thu, Jul 30, 2015, at 09:53 AM, Ilia Mirkin wrote: > I assume that you mean the C99 spec? I don't think MSVC supports %t or %z > :( Correct, why not it is standard C99 sounds like a compiler bug to me if that is really the case :/ > > On Wed, Jul 29, 2015 at 7:46 PM, Edward O'Callaghan > wro

[Mesa-dev] [PATCH 2/2] mesa/formats: 8-bit channel integer formats addition

2015-07-29 Thread Dave Airlie
From: Dave Airlie these also hit the problem case but I don't think this patch is the answer, do I need to flesh out the .8.8.8.8_UNORM ones into .8.8.8.8_UINT types? Signed-off-by: Dave Airlie --- src/mesa/main/glformats.c | 8 1 file changed, 8 insertions(+) diff --git a/src/mesa/

[Mesa-dev] [PATCH 1/2] mesa/formats: add some formats from GL3.3

2015-07-29 Thread Dave Airlie
From: Dave Airlie GL3.3 added GL_ARB_texture_rgb10_a2ui, which specifies a lot more things than just rgb10/a2ui. While playing with ogl conform one of the tests must attempted all valid formats for GL3.3 and hits the unreachable here. This adds the first chunk of formats that hit the assert. S

[Mesa-dev] [rfc] integer formats missing from mesa

2015-07-29 Thread Dave Airlie
I ran GL41-CTS.gtf32.* from ogl conform, and fell over a lot in the unreachable in glformats.c Looks like a bunch of stuff is missing, now I'm not sure how much is required to add it all, the first patch is probably okay, the second is just a hint on if I need to flesh out some types for the _UIN

[Mesa-dev] [PATCH] mesa/st/xformfb: drop assert(0) that can get hit from API

2015-07-29 Thread Dave Airlie
From: Dave Airlie The API can hit this, as the ogl confirm suite showed, I've sent a piglit test to also demonstrate hitting it. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_cb_xformfb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/sr

Re: [Mesa-dev] [PATCH 07/20] glsl: clean-up link uniform code

2015-07-29 Thread Timothy Arceri
On Wed, 2015-07-29 at 10:14 -0400, Ilia Mirkin wrote: > On Wed, Jul 29, 2015 at 9:56 AM, Timothy Arceri > wrote: > > These changes are also needed to allow linking of > > struct and interface arrays of arrays. > > --- > > src/glsl/link_uniforms.cpp | 16 ++-- > > 1 file changed, 6 in

[Mesa-dev] [PATCH] radeonsi: add GS multiple streams support (v2)

2015-07-29 Thread Dave Airlie
From: Dave Airlie This is the final piece for ARB_gpu_shader5, The code is based on the r600 code from Glenn Kennard, and myself. While developing this, I'm not 100% sure of all the calculations made in the GS registers, this is why the max_stream is worked out there and used to limit the chang

Re: [Mesa-dev] [PATCH 2/2] mesa: Fix printf format specifier warn of the ptrdiff_t

2015-07-29 Thread Ilia Mirkin
I assume that you mean the C99 spec? I don't think MSVC supports %t or %z :( On Wed, Jul 29, 2015 at 7:46 PM, Edward O'Callaghan wrote: > See §7.19.6.1, paragraph 7 of the ISO C specification. > > Signed-off-by: Edward O'Callaghan > --- > src/mesa/main/bufferobj.c | 2 +- > 1 file changed, 1 in

[Mesa-dev] [PATCH 2/2] mesa: Fix printf format specifier warn of the ptrdiff_t

2015-07-29 Thread Edward O'Callaghan
See §7.19.6.1, paragraph 7 of the ISO C specification. Signed-off-by: Edward O'Callaghan --- src/mesa/main/bufferobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 9425b09..453b864 100644 --- a/src/mesa/main/buffe

[Mesa-dev] [PATCH 1/2] r600: Fix some printf format warns pretaining to PRIi64

2015-07-29 Thread Edward O'Callaghan
Signed-off-by: Edward O'Callaghan --- src/gallium/drivers/r600/compute_memory_pool.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c index 413aa3d..7c5113e 100644 --- a/src

[Mesa-dev] [PATCH 0/2] Misc compiler warn fixes

2015-07-29 Thread Edward O'Callaghan
Rather boring patches to fix a few compiler warnings. Edward O'Callaghan (2): r600: Fix some printf format warns pretaining to PRIi64 mesa: Fix printf format specifier warn of the ptrdiff_t src/gallium/drivers/r600/compute_memory_pool.c | 8 src/mesa/main/bufferobj.c

Re: [Mesa-dev] [PATCH 16/17] glsl: Add link time checks for GLSL precision qualifiers

2015-07-29 Thread Ian Romanick
On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Iago Toral Quiroga > > Currently, we only consider precision qualifiers at compile-time. This patch > adds precision information to ir_variable so we can also do link time checks. > Specifically, from the GLSL ES3 spec, 4.5.3 Precis

Re: [Mesa-dev] [PATCH 10/21] nir/cf: add block_ends_in_jump()

2015-07-29 Thread Kenneth Graunke
On Tuesday, July 21, 2015 07:54:24 PM Connor Abbott wrote: > Signed-off-by: Connor Abbott > --- > src/glsl/nir/nir_control_flow.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/glsl/nir/nir_control_flow.c b/src/glsl/nir/nir_control_flow.c > index b416a58..b99bf89 100644 > -

Re: [Mesa-dev] [PATCH 15/17] glsl: Add precision information to ir_variable

2015-07-29 Thread Ian Romanick
On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Iago Toral Quiroga > > We will need this later on when we implement proper support for precision > qualifiers in the drivers and also to do link time checks for uniforms as > indicated by the spec. > > This patch also adds compile-

[Mesa-dev] [RFC] [PATCH 2/3 v2] nir: Add a LCSAA-pass

2015-07-29 Thread Thomas Helland
The pass is now working (it does the right thing) but something ends up crashing after the pass is run, for some reason. I haven't gotten to debug this yet, but thought I'd replace the incredibly faulty patch that was on the list with a better one. Sorry for the noise. I've confirmed that phi's ge

Re: [Mesa-dev] [PATCH] i965/bxt: Don't use brw_device_info_skl_early on BXT

2015-07-29 Thread Kenneth Graunke
On Wednesday, July 29, 2015 05:51:46 PM Neil Roberts wrote: > Previously it could end up using the “SKL early” device on BXT > depending on the revision number. This would probably break things > because for example has_llc would be wrong. > --- > src/mesa/drivers/dri/i965/brw_device_info.c | 4 ++

Re: [Mesa-dev] [PATCH 13/17] glsl: Add default precision qualifiers to the symbol table

2015-07-29 Thread Ian Romanick
On 07/29/2015 02:50 PM, Ian Romanick wrote: > On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: >> From: Iago Toral Quiroga >> >> The GLSL ES spec specifies default precision qualifiers for certain types, >> so populate the symbol table with these. >> >> Notice that the desktop GLSL spec al

Re: [Mesa-dev] [PATCH 13/17] glsl: Add default precision qualifiers to the symbol table

2015-07-29 Thread Ian Romanick
On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Iago Toral Quiroga > > The GLSL ES spec specifies default precision qualifiers for certain types, > so populate the symbol table with these. > > Notice that the desktop GLSL spec also indicates defaults for some types > but this is

Re: [Mesa-dev] List of unsupported extensions per driver

2015-07-29 Thread Marek Olšák
R600/R700 can also do: - ARB_conditional_render_inverted - ARB_cull_distance Marek On Wed, Jul 29, 2015 at 11:46 PM, Marek Olšák wrote: > Hi Ilia, > > R600/R700: > - can't do ARB_shader_storage_buffer_object > - can do ARB_robust_buffer_access_behavior (I think this one can > really be exposed u

Re: [Mesa-dev] List of unsupported extensions per driver

2015-07-29 Thread Marek Olšák
Hi Ilia, R600/R700: - can't do ARB_shader_storage_buffer_object - can do ARB_robust_buffer_access_behavior (I think this one can really be exposed unconditionally on all GL>=3 hardware) - can do ARB_framebuffer_no_attachments - ARB_query_buffer_object can be emulated with a vertex shader to read t

Re: [Mesa-dev] [PATCH 4/4] radeonsi: enable GL4.1 and update documentation (v2)

2015-07-29 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Jul 29, 2015 at 1:20 AM, Dave Airlie wrote: > From: Dave Airlie > > This enables GL4.1 for radeonsi, and updates the > docs in the correct places. > > v2: enable only for llvm 3.7 which has fixes in place. > > Reviewed-by: Marek Olšák > Signed-off-by: Da

Re: [Mesa-dev] [PATCH 3/4] radeonsi: add GS multiple streams support (v1.1)

2015-07-29 Thread Marek Olšák
On Wed, Jul 29, 2015 at 1:20 AM, Dave Airlie wrote: > From: Dave Airlie > > This is the final piece for ARB_gpu_shader5, > > The code is based on the r600 code from Glenn Kennard, > and myself. > > While developing this, I'm not 100% sure of all the calculations > made in the GS registers, this i

[Mesa-dev] [Bug 90264] [Regression, bisected] Tooltip corruption in Chrome

2015-07-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90264 Gustaw Smolarczyk changed: What|Removed |Added CC||wielkie...@gmail.com -- You are rec

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

2015-07-29 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick I think this patch could also be tagged for the 10.6.x series. On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Eduardo Lima Mitev > > Page 161 of the OpenGL-ES 3.1 (PDF) spec, and page 207 of the OpenGL 4.5 > (PDF), > both on section '

Re: [Mesa-dev] [PATCH 10/17] mesa: Add missing check of format and type in glTexSubImageXD on GLES 3.0

2015-07-29 Thread Ian Romanick
On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Eduardo Lima Mitev > > Argument validation for glTexSubImageXD is missing a check of format and type > against texture object's internal format when profile is OpenGL-ES 3.0+. Blarg. I see that we have nearly identical code in tex

Re: [Mesa-dev] [PATCH v2 05/23] glsl: Fail to link if inter-stage input/outputs are not assigned to stream 0

2015-07-29 Thread Marek Olšák
Hi, Where does the spec say we should fail to link? I don't see such a statement there. It looks like varyings with stream > 0 should not be linked with the fragment shader. Marek On Wed, Jun 18, 2014 at 11:51 AM, Iago Toral Quiroga wrote: > Outputs that are linked to inputs in the next stage

Re: [Mesa-dev] [PATCH 09/17] mesa: Validate target before resolving tex obj in glTex(ture)SubImageXD

2015-07-29 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick This patch should definitely be tagged for the 10.6.x series. I suspect this problem was introduced when the DSA work landed. On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Eduardo Lima Mitev > > Currently, glTexSubImageXD attempt to

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

2015-07-29 Thread Ian Romanick
On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Eduardo Lima Mitev > > 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_

Re: [Mesa-dev] [PATCH 05/17] mesa: Fix GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE for default framebuffer.

2015-07-29 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick I think this patch could also be tagged for the 10.6.x series. On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > From: Iago Toral Quiroga > > From section 9.2. Binding and Managing Framebuffer Objects: > > "Upon successful return from Get*Fram

[Mesa-dev] [PATCH] i965/skl: Add production thread counts and URB size

2015-07-29 Thread Ben Widawsky
This patch adjusts the SKL values to the best known values we have. It also adds the missing HS/DS/CS fields. To support this patch I needed to add some default values to BXT. Those values are just minimal values which we can use for enabling. Note to backporter: You can drop the BXT change (secon

Re: [Mesa-dev] [PATCH 03/17] mesa: fix deletion of inactive bound transform feedback object

2015-07-29 Thread Ian Romanick
On 07/29/2015 07:01 AM, Samuel Iglesias Gonsalvez wrote: > When a transform feedback object is bound and not active, the OpenGL ES > 3.0 and GL_ARB_transform_feedback2 specs don't explicitly disallow its > deletion. Only the deletion of the default framebuffer object is

Re: [Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Mario Kleiner
On 07/29/2015 09:05 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 2:55 PM, Mario Kleiner wrote: On 07/29/2015 08:50 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 2:48 PM, Mario Kleiner wrote: On 07/29/2015 05:46 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 10:44 AM, Emil Veli

Re: [Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Alex Deucher
On Wed, Jul 29, 2015 at 2:55 PM, Mario Kleiner wrote: > On 07/29/2015 08:50 PM, Alex Deucher wrote: >> >> On Wed, Jul 29, 2015 at 2:48 PM, Mario Kleiner >> wrote: >>> >>> >>> >>> On 07/29/2015 05:46 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 10:44 AM, Emil Velikov w

Re: [Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Mario Kleiner
On 07/29/2015 08:50 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 2:48 PM, Mario Kleiner wrote: On 07/29/2015 05:46 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 10:44 AM, Emil Velikov wrote: Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue. Although it did not consid

Re: [Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Alex Deucher
On Wed, Jul 29, 2015 at 2:48 PM, Mario Kleiner wrote: > > > On 07/29/2015 05:46 PM, Alex Deucher wrote: >> >> On Wed, Jul 29, 2015 at 10:44 AM, Emil Velikov >> wrote: >>> >>> Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue. >>> Although it did not consider the (very unlikely) cas

Re: [Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Mario Kleiner
On 07/29/2015 05:46 PM, Alex Deucher wrote: On Wed, Jul 29, 2015 at 10:44 AM, Emil Velikov wrote: Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue. Although it did not consider the (very unlikely) case where we might end up with the valid fd == 0. Fixes: 28dda47ae4d(winsys/ra

Re: [Mesa-dev] Mesa 11.0.0 release plan

2015-07-29 Thread Rob Clark
On Wed, Jul 29, 2015 at 2:20 PM, Emil Velikov wrote: > Hi all, > > Below is the preliminary release schedule for Mesa 11.0.0 > > August 21st 2015 - Feature freeze/Release candidate 1 > August 28th 2015 - Release candidate 2 > September 04th 2015 - Release candidate 3 > September 11th 2015 - Releas

[Mesa-dev] Mesa 11.0.0 release plan

2015-07-29 Thread Emil Velikov
Hi all, Below is the preliminary release schedule for Mesa 11.0.0 August 21st 2015 - Feature freeze/Release candidate 1 August 28th 2015 - Release candidate 2 September 04th 2015 - Release candidate 3 September 11th 2015 - Release candidate 4/Mesa 11.0.0 We have roughly three weeks for new featu

Re: [Mesa-dev] [PATCH] i965/bxt: Support 3src simd16 instructions

2015-07-29 Thread Ben Widawsky
On Wed, Jul 29, 2015 at 05:51:38PM +0100, Neil Roberts wrote: > I tested this on my BXT by running the glsl-fs-color-matrix test (which > ends up using MAD in SIMD16) and it worked fine. > > Tested-by: Neil Roberts > Reviewed-by: Neil Roberts > > - Neil Crap. I just pushed this before I notice

Re: [Mesa-dev] [PATCH] docs: rename/bump 10.7.0 release notes to 11.0.0

2015-07-29 Thread Emil Velikov
On 29 July 2015 at 18:21, Ilia Mirkin wrote: > Reviewed-by: Ilia Mirkin > > Do you also need to do something for it to claim it's 11.0-gblah in the > version? > Nice one, thanks. I'll squash the following hunk. diff --git a/VERSION b/VERSION index 1edd8fc..2b1181d 100644 --- a/VERSION +++ b/VER

[Mesa-dev] [Bug 90264] [Regression, bisected] Tooltip corruption in Chrome

2015-07-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90264 --- Comment #42 from Thomas Hellström --- Hi! I'm on vacation and will be back on August 2nd 2015. Thanks, Thomas Hellstr?m -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.

[Mesa-dev] [Bug 90264] [Regression, bisected] Tooltip corruption in Chrome

2015-07-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90264 Furkan changed: What|Removed |Added CC||jajo...@nvidia.com, |

Re: [Mesa-dev] [PATCH] Delete unused functions in format parser

2015-07-29 Thread Neil Roberts
Looks good to me. Reviewed-by: Neil Roberts - Neil Anuj Phogat writes: > Signed-off-by: Anuj Phogat > Cc: Neil Roberts > --- > src/mesa/main/format_parser.py | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/src/mesa/main/format_parser.py b/src/mesa/main/format_parser.py > ind

[Mesa-dev] [PATCH] glsl: Initialize parse-state in constructor of lower_subroutine.

2015-07-29 Thread Matt Turner
Static analysis tools don't like partial object initializations. --- src/glsl/lower_subroutine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glsl/lower_subroutine.cpp b/src/glsl/lower_subroutine.cpp index e45ccfe..b29912a 100644 --- a/src/glsl/lower_subroutine.c

[Mesa-dev] [PATCH] Delete unused functions in format parser

2015-07-29 Thread Anuj Phogat
Signed-off-by: Anuj Phogat Cc: Neil Roberts --- src/mesa/main/format_parser.py | 7 --- 1 file changed, 7 deletions(-) diff --git a/src/mesa/main/format_parser.py b/src/mesa/main/format_parser.py index 11184f7..799b14f 100755 --- a/src/mesa/main/format_parser.py +++ b/src/mesa/main/format_p

[Mesa-dev] [Bug 90264] [Regression, bisected] Tooltip corruption in Chrome

2015-07-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90264 Heiko changed: What|Removed |Added CC||lil_...@web.de --- Comment #40 from Heiko --- C

Re: [Mesa-dev] [PATCH] docs: rename/bump 10.7.0 release notes to 11.0.0

2015-07-29 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin Do you also need to do something for it to claim it's 11.0-gblah in the version? On Wed, Jul 29, 2015 at 1:20 PM, Emil Velikov wrote: > Recently a few drivers have grown OpenGL 4+ support so we might as > well go all the way to... 11 ;-) > > Signed-off-by: Emil Velikov

Re: [Mesa-dev] [PATCH 5/6] egl/x11: trust our loader over the xserver for the drivername

2015-07-29 Thread Matt Turner
On Wed, Jul 29, 2015 at 9:19 AM, Emil Velikov wrote: > This is a port of commit 7bd95ec437a(dri2: Trust our own driver name > lookup over the server's.) from glx/dri2. > > Cc: Eric Anholt > Cc: Julien Isorce > Reported-by: Julien Isorce > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dr

Re: [Mesa-dev] [PATCH 1/6] egl/x11: bail out if we cannot fetch the xcb connection

2015-07-29 Thread Matt Turner
On Wed, Jul 29, 2015 at 9:19 AM, Emil Velikov wrote: > Strictly speaking the xcb_connection_has_error() might be sufficient, > yet the documentation does not mention what will happen if NULL is fed > to the function. > > Keep things explicit, which will allow us to remove the dri2_dpy->conn > chec

[Mesa-dev] [PATCH] docs: rename/bump 10.7.0 release notes to 11.0.0

2015-07-29 Thread Emil Velikov
Recently a few drivers have grown OpenGL 4+ support so we might as well go all the way to... 11 ;-) Signed-off-by: Emil Velikov --- Hats down for all that made it possible. Keep up the amazing work ! -Emil docs/relnotes/{10.7.0.html => 11.0.0.html} | 12 ++-- 1 file changed, 6 inserti

Re: [Mesa-dev] [PATCH] i965: Change the type of max_{vs, hs, ...}_threads variables to unsigned

2015-07-29 Thread Matt Turner
On Wed, Jul 29, 2015 at 10:11 AM, Anuj Phogat wrote: > Fixes following compiler warning: > brw_cs.cpp:386:27: warning: comparison between signed and unsigned > integer expressions [-Wsign-compare] > > Signed-off-by: Anuj Phogat > Cc: Matt Turner > --- Perfect. Thanks! Reviewed-by: Matt Turner

[Mesa-dev] [PATCH] i965: Change the type of max_{vs, hs, ...}_threads variables to unsigned

2015-07-29 Thread Anuj Phogat
Fixes following compiler warning: brw_cs.cpp:386:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Anuj Phogat Cc: Matt Turner --- src/mesa/drivers/dri/i965/brw_context.h | 12 ++-- src/mesa/drivers/dri/i965/brw_cs.cpp| 2 +- 2

Re: [Mesa-dev] [PATCH] i965: Silence signed-unsigned int comparison warning by compiler

2015-07-29 Thread Anuj Phogat
On Wed, Jul 29, 2015 at 9:45 AM, Matt Turner wrote: > On Tue, Jul 28, 2015 at 4:45 PM, Anuj Phogat wrote: >> brw_cs.cpp:386:27: warning: comparison between signed and unsigned >> integer expressions [-Wsign-compare] >> >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/drivers/dri/i965/brw_cs.cpp

[Mesa-dev] [PATCH] i965/bxt: Don't use brw_device_info_skl_early on BXT

2015-07-29 Thread Neil Roberts
Previously it could end up using the “SKL early” device on BXT depending on the revision number. This would probably break things because for example has_llc would be wrong. --- src/mesa/drivers/dri/i965/brw_device_info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/m

Re: [Mesa-dev] [PATCH] i965/bxt: Support 3src simd16 instructions

2015-07-29 Thread Neil Roberts
I tested this on my BXT by running the glsl-fs-color-matrix test (which ends up using MAD in SIMD16) and it worked fine. Tested-by: Neil Roberts Reviewed-by: Neil Roberts - Neil Ben Widawsky writes: > This is easily accomplished by moving simd16 3src to GEN9_FEATURES. > > Signed-off-by: Ben

Re: [Mesa-dev] [PATCH] i965: Silence signed-unsigned int comparison warning by compiler

2015-07-29 Thread Matt Turner
On Tue, Jul 28, 2015 at 4:45 PM, Anuj Phogat wrote: > brw_cs.cpp:386:27: warning: comparison between signed and unsigned > integer expressions [-Wsign-compare] > > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_cs.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [Mesa-dev] [PATCH] svga: scons: remove unused HAVE_SYS_TYPES_H define

2015-07-29 Thread Emil Velikov
On 28 July 2015 at 14:37, Brian Paul wrote: > On 07/28/2015 07:33 AM, Emil Velikov wrote: >> >> On 20 July 2015 at 17:12, Brian Paul wrote: >>> >>> On 07/17/2015 02:14 PM, Emil Velikov wrote: On 17 July 2015 at 20:22, Brian Paul wrote: > > > Can you elaborate in the co

Re: [Mesa-dev] [PATCH] Delete duplicate function is_power_of_two() and use _mesa_is_pow_two()

2015-07-29 Thread Anuj Phogat
On Wed, Jul 29, 2015 at 8:16 AM, Neil Roberts wrote: > It seems a bit weird to modify the the is_power_of_two functions in > format_parser.py, was that intentional? It doesn't look like those > functions are actually used anywhere so maybe we could just remove them, > although it would probably ma

Re: [Mesa-dev] [PATCH] meta/copy_image: Stash off the scissor

2015-07-29 Thread Matt Turner
On Tue, Jul 28, 2015 at 12:06 PM, Jason Ekstrand wrote: > The meta CopyImageSubData path uses BlitFramebuffers to do the actual copy. > The only thing that can affect BlitFramebuffers other than the currently > bound framebuffers is the scissor so we need to save that off and reset it. > If we don

Re: [Mesa-dev] [PATCH] Delete duplicate function is_power_of_two() and use _mesa_is_pow_two()

2015-07-29 Thread Anuj Phogat
On Wed, Jul 29, 2015 at 12:20 AM, Iago Toral wrote: > Funny, we had 3 instances of the same function with the same > implementation :), there is still util_is_power_of_two in Gallium btw. > Yes. I wasn't sure if we can use main/imports.h in gallium. So, I didn't touch it. > Reviewed-by: Iago Tor

Re: [Mesa-dev] [PATCH 1/6] egl/x11: bail out if we cannot fetch the xcb connection

2015-07-29 Thread Alex Deucher
On Wed, Jul 29, 2015 at 12:19 PM, Emil Velikov wrote: > Strictly speaking the xcb_connection_has_error() might be sufficient, > yet the documentation does not mention what will happen if NULL is fed > to the function. > > Keep things explicit, which will allow us to remove the dri2_dpy->conn > che

[Mesa-dev] [PATCH 5/6] egl/x11: trust our loader over the xserver for the drivername

2015-07-29 Thread Emil Velikov
This is a port of commit 7bd95ec437a(dri2: Trust our own driver name lookup over the server's.) from glx/dri2. Cc: Eric Anholt Cc: Julien Isorce Reported-by: Julien Isorce Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 11 ++- 1 file changed, 10 insertions(+), 1

[Mesa-dev] [PATCH 4/6] egl/x11: open the device from within dri2_x11_connect()

2015-07-29 Thread Emil Velikov
Allows us, with the next commit, to use alternative driver_name rather than the one from xserver. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/egl/drivers/dri2/platform_

[Mesa-dev] [PATCH 2/6] egl/x11: remove dri2_dpy->conn checks

2015-07-29 Thread Emil Velikov
If the connection is NULL we won't be able to get here. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 7a2

[Mesa-dev] [PATCH 6/6] egl/x11: auth with xserver before attempting to open the dri module

2015-07-29 Thread Emil Velikov
No real change, apart from keeping the calls to the underlying winsys (x11) next to each other. Just like platform_wayland. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/platform_

[Mesa-dev] [PATCH 1/6] egl/x11: bail out if we cannot fetch the xcb connection

2015-07-29 Thread Emil Velikov
Strictly speaking the xcb_connection_has_error() might be sufficient, yet the documentation does not mention what will happen if NULL is fed to the function. Keep things explicit, which will allow us to remove the dri2_dpy->conn checking with the next commit. Signed-off-by: Emil Velikov --- src

[Mesa-dev] [PATCH 3/6] egl/x11: fetch the device_name prior to driver_name

2015-07-29 Thread Emil Velikov
With the follow up commits we're about to further reshuffle things. Thus we'll honour our our driver_name lookup (src/loader), and use the one provided by xserver as a fall-back. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 10 +- 1 file changed, 5 insertions(+),

Re: [Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Alex Deucher
On Wed, Jul 29, 2015 at 10:44 AM, Emil Velikov wrote: > Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue. > Although it did not consider the (very unlikely) case where we might end > up with the valid fd == 0. > > Fixes: 28dda47ae4d(winsys/radeon: Use dup fd as key in drm-winsys ha

Re: [Mesa-dev] [PATCH 01/18] gallium/util: clear up that debug_get_flags_option returns a 64-bit mask

2015-07-29 Thread Kai Wasserbäch
Marek Olšák wrote on 28.07.2015 21:42: > On Tue, Jul 28, 2015 at 6:35 PM, Kai Wasserbäch > wrote: >> Marek Olšák wrote on 28.07.2015 12:05: >>> From: Marek Olšák >>> >>> --- >>> src/gallium/auxiliary/util/u_debug.c | 8 >>> src/gallium/auxiliary/util/u_debug.h | 6 +++--- >>> 2 files ch

Re: [Mesa-dev] [PATCH] Delete duplicate function is_power_of_two() and use _mesa_is_pow_two()

2015-07-29 Thread Neil Roberts
It seems a bit weird to modify the the is_power_of_two functions in format_parser.py, was that intentional? It doesn't look like those functions are actually used anywhere so maybe we could just remove them, although it would probably make sense to do that in a separate patch. Regards, - Neil Anu

Re: [Mesa-dev] [PATCH] egl/dri: trust our loader over the xserver for the drivername

2015-07-29 Thread Emil Velikov
On 29 July 2015 at 15:16, Emil Velikov wrote: > This is a port of commit 7bd95ec437a(dri2: Trust our own driver name > lookup over the server's.) from glx/dri2. > > Cc: Eric Anholt > Reported-by: Julien Isorce > Signed-off-by: Emil Velikov > --- Scratch this patch. Seems like we need to reshuff

[Mesa-dev] [PATCH] winsys/radeon: don't leak the fd when it is 0

2015-07-29 Thread Emil Velikov
Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue. Although it did not consider the (very unlikely) case where we might end up with the valid fd == 0. Fixes: 28dda47ae4d(winsys/radeon: Use dup fd as key in drm-winsys hash table to fix ZaphodHeads.) Cc: Mario Kleiner Signed-off-by:

Re: [Mesa-dev] [PATCH 08/14] i965/fs: Initialize a builder explicitly in the gen4 send dependency work-arounds.

2015-07-29 Thread Francisco Jerez
Jason Ekstrand writes: > On Jul 29, 2015 3:12 AM, "Francisco Jerez" wrote: >> >> Jason Ekstrand writes: >> >> > On Tue, Jul 28, 2015 at 1:23 AM, Francisco Jerez > wrote: >> >> Instead of relying on the default one. This shouldn't lead to any >> >> functional changes because DEP_RESOLVE_MOV ov

Re: [Mesa-dev] [PATCH 07/20] glsl: clean-up link uniform code

2015-07-29 Thread Ilia Mirkin
On Wed, Jul 29, 2015 at 9:56 AM, Timothy Arceri wrote: > These changes are also needed to allow linking of > struct and interface arrays of arrays. > --- > src/glsl/link_uniforms.cpp | 16 ++-- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/src/glsl/link_uniforms.

Re: [Mesa-dev] [PATCH 08/14] i965/fs: Initialize a builder explicitly in the gen4 send dependency work-arounds.

2015-07-29 Thread Jason Ekstrand
On Jul 29, 2015 3:12 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > On Tue, Jul 28, 2015 at 1:23 AM, Francisco Jerez wrote: > >> Instead of relying on the default one. This shouldn't lead to any > >> functional changes because DEP_RESOLVE_MOV overrides the execution > >> controls

[Mesa-dev] [PATCH] egl/dri: trust our loader over the xserver for the drivername

2015-07-29 Thread Emil Velikov
This is a port of commit 7bd95ec437a(dri2: Trust our own driver name lookup over the server's.) from glx/dri2. Cc: Eric Anholt Reported-by: Julien Isorce Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH 13/17] glsl: Add default precision qualifiers to the symbol table

2015-07-29 Thread Samuel Iglesias Gonsalvez
From: Iago Toral Quiroga The GLSL ES spec specifies default precision qualifiers for certain types, so populate the symbol table with these. Notice that the desktop GLSL spec also indicates defaults for some types but this is not really useful since precision qualifiers are completely ignored in

[Mesa-dev] [PATCH 08/17] glsl: Avoid buffer overflow when assigning attribute locations

2015-07-29 Thread Samuel Iglesias Gonsalvez
From: Iago Toral Quiroga Shaders with excessive number of attributes (>16) can produce a crash due to buffer overflow in assign_attribute_or_color_locations. The overflow can happen because we declare a fixed size array that can hold up to 16 attributes and we don't check that we don't go beyond

Re: [Mesa-dev] [PATCH 20/20] glsl: Allow arrays of arrays in GLSL ES 3.10 and GLSL 4.30

2015-07-29 Thread Ilia Mirkin
This patch is Reviewed-by: Ilia Mirkin On Wed, Jul 29, 2015 at 9:57 AM, Timothy Arceri wrote: > V2: add missing 's' to the extension name in error messages > and add decimal place in version string > --- > src/glsl/ast_to_hir.cpp | 13 - > src/glsl/glsl_parser.yy | 22

[Mesa-dev] [PATCH 16/20] nir: wrapper for glsl_type arrays_of_arrays_size()

2015-07-29 Thread Timothy Arceri
--- src/glsl/nir/nir_types.cpp | 6 ++ src/glsl/nir/nir_types.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index 62176f5..06f5b0a 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -106,6 +106,12 @@

[Mesa-dev] [PATCH 15/20] glsl: add AoA support for atmoic counters

2015-07-29 Thread Timothy Arceri
This marks all counters in an AoA as active. For AoA all but the innermost array are threated as separate counters/uniforms. The Nvidia binary also goes further and finds inactive counters in the AoA, in future we should do this too, however this gets things working for the time being. This chang

[Mesa-dev] [PATCH 02/17] glsl: Add function parameter declarations to the symbol table

2015-07-29 Thread Samuel Iglesias Gonsalvez
From: Iago Toral Quiroga So they can hide declarations with the same name in other scopes. Otherwise we get a parsing error for things like: struct S { int val; }; int func (int S) { return S; } Fixes the following 2 dEQP tests: dEQP-GLES3.functional.shaders.scoping.valid.function_parameter_hid

[Mesa-dev] [PATCH 09/17] mesa: Validate target before resolving tex obj in glTex(ture)SubImageXD

2015-07-29 Thread Samuel Iglesias Gonsalvez
From: Eduardo Lima Mitev Currently, glTexSubImageXD attempt to resolve the texture object (by calling _mesa_get_current_tex_object()) before validating the given target. However, that method explicitly states that target must have been validated before calling it, so it never returns a user error

[Mesa-dev] [PATCH 12/17] glsl: Add API to put default precision qualifiers in the symbol table

2015-07-29 Thread Samuel Iglesias Gonsalvez
From: Iago Toral Quiroga These have scoping rules that match the ones defined for other things such as variables, so we want them in the symbol table. --- src/glsl/glsl_symbol_table.cpp | 24 src/glsl/glsl_symbol_table.h | 2 ++ 2 files changed, 26 insertions(+) diff

  1   2   >