Re: [Mesa-dev] [PATCH v2 0/4] OES_texture_storage_multisample_2d_array

2015-08-26 Thread Ilia Mirkin
Series is Reviewed-by: Ilia Mirkin On Aug 26, 2015 11:41 PM, "Tapani Pälli" wrote: > Hi; > > Once more the OES_texture_storage_multisample_2d_array extension > with using ARB_texture_multisample enable bit rather than introducing > own one. > > Thanks; > > Tapani Pälli (4): > glapi: add GL_OES

Re: [Mesa-dev] [PATCH v2 0/3] cs: Add gl_GlobalInvocationID

2015-08-26 Thread Tapani Pälli
All 3 patches Reviewed-by: Tapani Pälli On 08/23/2015 10:09 AM, Jordan Justen wrote: git://people.freedesktop.org/~jljusten/mesa cs-global-id-v2 http://patchwork.freedesktop.org/bundle/jljusten/cs-global-id-v2 For i965, these also depend on the texture sampling series: http://patchwork.freede

Re: [Mesa-dev] [PATCH v2 3/4] glsl: add support for OES_texture_storage_multisample_2d_array

2015-08-26 Thread Matt Turner
On Wed, Aug 26, 2015 at 8:40 PM, Tapani Pälli wrote: > v2: use ARB_texture_multisample enable bit > > Patch adds extension enable bit and enables required keywords > and builtin functions for the extension. > > Signed-off-by: Tapani Pälli > --- > src/glsl/builtin_functions.cpp | 5 +++-- > src/

[Mesa-dev] [PATCH v2 3/4] glsl: add support for OES_texture_storage_multisample_2d_array

2015-08-26 Thread Tapani Pälli
v2: use ARB_texture_multisample enable bit Patch adds extension enable bit and enables required keywords and builtin functions for the extension. Signed-off-by: Tapani Pälli --- src/glsl/builtin_functions.cpp | 5 +++-- src/glsl/builtin_types.cpp | 3 ++- src/glsl/glcpp/glcpp-parse.y|

[Mesa-dev] [PATCH v2 4/4] mesa: enable enums for OES_texture_storage_multisample_2d_array

2015-08-26 Thread Tapani Pälli
v2: use _mesa_is_gles31(ctx) for verifying we are on ES 3.1, remove _es31 usage from get_hash_params.py Signed-off-by: Tapani Pälli --- src/mesa/main/get_hash_params.py | 6 +++--- src/mesa/main/texobj.c | 3 ++- src/mesa/main/texparam.c | 2 +- 3 files changed, 6 insertion

[Mesa-dev] [PATCH v2 2/4] mesa: Add extension enable for OES_texture_storage_multisample_2d_array

2015-08-26 Thread Tapani Pälli
v2: use ARB_texture_multisample bit to enable extension Signed-off-by: Tapani Pälli --- src/mesa/main/extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 03303ac..a57d5ba 100644 --- a/src/mesa/main/extensions.c +++ b/src/

[Mesa-dev] [PATCH v2 0/4] OES_texture_storage_multisample_2d_array

2015-08-26 Thread Tapani Pälli
Hi; Once more the OES_texture_storage_multisample_2d_array extension with using ARB_texture_multisample enable bit rather than introducing own one. Thanks; Tapani Pälli (4): glapi: add GL_OES_texture_storage_multisample_2d_array extension mesa: Add extension enable for OES_texture_storag

[Mesa-dev] [PATCH v2 1/4] glapi: add GL_OES_texture_storage_multisample_2d_array extension

2015-08-26 Thread Tapani Pälli
Signed-off-by: Tapani Pälli Reviewed-by: Marta Lofstedt --- src/mapi/glapi/gen/es_EXT.xml | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml index 642e3b3..cfca5a9 100644 --- a/src/mapi/glapi/gen/es_EXT.xml +++ b

[Mesa-dev] [PATCH 1/2] st/mesa: reduce time spent in calculating temp read/writes

