[Mesa-dev] [PATCH] clover: replace --enable-opencl-icd with --with-opencl-icd

2015-05-06 Thread EdB
The standard ICD file path is /etc/OpenCL/vendor/. However it doesn't fit well with custom build. This option allow ICD vendor file installation path override --- configure.ac | 46 +++--- src/gallium/targets/opencl/Makefile.am | 2 +- 2

Re: [Mesa-dev] [PATCH] mesa: support compute stage in _mesa_program_resource_prop

2015-05-06 Thread Matt Turner
On Tue, May 5, 2015 at 11:36 PM, Tapani Pälli tapani.pa...@intel.com wrote: Increases pass rate of ES31-CTS.*program_interface_query* tests when run with MESA_EXTENSION_OVERRIDE='GL_ARB_compute_shader'. Many of the negative tests that happen to use compute stage in queries start passing.

Re: [Mesa-dev] [PATCH] r600g: Fix Clang return-type build error.

2015-05-06 Thread Tom Stellard
On Wed, May 06, 2015 at 10:24:18AM -0700, Vinson Lee wrote: Fix Clang return-type error introduced with commit 96f164f6f047833091eb98a73aa80c31dc94f962 gallium: make pipe_context::begin_query return a boolean. CC r600_query.lo r600_query.c:443:3: error: non-void function

[Mesa-dev] [PATCH] i965/wm/gen6: Refactor state setup

2015-05-06 Thread Topi Pohjolainen
CC: Kenneth Graunke kenn...@whitecape.org Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- src/mesa/drivers/dri/i965/brw_state.h | 11 +++ src/mesa/drivers/dri/i965/gen6_wm_state.c | 111 ++ 2 files changed, 77 insertions(+), 45 deletions(-) diff

[Mesa-dev] [PATCH] glapi: Add positional argument specifier.

2015-05-06 Thread Vinson Lee
Fix build error introduced with commit 1c5a57a glapi/es3.1: Add support for GLES versions 3.0 with Python 2.7. File src/mapi/glapi/gen/gl_genexec.py, line 230, in module printer.Print(api) File src/mapi/glapi/gen/gl_XML.py, line 120, in Print self.printBody(api) File

Re: [Mesa-dev] [PATCH] util: Take memset out of rzalloc_size()

2015-05-06 Thread Rob Clark
On Wed, May 6, 2015 at 1:24 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Wednesday, May 06, 2015 03:35:27 PM Juha-Pekka Heikkila wrote: rzalloc_size() call ralloc_size() to allocate memory. ralloc_size() use calloc to get memory thus zeroing in rzalloc_size is not necessary.

Re: [Mesa-dev] [PATCH] i965: Document brw_mask_reg().

2015-05-06 Thread Matt Turner
Reviewed-by: Matt Turner matts...@gmail.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] mesa: support compute stage in _mesa_program_resource_prop

2015-05-06 Thread Tapani
On 05/06/2015 07:54 PM, Ilia Mirkin wrote: On Wed, May 6, 2015 at 2:36 AM, Tapani Pälli tapani.pa...@intel.com wrote: Increases pass rate of ES31-CTS.*program_interface_query* tests when run with MESA_EXTENSION_OVERRIDE='GL_ARB_compute_shader'. Many of the negative tests that happen to use

[Mesa-dev] [PATCH] r600g: Fix Clang return-type build error.

2015-05-06 Thread Vinson Lee
Fix Clang return-type error introduced with commit 96f164f6f047833091eb98a73aa80c31dc94f962 gallium: make pipe_context::begin_query return a boolean. CC r600_query.lo r600_query.c:443:3: error: non-void function 'r600_begin_query' should return a value [-Wreturn-type]

Re: [Mesa-dev] [PATCH] util: Take memset out of rzalloc_size()

2015-05-06 Thread Kenneth Graunke
On Wednesday, May 06, 2015 03:35:27 PM Juha-Pekka Heikkila wrote: rzalloc_size() call ralloc_size() to allocate memory. ralloc_size() use calloc to get memory thus zeroing in rzalloc_size is not necessary. Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com ---

Re: [Mesa-dev] [PATCH 2/2] glx: provide a way to disable DRI3 using an environment variable

