[Mesa-dev] [Bug 90249] Fails to build egl_dri2 on osx

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90249 Julien Isorce changed: What|Removed |Added CC||i...@freedesktop.org -- You are receivi

[Mesa-dev] [Bug 90213] glDrawPixels with GL_COLOR_INDEX never returns.

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90213 Juha-Pekka Heikkilä changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 90310] Fails to build gallium_dri.so at linking stage with clang because of multiple redefinitions

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90310 Bug ID: 90310 Summary: Fails to build gallium_dri.so at linking stage with clang because of multiple redefinitions Product: Mesa Version: git Hardware: Other

[Mesa-dev] [Bug 90311] Fail to build libglx with clang at linking stage

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90311 Bug ID: 90311 Summary: Fail to build libglx with clang at linking stage Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal

Re: [Mesa-dev] [PATCH 1/9] glsl: don't lower fragdata array if the output data types don't match

2015-05-05 Thread Samuel Iglesias Gonsálvez
On 05/05/15 00:08, Matt Turner wrote: > On Tue, Feb 24, 2015 at 10:02 AM, Eduardo Lima Mitev wrote: >> From: Samuel Iglesias Gonsalvez >> >> Commit 7e414b58640aee6e243d337e72cea290c354f632 broke the gl_FragData array >> into separate gl_FragData[i] variables, so drivers can eliminate useless >>

Re: [Mesa-dev] [PATCH 6/9] glsl: mark named uniform block arrays as active if defined with shared or std140 layout qualifier

2015-05-05 Thread Samuel Iglesias Gonsálvez
On 05/05/15 01:03, Matt Turner wrote: > On Tue, Feb 24, 2015 at 10:02 AM, Eduardo Lima Mitev wrote: >> From: Samuel Iglesias Gonsalvez >> >> If the named uniform block is an array declared with a shared or >> std140 layout qualifier and no shader instruction has referenced it, >> then it is nev

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

2015-05-05 Thread Samuel Iglesias Gonsálvez
On 05/05/15 00:54, Matt Turner wrote:> On Tue, Feb 24, 2015 at 10:02 AM, Eduardo Lima Mitev wrote: >> From: Samuel Iglesias Gonsalvez >> >> 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 >> deletio

[Mesa-dev] [PATCH 1/3] mesa/main: Remove _mesa_HashClone()

2015-05-05 Thread Juha-Pekka Heikkila
I didn't find this being used anywhere. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/hash.c | 28 src/mesa/main/hash.h | 3 --- 2 files changed, 31 deletions(-) diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index d04cccd..315b5d6 100644 --- a/src

[Mesa-dev] [PATCH 0/3] Simple Klocwork patches.

2015-05-05 Thread Juha-Pekka Heikkila
Just simple Klocwork found issues. /Juha-Pekka Juha-Pekka Heikkila (3): mesa/main: Remove _mesa_HashClone() mesa/main: avoid null access in format_array_table_init() mesa/main: check for null in invalid_array_element_syntax() src/mesa/main/formats.c | 10 ++ src/mesa/main

[Mesa-dev] [PATCH 2/3] mesa/main: avoid null access in format_array_table_init()

2015-05-05 Thread Juha-Pekka Heikkila
If _mesa_hash_table_create failed we'd get null pointer. Report error and go away. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/formats.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index 8af44e9..f7c9402 100644 --- a/

[Mesa-dev] [PATCH 3/3] mesa/main: check for null in invalid_array_element_syntax()

2015-05-05 Thread Juha-Pekka Heikkila
name string is coming through API call, need to be careful with it. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/program_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c index b15a132..28918

[Mesa-dev] [PATCH 00/13] Fix context creation error handling

2015-05-05 Thread Juha-Pekka Heikkila
This is a resend, the earlier set seem to have gone into void. This set was collected with intentionally failing at context creation and then fixing all the places where segfault resulted. Some of the places where null is being checked are a bit funny but its only because during first time context

[Mesa-dev] [PATCH 05/13] mesa/program: Don't clear caches which are not allocated

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/program/prog_cache.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/mesa/program/prog_cache.c b/src/mesa/program/prog_cache.c index ed93af7..eef5339 100644 --- a/src/mesa/program/prog_cache.c +++ b/src/mesa

[Mesa-dev] [PATCH 03/13] mesa/main: Don't go freeing texture data which was never allocated

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/texstate.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 1af9d47..d133104 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -936,8 +936,