2015-08-26 Thread Dave Airlie
From: Dave Airlie The glsl->tgsi convertor does some temporary register reduction however in profiling shader-db this shows up quite highly, so optimise things to reduce the number of loops through all the instructions we do. This drops merge_registers from 4-5% on the profile to 1%. I think thi

[Mesa-dev] st_glsl_to_tgsi optimisations

2015-08-26 Thread Dave Airlie
Oh I missed one of these patches on the initial send, at least shader-db shows no output changes with these on radeonsi, and also it removes the merge/renumber passes from the profiles for a shader-db run. Dave. ___ mesa-dev mailing list mesa-dev@lists.

[Mesa-dev] [PATCH 2/2] st/mesa: move to renumbering registers in a group

2015-08-26 Thread Dave Airlie
From: Dave Airlie This can be done with a single pass for the instruction base, and takes renumber_registers out of its spot on the profile. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 57 -- 1 file changed, 38 insertions(+), 19 delet

Re: [Mesa-dev] [RFC] optimise st_glsl_to_tgsi

2015-08-26 Thread Dave Airlie
On 27 August 2015 at 11:29, Dave Airlie wrote: > I profiled shader-db running on radeonsi, and the temp register > handling passes in the glsl->tgsi convertor were quite heavy > users of CPU. > > These two passes are my attempt at cleaning them up to avoid > looping over the instruction set so muc

[Mesa-dev] [RFC] optimise st_glsl_to_tgsi

2015-08-26 Thread Dave Airlie
I profiled shader-db running on radeonsi, and the temp register handling passes in the glsl->tgsi convertor were quite heavy users of CPU. These two passes are my attempt at cleaning them up to avoid looping over the instruction set so much. I'm in the process of piglitting then, On my CPU, a sha

[Mesa-dev] [PATCH] st/mesa: move to renumbering registers in a group

2015-08-26 Thread Dave Airlie
From: Dave Airlie This can be done with a single pass for the instruction base, and takes renumber_registers out of its spot on the profile. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 57 -- 1 file changed, 38 insertions(+), 19 delet

[Mesa-dev] [PATCH] st/mesa: cache tgsi opcode info in the instruction

2015-08-26 Thread Dave Airlie
From: Dave Airlie Instead of looking this up lots, lets just cache it in the instruction translation up front. I just noticed this function what high in a profile of shader-db on radeonsi. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 39 --

[Mesa-dev] [PATCH] Revert "i965: Stop aux data compare preventing program binary re-use"