2015-05-06 Thread Axel Davy
Le 06/05/2015 14:43, Martin Peres a écrit : diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index ff77a91..5246737 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -2092,6 +2092,11 @@ dri3_create_display(Display * dpy) xcb_generic_error_t *error;

Re: [Mesa-dev] [PATCH 3/3 v5] i965/fs: Combine tex/fb_write operations (opt)

2015-05-06 Thread Neil Roberts
Hi, This optimisation doesn't seem to work with textureGather so a bunch of Piglit tests are failing for me. I'm not sure why it didn't get picked up by your Jenkins run. I can't find anything in the bspec nor a known workaround to suggest that this shouldn't work so I'm not really sure what to

Re: [Mesa-dev] [PATCH 1/2] glx: report which DRI version is used when in verbose debug mode

2015-05-06 Thread Kenneth Graunke
On Wednesday, May 06, 2015 03:43:42 PM Martin Peres wrote: This should make it more obvious in bug reports while also removing any sort of guesswork for developers. Signed-off-by: Martin Peres martin.pe...@linux.intel.com --- src/glx/dri2_glx.c | 2 ++ src/glx/dri3_glx.c | 2 ++ 2 files

[Mesa-dev] [PATCH v2 8/13] util/list: Add C99-based iterator macros

2015-05-06 Thread Jason Ekstrand
v2: Use LIST_ENTRY instead of container_of in iterators --- src/util/list.h | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/util/list.h b/src/util/list.h index 191030c..795e98d 100644 --- a/src/util/list.h +++ b/src/util/list.h @@ -141,6

Re: [Mesa-dev] [PATCH] i965: Delete most of the linked GLSL IR when using NIR.

2015-05-06 Thread Kenneth Graunke
On Wednesday, May 06, 2015 09:09:06 AM Tapani Pälli wrote: Sorry not, it's just a simple hack patch ATM where I try to preserve only the ir_variable::data struct but I forgot that we really need a bit more (like name, type ..) so things fall apart. My plan next is first to introduce own

[Mesa-dev] [Bug 90346] DispatchSanity_test.GLES2 regression

2015-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90346 Bug ID: 90346 Summary: DispatchSanity_test.GLES2 regression Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Keywords:

Re: [Mesa-dev] [PATCH 1/5] prog_to_nir: OPCODE_EXP is not nir_op_fexp

2015-05-06 Thread Matt Turner
On Wed, May 6, 2015 at 7:09 PM, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com It's a weird thing that provides some values related to 2**x. It's also already handled by a case in the switch. Signed-off-by: Ian Romanick ian.d.roman...@intel.com The

[Mesa-dev] [Bug 90354] Software rendering cuses X BadMatch error

2015-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90354 Dave Airlie airl...@freedesktop.org changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH 1/5] prog_to_nir: OPCODE_EXP is not nir_op_fexp

2015-05-06 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com It's a weird thing that provides some values related to 2**x. It's also already handled by a case in the switch. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/mesa/program/prog_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1

[Mesa-dev] [PATCH 4/5] nir: Don't produce nir_op_flog from GLSL IR

2015-05-06 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All paths that produce GLSL IR for NIR lower ir_unop_log. All paths that consume NIR will explode if they geta nir_op_flog. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/nir/glsl_to_nir.cpp | 2 +- 1 file changed, 1 insertion(+),

[Mesa-dev] [PATCH 2/5] nir: Don't produce nir_op_fexp from GLSL IR

2015-05-06 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All paths that produce GLSL IR for NIR lower ir_unop_exp. All paths that consume NIR will explode if they geta nir_op_fexp. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/nir/glsl_to_nir.cpp | 2 +- 1 file changed, 1 insertion(+),

[Mesa-dev] [PATCH 5/5] nir: Delete all traces of nir_op_flog

2015-05-06 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Nothing produces it, and nothing can consume it. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/nir/nir_opcodes.py | 1 - src/glsl/nir/nir_opt_algebraic.py| 6 -- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3

[Mesa-dev] [PATCH 3/5] nir: Delete all traces of nir_op_fexp

2015-05-06 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Nothing produces it, and nothing can consume it. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/nir/nir_opcodes.py | 1 - src/glsl/nir/nir_opt_algebraic.py| 7 --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp |

[Mesa-dev] [PATCH] st/mesa: make sure to create a clean bool when doing i2b