[Mesa-dev] [PATCH 02/13] i965: If cache has no BO don't try to unmap BO

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/dri/i965/brw_state_cache.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index 157b33d..f56fd85 100644 --- a/src/mes

[Mesa-dev] [PATCH 01/13] mesa/meta: Don't free meta if it was never initialized

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/common/meta.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index d2ab7b8..b2cb0d5 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -

[Mesa-dev] [PATCH 04/13] mesa/main: Don't go freeing pipeline data which is not reserved

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/pipelineobj.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 0fefa7d..73a6af8 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj

[Mesa-dev] [PATCH 08/13] mesa/main: Don't go deleting unallocated TransformFeedbackObjects

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/transformfeedback.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 103011c..cbf8598 100644 --- a/src/mesa/main/transformfeedback.c ++

[Mesa-dev] [PATCH 07/13] mesa/main: Don't free unallocated vertex array state

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/varray.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 42e7f89..b65e6ef 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1978,6 +1978,8 @@ del

[Mesa-dev] [PATCH 06/13] mesa/main: Don't free QueryObjects which were never allocated

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/queryobj.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index fbccf3f..3adea35 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -999,6 +999,

[Mesa-dev] [PATCH 11/13] i965: Add missing return on error path

2015-05-05 Thread Juha-Pekka Heikkila
If there was memory allocation failure have to return away from brw_new_buffer_object Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/d

[Mesa-dev] [PATCH 10/13] mesa/main: Check context pointer in _mesa_error before using it

2015-05-05 Thread Juha-Pekka Heikkila
I guess this should not really be able to segfault but still it seems to be able to during context creation. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/errors.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/mesa/main/errors.c b/src

[Mesa-dev] [PATCH 13/13] mesa/main: Verify context creation on progress

2015-05-05 Thread Juha-Pekka Heikkila
Stop context creation if something failed. If something errored during context creation we'd segfault. Now will clean up and return error. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/shared.c | 66 +++--- 1 file changed, 62 insertions(+), 4 de

[Mesa-dev] [PATCH 09/13] mesa/main: Don't free unallocated performance monitor

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/performance_monitor.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c index 2d740da..292086c 100644 --- a/src/mesa/main/performance_monitor.c

[Mesa-dev] [PATCH 12/13] mesa/main: Don't proceed on deleting null hash table