2015-08-26 Thread Ben Widawsky
This reverts commit 1bba29ed403e735ba0bf04ed8aa2e571884fcaaf Author: Topi Pohjolainen Date: Thu Jun 25 14:00:41 2015 +0300 i965: Stop aux data compare preventing program binary re-use This fixes an intermittent failure in piglit.spec.arb_pixel_buffer_object.texsubimage pbo.sklm64 (maybe ot

[Mesa-dev] [Bug 91039] [d3d9] D3D9 state tracker crashes due to stack misalignment if Mesa is compiled with -mfpmath=sse

2015-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91039 xpue changed: What|Removed |Added CC||r9k...@gmail.com -- You are receiving this mail

[Mesa-dev] [PATCH v2 2/2] mesa/texformat: use format conversion function in _mesa_choose_tex_format

2015-08-26 Thread Nanley Chery
From: Nanley Chery This function's cases for non-generic compressed formats duplicate the GL to MESA translation in _mesa_glenum_to_compressed_format(). This patch replaces the switch cases with a call to the translation function. Cc: Brian Paul Cc: Chad Versace Cc: Ian Romanick Signed-off-by

[Mesa-dev] [PATCH 1/2] mesa/texcompress: correct mapping of S3TC formats in conversion function

2015-08-26 Thread Nanley Chery
From: Nanley Chery MESA_FORMAT_RGBA_DXT5 should actually be reserved for GL_RGBA[4]_DXT5_S3TC. Also, Gallium and other dri drivers (radeon and nouveau) follow this mapping scheme. Cc: Brian Paul Cc: Chad Versace Cc: Ian Romanick Signed-off-by: Nanley Chery --- src/mesa/main/texcompress.c |

Re: [Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-26 Thread Jason Ekstrand
On Wed, Aug 26, 2015 at 10:20 AM, Ian Romanick wrote: > From: Ian Romanick > > Signed-off-by: Ian Romanick > --- > src/glsl/nir/nir_constant_expressions.py | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/src/glsl/nir/nir_constant_expressions.py > b/src/gl

Re: [Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-26 Thread Jason Ekstrand
On Wed, Aug 26, 2015 at 1:40 PM, Matt Turner wrote: > On Wed, Aug 26, 2015 at 10:50 AM, Jason Ekstrand wrote: >> I like adding constness but I don't really see the need for the >> whitespace changes or adding braces and breaks to the switch. > > Please don't top quote. > > Looks like he's removin

Re: [Mesa-dev] [PATCH] mesa/texformat: Use format conversion function in _mesa_choose_tex_format

2015-08-26 Thread Nanley Chery
On Tue, Aug 25, 2015 at 4:19 PM, Chad Versace wrote: > On Sun 16 Aug 2015, Nanley Chery wrote: > > The last line of the commit message should say: > > > >GL_RGBA4_S3TC (0x83A3) -> COMPRESSED_RGBA_S3TC_DXT5_EXT (0x83F3) > > There's another weird line too, see below. > > > On Wed, Aug 12, 201

[Mesa-dev] [PATCH] st/mesa: use PROGRAM_ARRAY for storing structs containing arrays

2015-08-26 Thread Brian Paul
Previously, we used PROGRAM_ARRAY only for variables which were arrays or matrices. But if the variable is a structure containing an array or matrix, we need to use PROGRAM_ARRAY for that too. Before, we failed an assertion: state_tracker/st_glsl_to_tgsi.cpp:4900: Assertion `src_reg->file !=

Re: [Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-26 Thread Matt Turner
On Wed, Aug 26, 2015 at 10:50 AM, Jason Ekstrand wrote: > I like adding constness but I don't really see the need for the > whitespace changes or adding braces and breaks to the switch. Please don't top quote. Looks like he's removing braces and breaks from the switch, not adding them. _

Re: [Mesa-dev] [PATCH] i965: Rename INTEL_DEBUG=vec4vs to INTEL_DEBUG=vec4.

2015-08-26 Thread Kristian Høgsberg
On Wed, Aug 26, 2015 at 2:43 AM, Kenneth Graunke wrote: > driParseDebugString() doesn't have actual code to parse comma separated > lists (or any other supported options?); instead it dumbly uses strstr(). > > This means that INTEL_DEBUG="vec4vs" will trigger both DEBUG_VEC4VS and > DEBUG_VS, as "

Re: [Mesa-dev] [PATCH 1/3] winsys/radeon: handle non-zero finite timeout when waiting for buffers

2015-08-26 Thread Alex Deucher
On Wed, Aug 26, 2015 at 7:09 AM, Marek Olšák wrote: > Ping for the series: Reviewed-by: Alex Deucher > > On Sun, Aug 23, 2015 at 2:13 PM, Marek Olšák wrote: >> From: Marek Olšák >> >> --- >> src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 54 >> +++ >> src/gallium/wi

Re: [Mesa-dev] [PATCH] i965/gen8+: Skip depth stalls on state change

2015-08-26 Thread Ben Widawsky
On Wed, Aug 26, 2015 at 10:52:58AM -0700, Ben Widawsky wrote: > Docs suggest this is no longer required starting with Gen8. > > Perf (no regressions in n=20) > OglMultithread 0.67% > OglTerrainPanInst0.12% > trex 0.45% > warsow 0.64% I forgot to mention thi

[Mesa-dev] [PATCH] i965/gen8+: Skip depth stalls on state change

2015-08-26 Thread Ben Widawsky
Docs suggest this is no longer required starting with Gen8. Perf (no regressions in n=20) OglMultithread 0.67% OglTerrainPanInst0.12% trex 0.45% warsow 0.64% I have a couple of spurious failures in piglit on BSW, and SKL. I have no evidence that they are re

Re: [Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-26 Thread Jason Ekstrand
I like adding constness but I don't really see the need for the whitespace changes or adding braces and breaks to the switch. --Jason On Wed, Aug 26, 2015 at 10:20 AM, Ian Romanick wrote: > From: Ian Romanick > > Signed-off-by: Ian Romanick > --- > src/glsl/nir/nir_constant_expressions.py | 13

Re: [Mesa-dev] [PATCH 09/17] nir: Fix wonkey indentation in generated code

2015-08-26 Thread Jason Ekstrand
I think I'd rather just run it through indent like we do for some of the other auto-generated code. That way the mako file (the one you'll actually be editing) can remain readable. --Jason On Wed, Aug 26, 2015 at 10:19 AM, Ian Romanick wrote: > From: Ian Romanick > > Signed-off-by: Ian Romanick

Re: [Mesa-dev] [PATCH 17/17] mesa: Remove gl_context parameter from _mesa_initialize_buffer_object and dd:NewBufferObject

2015-08-26 Thread Ilia Mirkin
*every* other callback takes a ctx... this feels really asymmetric. I'd kinda rather just keep the ctx's in and add (void) uses on them. Don't feel too strongly about it though. On Wed, Aug 26, 2015 at 1:20 PM, Ian Romanick wrote: > From: Ian Romanick > > _mesa_initialize_buffer_object did not u

Re: [Mesa-dev] [PATCH 16/17] mesa: Remove target parameter from _mesa_handle_bind_buffer_gen

2015-08-26 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Wed, Aug 26, 2015 at 1:20 PM, Ian Romanick wrote: > From: Ian Romanick > > main/bufferobj.c: In function '_mesa_handle_bind_buffer_gen': > main/bufferobj.c:915:37: warning: unused parameter 'target' > [-Wunused-parameter] > GLenum targe

Re: [Mesa-dev] [PATCH 15/17] mesa: Silence unused parameter warnings in bufferobj.c

2015-08-26 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Wed, Aug 26, 2015 at 1:20 PM, Ian Romanick wrote: > From: Ian Romanick > > main/bufferobj.c: In function 'count_buffer_size': > main/bufferobj.c:520:26: warning: unused parameter 'key' [-Wunused-parameter] > count_buffer_size(GLuint key, void *data, void *userData)

Re: [Mesa-dev] [PATCH 14/17] glsl: Remove ADD_VARYING macro

2015-08-26 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Wed, Aug 26, 2015 at 1:20 PM, Ian Romanick wrote: > From: Ian Romanick > > The purpose of the macro was to create the name_as_gs_input from name. > The previous commit removed the name_as_gs_input from add_varying, so > the macro is unnecessary. > > Signed-off-by: Ia

Re: [Mesa-dev] [PATCH 13/17] glsl: Silence unused parameter warnings

2015-08-26 Thread Ilia Mirkin
On Wed, Aug 26, 2015 at 1:20 PM, Ian Romanick wrote: > From: Ian Romanick > > builtin_variables.cpp:1062:53: warning: unused parameter 'name_as_gs_input' > [-Wunused-parameter] > const char *name_as_gs_input) >

Re: [Mesa-dev] [PATCH 23/25] glsl: Implement the required built-in functions when OES_shader_image_atomic is enabled.

2015-08-26 Thread Jose Fonseca
On 17/08/15 18:14, Matt Turner wrote: On Mon, Aug 17, 2015 at 9:46 AM, Francisco Jerez wrote: This is basically just the same atomic functions exposed by ARB_shader_image_load_store, with one exception: "highp float imageAtomicExchange( coherent IMAGE_PARAMS, float dat

[Mesa-dev] [PATCH 2/2] i965/fs: Split VGRFs after lowering pull constants

2015-08-26 Thread Jason Ekstrand
The split_virtual_grfs code doesn't properly rewrite reladdr so we need to make sure that any uniform indirects are lowered away first. Cc: "10.6" --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH 0/2] i965: Two more UNIFORM cleanups

2015-08-26 Thread Jason Ekstrand
These two patches are largely a re-send of other patches in my bigger series to push small uniform arrays. The first patch is a really nice cleanup that I think we want regardless of pushing uniform arrays. Unfortunately, it was in the middle of the series after a patch to the same function that w

[Mesa-dev] [PATCH 1/2] i964/fs: Refactor assign_constant_locations

2015-08-26 Thread Jason Ekstrand
Now that all constant locations are assigned in a single function, we can refactor it a bit to unify things. In particular, we now handle pull_constant_loc and push_constant_loc more similarly and we only modify stage_prog_data->params[] in one place at the end of the function. --- src/mesa/drive

Re: [Mesa-dev] [PATCH 02/17] linker: Silence GCC unused parameter warnings

2015-08-26 Thread Ilia Mirkin
Fair enough... if they need ctx in the future, someone can re-add them. Reviewed-by: Ilia Mirkin On Wed, Aug 26, 2015 at 1:19 PM, Ian Romanick wrote: > From: Ian Romanick > > linker.cpp:320:55: warning: unused parameter 'ir' [-Wunused-parameter] > virtual ir_visitor_status visit_leave(ir_f

Re: [Mesa-dev] [PATCH 01/17] mesa: Fix warning about static being in the wrong place

2015-08-26 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Wed, Aug 26, 2015 at 1:19 PM, Ian Romanick wrote: > From: Ian Romanick > > Because the compiler already has enough things to complain about. > > grep -rl 'const static' src/ | while read f > do > sed --in-place -e 's/const static/static const/g' $f >

[Mesa-dev] [PATCH 15/17] mesa: Silence unused parameter warnings in bufferobj.c

2015-08-26 Thread Ian Romanick
From: Ian Romanick main/bufferobj.c: In function 'count_buffer_size': main/bufferobj.c:520:26: warning: unused parameter 'key' [-Wunused-parameter] count_buffer_size(GLuint key, void *data, void *userData) ^ main/bufferobj.c: In function 'flush_mapped_buffer_range_fallb

[Mesa-dev] [PATCH 14/17] glsl: Remove ADD_VARYING macro

2015-08-26 Thread Ian Romanick
From: Ian Romanick The purpose of the macro was to create the name_as_gs_input from name. The previous commit removed the name_as_gs_input from add_varying, so the macro is unnecessary. Signed-off-by: Ian Romanick --- src/glsl/builtin_variables.cpp | 27 --- 1 file chan

[Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-26 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/glsl/nir/nir_constant_expressions.py | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/glsl/nir/nir_constant_expressions.py b/src/glsl/nir/nir_constant_expressions.py index e2feff3..099bb77 100644 --- a/

[Mesa-dev] [PATCH 01/17] mesa: Fix warning about static being in the wrong place

2015-08-26 Thread Ian Romanick
From: Ian Romanick Because the compiler already has enough things to complain about. grep -rl 'const static' src/ | while read f do sed --in-place -e 's/const static/static const/g' $f done brw_eu_emit.c: In function 'brw_reg_type_to_hw_type': brw_eu_emit.c:98:7: warning: 's

[Mesa-dev] [PATCH 12/17] nir: Silence unused parameter warnings

2015-08-26 Thread Ian Romanick
From: Ian Romanick This should remove all of the unused parameter warnings in src/glsl/nir. These cases had the parameter removed: nir/nir_lower_vars_to_ssa.c: In function 'get_ssa_def_for_block': nir/nir_lower_vars_to_ssa.c:527:59: warning: unused parameter 'block' [-Wunused-parameter] get_s

[Mesa-dev] [PATCH 05/17] nir: Silence missing field initializer warnings for nir_src

2015-08-26 Thread Ian Romanick
From: Ian Romanick nir/nir.h: In function 'nir_src_for_ssa': nir/nir.h:552:4: warning: missing initializer for field 'use_link' of 'nir_src' [-Wmissing-field-initializers] nir_src src = NIR_SRC_INIT; ^ In file included from nir/nir.c:28:0: nir/nir.h:508:21: note: 'use_link' declared here

[Mesa-dev] [PATCH 10/17] nir: Silence unused parameter warnings in nir_constant_expression.c

2015-08-26 Thread Ian Romanick
From: Ian Romanick nir/nir_constant_expressions.c:290:25: warning: unused parameter 'num_components' [-Wunused-parameter] evaluate_ball3(unsigned num_components, nir_const_value *_src) ^ nir/nir_constant_expressions.c: In function 'evaluate_fddx': nir/nir_constant_expre

[Mesa-dev] [PATCH 04/17] i965: Make gen7_enable_hw_binding_tables static

2015-08-26 Thread Ian Romanick
From: Ian Romanick All of the other state upload functions are static because the only use is in the brw_tracked_state structure. Signed-off-by: Ian Romanick Cc: Abdiel Janulgue --- src/mesa/drivers/dri/i965/brw_binding_tables.c | 2 +- src/mesa/drivers/dri/i965/brw_state.h | 1 - 2

[Mesa-dev] [PATCH 09/17] nir: Fix wonkey indentation in generated code

2015-08-26 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/glsl/nir/nir_constant_expressions.py | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/glsl/nir/nir_constant_expressions.py b/src/glsl/nir/nir_constant_expressions.py index 6006358..

[Mesa-dev] [PATCH 07/17] nir: Silence missing field initializer warnings for nir_alu_src

2015-08-26 Thread Ian Romanick
From: Ian Romanick nir/nir_builder.h:234:4: warning: missing initializer for field 'use_link' of 'n ir_src' [-Wmissing-field-initializers] nir_alu_src alu_src = { NIR_SRC_INIT }; ^ Number of total warnings in my build reduced from 1664 to 1651. (reduction of 13). Patch generated by:

[Mesa-dev] [PATCH 17/17] mesa: Remove gl_context parameter from _mesa_initialize_buffer_object and dd:NewBufferObject

2015-08-26 Thread Ian Romanick
From: Ian Romanick _mesa_initialize_buffer_object did not use it. Once that parameter was removed, none of the implementations of dd::NewBufferObject used it either. Also silences a warning: main/bufferobj.c: In function '_mesa_initialize_buffer_object': main/bufferobj.c:503:51: warning: unuse

[Mesa-dev] [PATCH 13/17] glsl: Silence unused parameter warnings

2015-08-26 Thread Ian Romanick
From: Ian Romanick builtin_variables.cpp:1062:53: warning: unused parameter 'name_as_gs_input' [-Wunused-parameter] const char *name_as_gs_input) ^ builtin_functions.cpp:4774:47: warning: unused paramet

[Mesa-dev] [PATCH 03/17] i965: Make gen8_upload_state_base_address static

2015-08-26 Thread Ian Romanick
From: Ian Romanick All of the other state upload functions are static because the only use is in the brw_tracked_state structure. Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_state.h | 4 src/mesa/drivers/dri/i965/gen8_misc_state.c | 3 ++- 2 files changed, 2 insert

[Mesa-dev] [PATCH 06/17] nir: Silence missing field initializer warnings for nir_dest

2015-08-26 Thread Ian Romanick
From: Ian Romanick nir/nir.h:576:4: warning: missing initializer for field 'is_ssa' of 'nir_dest' [ -Wmissing-field-initializers] nir_dest dest = NIR_DEST_INIT; ^ nir/nir.h:538:10: note: 'is_ssa' declared here bool is_ssa; ^ nir/nir.h:576:55: warning: missing initializer for

[Mesa-dev] [PATCH 08/17] nir: Silence missing field initializer warnings for vectors in nir_constant_expressions

2015-08-26 Thread Ian Romanick
From: Ian Romanick nir/nir_constant_expressions.c: In function 'evaluate_ball2': nir/nir_constant_expressions.c:279:7: warning: missing initializer for field 'z' of 'struct bool_vec' [-Wmissing-field-initializers] }; ^ nir/nir_constant_expressions.c:234:10: note: 'z' declared here

[Mesa-dev] [PATCH 16/17] mesa: Remove target parameter from _mesa_handle_bind_buffer_gen

2015-08-26 Thread Ian Romanick
From: Ian Romanick main/bufferobj.c: In function '_mesa_handle_bind_buffer_gen': main/bufferobj.c:915:37: warning: unused parameter 'target' [-Wunused-parameter] GLenum target, ^ Signed-off-by: Ian Romanick --- src/mesa/main/bu

[Mesa-dev] [PATCH 02/17] linker: Silence GCC unused parameter warnings

2015-08-26 Thread Ian Romanick
From: Ian Romanick linker.cpp:320:55: warning: unused parameter 'ir' [-Wunused-parameter] virtual ir_visitor_status visit_leave(ir_function *ir) ^ linker.cpp:327:53: warning: unused parameter 'ir' [-Wunused-parameter] virtual ir_visit

Re: [Mesa-dev] [PATCH] i965: Rename INTEL_DEBUG=vec4vs to INTEL_DEBUG=vec4.

2015-08-26 Thread Jason Ekstrand
Acked-by: Jason Ekstrand On Wed, Aug 26, 2015 at 2:43 AM, Kenneth Graunke wrote: > driParseDebugString() doesn't have actual code to parse comma separated > lists (or any other supported options?); instead it dumbly uses strstr(). > > This means that INTEL_DEBUG="vec4vs" will trigger both DEBUG_

[Mesa-dev] [Bug 91747] Ubuntu 15.04/Oibaf PPA - Unity bar not transparent

2015-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91747 Benjamin Bellec changed: What|Removed |Added CC||b.bel...@gmail.com --- Comment #1 from

Re: [Mesa-dev] [PATCH 5/6] mesa: enable enums for OES_texture_storage_multisample_2d_array

2015-08-26 Thread Ilia Mirkin
On Wed, Aug 26, 2015 at 5:03 AM, Tapani Pälli wrote: > On 08/26/2015 08:26 AM, Ilia Mirkin wrote: >> >> On Wed, Aug 26, 2015 at 1:19 AM, Tapani Pälli >> wrote: >>> >>> On 08/24/2015 04:18 PM, Ilia Mirkin wrote: On Fri, Aug 21, 2015 at 3:22 AM, Tapani Pälli wrote: > > Signe

Re: [Mesa-dev] [PATCH] mesa: remove pointless es31 checks, fix indirect to only be in es31

2015-08-26 Thread Tapani Pälli
On 08/24/2015 06:37 PM, Ilia Mirkin wrote: On Mon, Aug 24, 2015 at 11:35 AM, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin --- src/mesa/main/get.c | 37 +--- src/mesa/main/get_hash_params.py | 46 2 files cha

[Mesa-dev] [PATCH] vc4: Initialize pack field of qreg to 0 in qir_get_temp

2015-08-26 Thread Boyan Ding
This avoids generation of undefined packing in qir and qpu instructions, fixing a lot of rendering errors. Fixes 8b36d107fdd (vc4: Pack the unorm-packing bits into a src MUL instruction when possible.) Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Boyan Ding --- src/gallium/drivers/vc4/v

Re: [Mesa-dev] [PATCH 1/3] winsys/radeon: handle non-zero finite timeout when waiting for buffers

2015-08-26 Thread Marek Olšák
Ping On Sun, Aug 23, 2015 at 2:13 PM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 54 > +++ > src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 25 + > 2 files changed, 41 insertions(+), 38 deletions(-) > __

Re: [Mesa-dev] [PATCH 3/4] r600g: Don't repeat tgsi_scan_shader(), just use result

2015-08-26 Thread Marek Olšák
On Tue, Aug 25, 2015 at 1:56 PM, Edward O'Callaghan wrote: > From: Edward O'Callaghan > > tgsi_shader_scan() has already happened so just use the results. > > Signed-off-by: Edward O'Callaghan > Signed-off-by: Dave Airlie Did Dave really give you this sign-off? > --- > src/gallium/drivers/r6

Re: [Mesa-dev] [PATCH 2/4] r600g: Move geometry properties state from shader to selector

2015-08-26 Thread Marek Olšák
On Tue, Aug 25, 2015 at 1:56 PM, Edward O'Callaghan wrote: > From: Edward O'Callaghan > > Signed-off-by: Edward O'Callaghan > --- > src/gallium/drivers/r600/evergreen_state.c | 16 > src/gallium/drivers/r600/r600_pipe.h | 5 + > src/gallium/drivers/r600/r600_shad

[Mesa-dev] [PATCH] i965: Rename INTEL_DEBUG=vec4vs to INTEL_DEBUG=vec4.

2015-08-26 Thread Kenneth Graunke
driParseDebugString() doesn't have actual code to parse comma separated lists (or any other supported options?); instead it dumbly uses strstr(). This means that INTEL_DEBUG="vec4vs" will trigger both DEBUG_VEC4VS and DEBUG_VS, as "vs" is also a substring. We should probably improve the driconf p

Re: [Mesa-dev] [PATCH 5/6] mesa: enable enums for OES_texture_storage_multisample_2d_array

2015-08-26 Thread Tapani Pälli
On 08/26/2015 08:26 AM, Ilia Mirkin wrote: On Wed, Aug 26, 2015 at 1:19 AM, Tapani Pälli wrote: On 08/24/2015 04:18 PM, Ilia Mirkin wrote: On Fri, Aug 21, 2015 at 3:22 AM, Tapani Pälli wrote: Signed-off-by: Tapani Pälli --- src/mesa/main/get_hash_params.py | 6 +++--- src/mesa/main/tex

Re: [Mesa-dev] [PATCH] glsl/glcpp: allow undefining __VERSION__ and GL_

2015-08-26 Thread Kenneth Graunke
On Wednesday, August 26, 2015 04:55:32 PM Dave Airlie wrote: > On 26 August 2015 at 16:48, Ilia Mirkin wrote: > > On Wed, Aug 26, 2015 at 2:38 AM, Dave Airlie wrote: > >> From: Dave Airlie > >> > >> GL33-CTS.shaders.preprocessor.definitions.* > >> has 4 tests the undefine these, > >> > >> I can'

Re: [Mesa-dev] [PATCH v4 (part2) 53/59] glapi: add ARB_shader_storage_block_buffer_object

2015-08-26 Thread Samuel Iglesias Gonsálvez
On 25/08/15 12:46, Emil Velikov wrote: > On 25 August 2015 at 06:42, Samuel Iglesias Gonsálvez > wrote: >> On 24/08/15 16:10, Emil Velikov wrote: >>> Hi Samuel, Iago, >>> >>> On 05/08/15 09:30, Iago Toral Quiroga wrote: From: Samuel Iglesias Gonsalvez v2: - Add ShaderStorage

Re: [Mesa-dev] [PATCH] glsl/glcpp: allow undefining __VERSION__ and GL_

2015-08-26 Thread Ilia Mirkin
Looks like the change happened as of 4.40. I checked as far back as GLSL 1.50, and it was the older "you can do whatever" wording everywhere there: """ All macro names containing two consecutive underscores ( __ ) are reserved for future use as predefined macro names. All macro names prefixed with

Re: [Mesa-dev] [PATCH] glsl/glcpp: allow undefining __VERSION__ and GL_

2015-08-26 Thread Dave Airlie
On 26 August 2015 at 16:55, Dave Airlie wrote: > On 26 August 2015 at 16:48, Ilia Mirkin wrote: >> On Wed, Aug 26, 2015 at 2:38 AM, Dave Airlie wrote: >>> From: Dave Airlie >>> >>> GL33-CTS.shaders.preprocessor.definitions.* >>> has 4 tests the undefine these, >>> >>> I can't find anything in t