2015-05-06 Thread Ilia Mirkin
i2b has to work for all integers, not just 1. INEG would not necessarily result with all bits set, which is something that other operations can rely on by e.g. using AND (or INEG for b2i). Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Found by observation. Noticed a weird pattern in the

Re: [Mesa-dev] [PATCH] mesa: use _mesa_has_compute_shaders instead of extension check

2015-05-06 Thread Ilia Mirkin
On Thu, May 7, 2015 at 12:55 AM, Tapani Pälli tapani.pa...@intel.com wrote: This was really the original purpose, for enabling the path for ES3.1 tests without the extension being set. Set also fallthrough comment for Coverity (caught by Matt). Signed-off-by: Tapani Pälli

Re: [Mesa-dev] [PATCH v2] mesa: use _mesa_has_compute_shaders instead of extension check

2015-05-06 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin imir...@alum.mit.edu On Thu, May 7, 2015 at 1:07 AM, Tapani Pälli tapani.pa...@intel.com wrote: This was really the original purpose, for enabling the path for ES3.1 tests without the extension being set. Set also fallthrough comment for Coverity (caught by Matt).

Re: [Mesa-dev] [PATCH] mesa: use _mesa_has_compute_shaders instead of extension check

2015-05-06 Thread Tapani
On 05/07/2015 08:02 AM, Ilia Mirkin wrote: On Thu, May 7, 2015 at 12:55 AM, Tapani Pälli tapani.pa...@intel.com wrote: This was really the original purpose, for enabling the path for ES3.1 tests without the extension being set. Set also fallthrough comment for Coverity (caught by Matt).

Re: [Mesa-dev] [PATCH] st/mesa: make sure to create a clean bool when doing i2b

2015-05-06 Thread Jason Ekstrand
I know nothing about TGSI but this looks perfectly reasonable to me. Reviewed-by: Jason Ekstrand jason.ekstr...@intel.com On Wed, May 6, 2015 at 8:33 PM, Ilia Mirkin imir...@alum.mit.edu wrote: i2b has to work for all integers, not just 1. INEG would not necessarily result with all bits set,

Re: [Mesa-dev] [PATCH] i965/wm/gen6: Refactor state setup

2015-05-06 Thread Pohjolainen, Topi
On Wed, May 06, 2015 at 04:12:46PM -0700, Kenneth Graunke wrote: On Wednesday, May 06, 2015 10:41:30 PM Topi Pohjolainen wrote: CC: Kenneth Graunke kenn...@whitecape.org Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- src/mesa/drivers/dri/i965/brw_state.h | 11 +++

[Mesa-dev] [PATCH] mesa: use _mesa_has_compute_shaders instead of extension check

2015-05-06 Thread Tapani Pälli
This was really the original purpose, for enabling the path for ES3.1 tests without the extension being set. Set also fallthrough comment for Coverity (caught by Matt). Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/main/shader_query.cpp | 4 +++- 1 file changed, 3

[Mesa-dev] [PATCH v2] mesa: use _mesa_has_compute_shaders instead of extension check

2015-05-06 Thread Tapani Pälli
This was really the original purpose, for enabling the path for ES3.1 tests without the extension being set. Set also fallthrough comment for Coverity (caught by Matt). v2: .. and test the right way, not wrong one (Ilia Mirkin) Signed-off-by: Tapani Pälli tapani.pa...@intel.com ---

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 --- Comment #6 from Brian Paul bri...@vmware.com --- (In reply to Jeremy Huddleston from comment #5) Yeah, I think the sysctl() approach is probably more portable if you want to go that route. OK, I can commit that patch, but the cherry-pick

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 --- Comment #7 from Jeremy Huddleston jerem...@freedesktop.org --- Yes, please remove the 8da9f46f18fd4c73f2a9d708c86e7e3d5535b3d8 before commit to master. I suspect it refers to the commit on my (unmerged) master branch from which I

Re: [Mesa-dev] [PATCH 7/9] egl/wayland: assume EGL_WINDOW_BIT

2015-05-06 Thread Chad Versace
On Wed 06 May 2015, Daniel Stone wrote: Hi, On 6 May 2015 at 07:25, Pekka Paalanen ppaala...@gmail.com wrote: On Wed, 6 May 2015 11:00:13 +1000 Dave Airlie airl...@gmail.com wrote: On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: Only EGL_WINDOW_BIT is supported. Remove tests

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

<    1   2