2015-05-05 Thread Juha-Pekka Heikkila
Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index d04cccd..533b1d1 100644 --- a/src/mesa/main/hash.c +++ b/src/mesa/main/hash.c @@ -152,7 +152,8 @@ _mesa_NewHashTable(

[Mesa-dev] [PATCH] i965: Fix SHADER_OPCODE_UNTYPED_SURFACE_WRITE to mark written surfaces

2015-05-05 Thread Iago Toral Quiroga
We can do this when the surface index is an immediate, as we do for reads. Otherwise the visitor should handle this. --- Francisco, maybe you choose not to do this for a reason? It seems a bit inconsistent with the reads though. Also, other read/write messages seem to mark surfaces in the generator

[Mesa-dev] [Bug 28130] vbo: premature flushing breaks GL_LINE_LOOP

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28130 marius predut changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |marius.pre...@intel.com

Re: [Mesa-dev] [PATCH] i965: Fix SHADER_OPCODE_UNTYPED_SURFACE_WRITE to mark written surfaces

2015-05-05 Thread Francisco Jerez
Iago Toral Quiroga writes: > We can do this when the surface index is an immediate, as we do for > reads. Otherwise the visitor should handle this. > --- > Francisco, maybe you choose not to do this for a reason? It seems a bit > inconsistent with the reads though. Also, other read/write messages

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Add XRGB8888 format to intel_screen_make_configs

2015-05-05 Thread Emil Velikov
Hi all, On 16 April 2015 at 21:06, Daniel Stone wrote: > Hi, > > On 9 April 2015 at 17:20, Kristian Høgsberg wrote: >> On Wed, Apr 8, 2015 at 11:37 AM, Emil Velikov >> wrote: >>> Hi all, >>> >>> Can we get a pair of eyes on this patch please ? >> >> Reviewed-by: Kristian Høgsberg >> >> Thanks

Re: [Mesa-dev] [PATCH] clover: add --with-icd-file-dir option

2015-05-05 Thread Emil Velikov
On 4 May 2015 at 18:11, Ilia Mirkin wrote: > On Mon, May 4, 2015 at 12:47 PM, Tom Stellard wrote: >> On Mon, May 04, 2015 at 10:13:19AM -0400, Ilia Mirkin wrote: >>> On Mon, May 4, 2015 at 10:04 AM, Tom Stellard wrote: >>> > On Sat, May 02, 2015 at 01:31:41PM -0400, Ilia Mirkin wrote: >>> >> On

Re: [Mesa-dev] [PATCH] glx: Massive update of comments in struct extension_info

2015-05-05 Thread Emil Velikov
Hi Ian, On 15 April 2015 at 19:36, Ian Romanick wrote: > From: Ian Romanick > > In response to another patch, Emil asked for some clarification how this > stuff works. Rather than just reply to the e-mail, I decided to update > the exlanation in the code. > Upon a closer look "supported" seems

Re: [Mesa-dev] [PATCH 20/20] mesa: Allow MESA_GL_VERSION_OVERRIDE with ES contexts

2015-05-05 Thread Emil Velikov
Hi Ian, On 30 April 2015 at 00:26, Ian Romanick wrote: > From: Ian Romanick > > The bulk of the change is to prevent overriding the context to > API_OPENGL_CORE based on the requested version. If the context is > API_OPENGL_ES2, don't change it. > Wouldn't it be better if one just uses another

Re: [Mesa-dev] [PATCH] clover: add --with-icd-file-dir option

2015-05-05 Thread Tom Stellard
On Tue, May 05, 2015 at 03:48:29PM +0100, Emil Velikov wrote: > On 4 May 2015 at 18:11, Ilia Mirkin wrote: > > On Mon, May 4, 2015 at 12:47 PM, Tom Stellard wrote: > >> On Mon, May 04, 2015 at 10:13:19AM -0400, Ilia Mirkin wrote: > >>> On Mon, May 4, 2015 at 10:04 AM, Tom Stellard wrote: > >>> >

Re: [Mesa-dev] [PATCH] clover: add --with-icd-file-dir option

2015-05-05 Thread Ilia Mirkin
On Tue, May 5, 2015 at 11:42 AM, Tom Stellard wrote: >> > How about this -- get rid of --enable-opencl-icd and change it to >> > --with-opencl-icd-dir where you must supply a directory if you want to >> > use it. That way if you want the system one, you'd say >> > /etc/OpenCL/vendors, if you want

Re: [Mesa-dev] [PATCH 4/4] i965: Introduce a context-local batch manager

2015-05-05 Thread Emil Velikov
On 1 May 2015 at 15:53, Chris Wilson wrote: > * where is the doubly-linked circular list? IIRC there was some patches from Jason, that move the the gallium one to src/util/list.h [1]. Not sure on the status of it though. On a related note - would be great if one day we nuke the glsl one (exec_no

Re: [Mesa-dev] [PATCH 0/3] Simple Klocwork patches.

2015-05-05 Thread Anuj Phogat
On Tue, May 5, 2015 at 3:50 AM, Juha-Pekka Heikkila wrote: > Just simple Klocwork found issues. > > /Juha-Pekka > > Juha-Pekka Heikkila (3): > mesa/main: Remove _mesa_HashClone() > mesa/main: avoid null access in format_array_table_init() > mesa/main: check for null in invalid_array_element_

Re: [Mesa-dev] [PATCH] clover: add --with-icd-file-dir option

2015-05-05 Thread Emil Velikov
On 5 May 2015 at 16:42, Tom Stellard wrote: > On Tue, May 05, 2015 at 03:48:29PM +0100, Emil Velikov wrote: >> On 4 May 2015 at 18:11, Ilia Mirkin wrote: >> > On Mon, May 4, 2015 at 12:47 PM, Tom Stellard wrote: >> >> On Mon, May 04, 2015 at 10:13:19AM -0400, Ilia Mirkin wrote: >> >>> On Mon, Ma

Re: [Mesa-dev] [PATCH 00/13] Fix context creation error handling

2015-05-05 Thread Anuj Phogat
On Tue, May 5, 2015 at 4:25 AM, Juha-Pekka Heikkila wrote: > This is a resend, the earlier set seem to have gone into void. > > This set was collected with intentionally failing at context > creation and then fixing all the places where segfault resulted. > Some of the places where null is being c

Re: [Mesa-dev] [PATCH 3/3] mesa/main: check for null in invalid_array_element_syntax()

2015-05-05 Thread Kenneth Graunke
On Tuesday, May 05, 2015 01:50:59 PM Juha-Pekka Heikkila wrote: > name string is coming through API call, need to be careful with it. > > Signed-off-by: Juha-Pekka Heikkila > --- > src/mesa/main/program_resource.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa

Re: [Mesa-dev] [PATCH 03/29] i965: Define consistent interface to disable control flow execution masking.

2015-05-05 Thread Francisco Jerez
Kenneth Graunke writes: > On Saturday, May 02, 2015 06:29:30 PM Francisco Jerez wrote: >> --- >> src/mesa/drivers/dri/i965/brw_ir_fs.h | 10 ++ >> src/mesa/drivers/dri/i965/brw_ir_vec4.h | 9 + >> 2 files changed, 19 insertions(+) >> >> diff --git a/src/mesa/drivers/dri/i965/

Re: [Mesa-dev] [PATCH 07/29] i965/fs: Introduce FS IR builder.

2015-05-05 Thread Francisco Jerez
Jason Ekstrand writes: > On Sat, May 2, 2015 at 8:29 AM, Francisco Jerez wrote: >> The purpose of this change is threefold: First, it improves the >> modularity of the compiler back-end by separating the functionality >> required to construct an i965 IR program from the rest of the visitor >> go

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

2015-05-05 Thread Neil Roberts
Jason Ekstrand writes: > +#define list_for_each_entry(type, pos, head, member)\ > + for (type *pos = container_of((head)->next, pos, member);\ > + &pos->member != (head); \ > + pos = container_of(pos->member.next, p

Re: [Mesa-dev] [PATCH 09/13] util/list: Add list_empty and list_length functions

2015-05-05 Thread Neil Roberts
Jason Ekstrand writes: > +static inline bool list_empty(struct list_head *list) > +{ > + return list->next == list; > +} It would be good if list.h also included stdbool.h in order to get the declaration of bool. However, will that cause problems on MSVC? Is the Gallium code compiled on MSVC i

Re: [Mesa-dev] [PATCH 10/13] util/list: Add a list validation function

2015-05-05 Thread Neil Roberts
Jason Ekstrand writes: > +static inline void list_validate(struct list_head *list) > +{ > + assert(list->next->prev == list && list->prev->next == list); > + for (struct list_head *node = list->next; node != list; node = node->next) > + assert(node->next->prev == node && node->prev->next

Re: [Mesa-dev] [PATCH 10/13] util/list: Add a list validation function

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 11:25 AM, Neil Roberts wrote: > Jason Ekstrand writes: > >> +static inline void list_validate(struct list_head *list) >> +{ >> + assert(list->next->prev == list && list->prev->next == list); >> + for (struct list_head *node = list->next; node != list; node = >> node->n

Re: [Mesa-dev] [PATCH 09/13] util/list: Add list_empty and list_length functions

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 11:21 AM, Neil Roberts wrote: > Jason Ekstrand writes: > >> +static inline bool list_empty(struct list_head *list) >> +{ >> + return list->next == list; >> +} > > It would be good if list.h also included stdbool.h in order to get the > declaration of bool. However, will t

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

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 11:13 AM, Neil Roberts wrote: > Jason Ekstrand writes: > >> +#define list_for_each_entry(type, pos, head, member)\ >> + for (type *pos = container_of((head)->next, pos, member);\ >> + &pos->member != (head);

Re: [Mesa-dev] [PATCH 09/13] util/list: Add list_empty and list_length functions

2015-05-05 Thread Brian Paul
On 05/05/2015 12:21 PM, Neil Roberts wrote: Jason Ekstrand writes: +static inline bool list_empty(struct list_head *list) +{ + return list->next == list; +} It would be good if list.h also included stdbool.h in order to get the declaration of bool. However, will that cause problems on MSVC

Re: [Mesa-dev] [PATCH 00/13] i965: Make LOAD_PAYLOAD sane again

2015-05-05 Thread Kenneth Graunke
On Wednesday, April 01, 2015 06:19:11 PM Jason Ekstrand wrote: > This patch series comes with two apologies. First, is for the fact that > most of it has to be squashed into a single super-commit. Unfortunately, > this is one of those things that can't really be done incrementally. > Second, is f

Re: [Mesa-dev] [PATCH 03/13] i965/register_coalesce: Do register size checks before is_copy_payload

2015-05-05 Thread Matt Turner
On Wed, Apr 1, 2015 at 6:19 PM, Jason Ekstrand wrote: > This allows us to get rid of the visitor argument in is_copy_payload > --- > src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 03/13] i965/register_coalesce: Do register size checks before is_copy_payload

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 12:22 PM, Matt Turner wrote: > On Wed, Apr 1, 2015 at 6:19 PM, Jason Ekstrand wrote: >> This allows us to get rid of the visitor argument in is_copy_payload >> --- >> src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp | 10 +- >> 1 file changed, 5 insertions(+)

Re: [Mesa-dev] [PATCH 04/13] i965/fs_inst: Add an is_copy_payload helper

2015-05-05 Thread Jason Ekstrand
On Tue, Apr 14, 2015 at 1:28 AM, Kenneth Graunke wrote: > On Wednesday, April 01, 2015 06:19:15 PM Jason Ekstrand wrote: >> This allows us to combine code in CSE and register coalesce >> --- >> src/mesa/drivers/dri/i965/brw_fs.cpp | 14 ++ >> src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 2/5] nir: Add memory barrier intrinsic.

2015-05-05 Thread Francisco Jerez
--- src/glsl/nir/nir_intrinsics.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/glsl/nir/nir_intrinsics.h b/src/glsl/nir/nir_intrinsics.h index 4b13c75..3e053b3 100644 --- a/src/glsl/nir/nir_intrinsics.h +++ b/src/glsl/nir/nir_intrinsics.h @@ -68,6 +68,13 @@ INTRINSIC(interp_var_a

[Mesa-dev] [PATCH 3/5] nir: Fix indexing of atomic counter arrays with a constant value.

2015-05-05 Thread Francisco Jerez
--- src/glsl/nir/nir_lower_atomics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glsl/nir/nir_lower_atomics.c b/src/glsl/nir/nir_lower_atomics.c index e82df01..f6f8902 100644 --- a/src/glsl/nir/nir_lower_atomics.c +++ b/src/glsl/nir/nir_lower_atomics.c @@ -78,7 +78,8

[Mesa-dev] [PATCH 1/5] nir: Define image load, store and atomic intrinsics.

2015-05-05 Thread Francisco Jerez
--- src/glsl/nir/nir_intrinsics.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/src/glsl/nir/nir_intrinsics.h b/src/glsl/nir/nir_intrinsics.h index 8e28765..4b13c75 100644 --- a/src/glsl/nir/nir_intrinsics.h +++ b/src/glsl/nir/nir_intrinsics.h @@ -89,6 +89,33 @@

[Mesa-dev] [PATCH 4/5] nir: Translate image load, store and atomic intrinsics from GLSL IR.

2015-05-05 Thread Francisco Jerez
--- src/glsl/nir/glsl_to_nir.cpp | 125 +++ 1 file changed, 114 insertions(+), 11 deletions(-) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index f6b8331..a01ab3b 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_

[Mesa-dev] [PATCH 5/5] nir: Translate memory barrier intrinsics from GLSL IR.

2015-05-05 Thread Francisco Jerez
--- src/glsl/nir/glsl_to_nir.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index a01ab3b..b4ab4ee 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -634,6 +634,8 @@ nir_visitor::visit(ir_call *i

Re: [Mesa-dev] [PATCH 04/13] i965/fs_inst: Add an is_copy_payload helper

2015-05-05 Thread Matt Turner
On Tue, May 5, 2015 at 1:13 PM, Jason Ekstrand wrote: > On Tue, Apr 14, 2015 at 1:28 AM, Kenneth Graunke > wrote: >> 2. CSE didn't use equals(), so it allowed things like types to differ, >>or source modifiers...(which are probably bogus on LOAD_PAYLOADs >>anyway, so it may be moot...) >

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 Bug ID: 90325 Summary: No static entry point for glQueryCounter and other entry points in ARB_timer_query Product: Mesa Version: git Hardware: x86-64 (AMD64)

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #1 from nmcve...@gmail.com --- Created attachment 11 --> https://bugs.freedesktop.org/attachment.cgi?id=11&action=edit Simple program that demonstrates problem -- You are receiving this mail because: You are the QA Contact

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #2 from nmcve...@gmail.com --- Created attachment 115556 --> https://bugs.freedesktop.org/attachment.cgi?id=115556&action=edit glxinfo output -- You are receiving this mail because: You are the QA Contact for the bug. You are the a

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #3 from nmcve...@gmail.com --- Created attachment 115558 --> https://bugs.freedesktop.org/attachment.cgi?id=115558&action=edit Possible fix for the problem -- You are receiving this mail because: You are the QA Contact for the bug.

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #4 from nmcve...@gmail.com --- Looking at gl_API.xml, it appears to me that static_dispatch="false" should have been removed when the 3.3 support was added. If I remove static_dispatch from the functions in the ARB_timer_query category

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 nmcve...@gmail.com changed: What|Removed |Added CC||nmcve...@gmail.com -- You are recei

[Mesa-dev] [Bug 90311] Fail to build libglx with clang at linking stage

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90311 --- Comment #1 from Julien Isorce --- The exact error is: CCLD libGL.la clang: warning: argument unused during compilation: '-pthread' Undefined symbols for architecture x86_64: "_driDispatchRemapTable", referenced from: _apple_glapi

[Mesa-dev] [Bug 90310] Fails to build gallium_dri.so at linking stage with clang because of multiple redefinitions

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90310 Julien Isorce changed: What|Removed |Added CC||emil.l.veli...@gmail.com -- You are rec

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #5 from Emil Velikov --- This might come a bit harsh, but what makes you think that libGL should provide static entry points for the said symbols ? Iirc EGL 1.4 had some strange thing where, core profile functions should be made avail

Re: [Mesa-dev] i965 implementation of the ARB_shader_image_load_store built-ins. (v2)

2015-05-05 Thread Francisco Jerez
Kenneth Graunke writes: > On Saturday, May 02, 2015 06:29:27 PM Francisco Jerez wrote: >> This v2 is motivated by the less than enthusiastic reception of my >> last two series implementing the image load, store and atomic >> intrinsics in the i965 back-end. It substitutes both. >> >> The built-

Re: [Mesa-dev] [PATCH 04/13] i965/fs_inst: Add an is_copy_payload helper

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 1:34 PM, Matt Turner wrote: > On Tue, May 5, 2015 at 1:13 PM, Jason Ekstrand wrote: >> On Tue, Apr 14, 2015 at 1:28 AM, Kenneth Graunke >> wrote: >>> 2. CSE didn't use equals(), so it allowed things like types to differ, >>>or source modifiers...(which are probably bo

[Mesa-dev] i965 implementation of the ARB_shader_image_load_store built-ins. (v3)

2015-05-05 Thread Francisco Jerez
This resend drops the GLSL IR implementation of the image built-ins as requested by Ken, and adds a NIR implementation. It depends on the series sent earlier today adding support for image intrinsics to NIR. For a branch in a testable form see: http://cgit.freedesktop.org/~currojerez/mesa/log/?h=i

[Mesa-dev] [PATCH 05/25] i965/vec4: Obtain atomic counter locations by recursing through the visitor.

2015-05-05 Thread Francisco Jerez
Until now atomic counter built-ins were handled in a way that prevented the GLSL visitor from encountering atomic counter IR variables directly. This makes the handling of atomic counters consistent with other kinds of GLSL variable dereferences. --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

[Mesa-dev] [PATCH 03/25] i965/vec4: Introduce VEC4 IR builder.

2015-05-05 Thread Francisco Jerez
See "i965/fs: Introduce FS IR builder." for the rationale. v2: Drop scalarizing VEC4 builder. --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_vec4_builder.h | 579 +++ 2 files changed, 580 insertions(+) create mode 100644 src/mesa/d

[Mesa-dev] [PATCH 01/25] i965: Add register constructors taking a backend_reg as argument.

2015-05-05 Thread Francisco Jerez
These are going to be used to convert an array_reg (chunk of the register space without fancy regioning parameters) back to a normal FS/VEC4 register. --- src/mesa/drivers/dri/i965/brw_fs.cpp| 6 ++ src/mesa/drivers/dri/i965/brw_ir_fs.h | 1 + src/mesa/drivers/dri/i965/brw_ir_vec4.h |

[Mesa-dev] [PATCH 08/25] i965/fs: Import helpers to convert vectors into arrays and back.

2015-05-05 Thread Francisco Jerez
These functions implement the memory layout of a vecN value in a message or return payload. The conversion is not always trivial because the shared unit may not support the SIMD16 or SIMD4x2 vector layouts, requiring splitting the payload in half and merging the reply in the former case, or spread

[Mesa-dev] [PATCH 04/25] i965/fs: Obtain atomic counter locations by recursing through the visitor.

2015-05-05 Thread Francisco Jerez
Until now atomic counter built-ins were handled in a way that prevented the GLSL visitor from encountering atomic counter IR variables directly. This makes the handling of atomic counters consistent with other kinds of GLSL variable dereferences. --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |

[Mesa-dev] [PATCH 02/25] i965/fs: Introduce FS IR builder.

2015-05-05 Thread Francisco Jerez
The purpose of this change is threefold: First, it improves the modularity of the compiler back-end by separating the functionality required to construct an i965 IR program from the rest of the visitor god-object, what in turn will reduce the coupling between other components and the visitor allowi

[Mesa-dev] [PATCH 07/25] i965/fs: Import array utils for the surface message builder.

2015-05-05 Thread Francisco Jerez
Define a few transformations on register arrays which will be used frequently during the construction of typed and untyped surface message payloads. Their purpose is simple but the implementation is rather messy, so it makes a lot of sense to factor them out as separate functions. v2: Drop VEC4 s

[Mesa-dev] [PATCH 12/25] i965/fs: Import image format metadata queries.

2015-05-05 Thread Francisco Jerez
Define some utility functions to query the bitfield layout of a given image format and whether it satisfies a number of more or less hardware-specific properties. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs_surface_builder.h | 147 + 1 file changed, 147 insertio

[Mesa-dev] [PATCH 06/25] i965: Lift the constness restriction on surface indices passed to untyped ops.

2015-05-05 Thread Francisco Jerez
v2: Update NIR atomic intrinsic handling too (Ken). Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 8 ++-- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++ src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 src/mesa/drivers/dri/i965/brw_v

[Mesa-dev] [PATCH 09/25] i965/fs: Import surface message builder functions.

2015-05-05 Thread Francisco Jerez
Implement helper functions that can be used to construct and send untyped and typed surface read, write and atomic messages to the shared dataport unit. v2: Drop VEC4 suport. --- .../drivers/dri/i965/brw_fs_surface_builder.cpp| 232 + src/mesa/drivers/dri/i965/brw_fs_surfa

[Mesa-dev] [PATCH 11/25] i965/fs: Import image memory offset calculation code.

2015-05-05 Thread Francisco Jerez
Define a function to calculate the memory address of the image location given by a vector of coordinates. This is required in cases where we need to fall back to untyped surface access, which take a raw memory offset and know nothing about surface coordinates, type conversion or memory tiling and

[Mesa-dev] [PATCH 13/25] i965/fs: Import image format conversion primitives.

2015-05-05 Thread Francisco Jerez
Define bitfield packing, unpacking and type conversion operations in terms of which the image format conversion code will be implemented. These don't directly know about image formats: The packing and unpacking functions take a 4-tuple of bit shifts and a 4-tuple of bit widths as arguments, determi

[Mesa-dev] [PATCH 2/3] st/mesa: fix st_NewPerfMonitor() declaration

2015-05-05 Thread Brian Paul
Was missing the context parameter. Fixes MSVC warning. --- src/mesa/state_tracker/st_cb_perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_perfmon.c b/src/mesa/state_tracker/st_cb_perfmon.c index 4bde679..c8d4490 100644 --- a/src/mesa/state

[Mesa-dev] [PATCH 16/25] i965/fs: Revisit NIR atomic counter intrinsic translation.

2015-05-05 Thread Francisco Jerez
Rewrite the NIR atomic counter intrinsics translation code making use of the recently introduced surface builder. This will allow the removal of some of the functionality duplicated in the visitor and surface builder. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 56 ++

[Mesa-dev] [PATCH 10/25] i965/fs: Import image access validity checks.

2015-05-05 Thread Francisco Jerez
These utility functions check whether an image access is valid. According to the spec an invalid image access should have no effect on the image and yield well-defined results. Typically the hardware implements correct bounds and surface checking by itself, but in some cases (typed atomics on IVB

[Mesa-dev] [PATCH 23/25] i965/fs: Translate image load, store and atomic NIR intrinsics.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 158 +++ 1 file changed, 158 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index a166e59..497b8f7 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++

[Mesa-dev] [PATCH 15/25] i965/fs: Revisit GLSL IR atomic counter intrinsic translation.

2015-05-05 Thread Francisco Jerez
Rewrite the GLSL IR atomic counter intrinsics translation code making use of the recently introduced surface builder. This will allow the removal of some of the functionality duplicated in the visitor and surface builder. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs.h |

[Mesa-dev] [PATCH 3/3] st/mesa: fix pipe_query_result result initializer

2015-05-05 Thread Brian Paul
Fixes MSVC build error. --- src/mesa/state_tracker/st_cb_perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_perfmon.c b/src/mesa/state_tracker/st_cb_perfmon.c index c8d4490..1bb5be3 100644 --- a/src/mesa/state_tracker/st_cb_perfmon.c +++ b/s

[Mesa-dev] [PATCH 1/3] glsl: add parens in shader_integer_mix() to silence compiler warning

2015-05-05 Thread Brian Paul
Silences gcc warning: builtin_functions.cpp:204:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] --- src/glsl/builtin_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 1df6

[Mesa-dev] [PATCH 14/25] i965/fs: Implement image load, store and atomic.

2015-05-05 Thread Francisco Jerez
v2: Drop VEC4 suport. --- .../drivers/dri/i965/brw_fs_surface_builder.cpp| 216 + src/mesa/drivers/dri/i965/brw_fs_surface_builder.h | 17 ++ 2 files changed, 233 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp b/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 20/25] i965/fs: Don't overwrite fs_visitor::uniforms and ::param_size during the SIMD16 run.

2015-05-05 Thread Francisco Jerez
Image variables need to allocate additional uniform slots over nir_shader::num_uniforms. nir_setup_uniforms() overwrites the values imported from the SIMD8 visitor and then exits early before entering the nir_shader::uniforms loop, so image uniforms are never re-created. Instead leave the imported

[Mesa-dev] [PATCH 17/25] i965/fs: Drop unused untyped surface read and atomic emit methods.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 7 -- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 13 ++- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 125 ++- 3 files changed, 10 insertions(+), 135 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b

[Mesa-dev] [PATCH 19/25] i965: Implement logic to set up and upload an image uniform.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_shader.cpp | 32 src/mesa/drivers/dri/i965/brw_shader.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index c1fd859..61ef0c0 100644 -

[Mesa-dev] [PATCH 24/25] i965/fs: Translate memory barrier NIR intrinsics.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 497b8f7..a774f98 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 18/25] i965: Teach type_size() about the size of an image uniform.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 889079b..1eaec10 100644 --- a/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 22/25] i965/fs: Handle image uniforms in NIR programs.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 55 +++- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index aac9c4b..4f7d95e 10064

[Mesa-dev] [PATCH 25/25] i965: Expose ARB_shader_image_load_store.

2015-05-05 Thread Francisco Jerez
Reviewed-by: Paul Berry v2: Disable the extension for the time being if NIR is in use until it grows the necessary intrinsics. v3: Drop GLSL IR support. Disable the extension if NIR is *not* in use. --- src/mesa/drivers/dri/i965/intel_extensions.c | 2 ++ 1 file changed, 2 insertions(+) di

[Mesa-dev] [PATCH 21/25] i965/fs: Execute nir_setup_uniforms, _inputs and _outputs unconditionally.

2015-05-05 Thread Francisco Jerez
Images take up zero uniform slots in the nir_shader::num_uniforms calculation, but nir_setup_uniforms needs to be executed even if the program has no non-image uniforms so the driver-specific image parameters are uploaded. nir_setup_uniforms is a no-op if there are really no uniforms, so checking

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

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 --- Comment #2 from Julien Isorce --- Created attachment 115565 --> https://bugs.freedesktop.org/attachment.cgi?id=115565&action=edit swrast: Build fix for darwin Other solution from macports. -- You are receiving this mail because: You are

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #6 from nmcve...@gmail.com --- QueryCounters was an extension but it was added to the core profile in 3.3, you can see it right there in section 5.1 (https://www.opengl.org/registry/doc/glspec33.core.20100311.withchanges.pdf). -- You

  1   2   >