[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 Matt Turner changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 4/4] softpipe: add tgsi_exec support for new bit manipulation opcodes

2014-04-25 Thread Roland Scheidegger
Am 26.04.2014 01:45, schrieb Ilia Mirkin: > On Fri, Apr 25, 2014 at 5:44 PM, Roland Scheidegger > wrote: >> Am 25.04.2014 19:41, schrieb Ilia Mirkin: >>> Signed-off-by: Ilia Mirkin >>> --- >>> src/gallium/auxiliary/tgsi/tgsi_exec.c | 188 >>> + >>> src/gallium/a

Re: [Mesa-dev] [PATCH V2] mesa: Use location VERT_ATTRIB_GENERIC0 for vertex attribute 0

2014-04-25 Thread Ian Romanick
On 04/25/2014 11:23 AM, Anuj Phogat wrote: > In OpenGL 3.1 attribute 0 becomes non-magic, just like in > OpenGL ES 2.0. Earlier versions of OpenGL used attribute 0 > exclusively for vertex position. > > V2: Add a utility function _mesa_attr_zero_aliases_vertex() in > varray.h > > Fixes 4 Khro

[Mesa-dev] [PATCH 3/4] i965: Drop bogus state flag comment.

2014-04-25 Thread Eric Anholt
This was introduced with the comment and code below it, though the code only touches prog_data (CACHE_NEW_WM_PROG). --- src/mesa/drivers/dri/i965/gen6_wm_state.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state.

[Mesa-dev] [PATCH 2/4] i965: Track the number of samples in the drawbuffer.

2014-04-25 Thread Eric Anholt
This keeps us from having to emit the nonpipelined state packet on every FBO binding. -4.42003% +/- 1.09961% effect on cairo-perf-trace runtime on glamor (n=110). --- src/mesa/drivers/dri/i965/brw_context.h| 8 src/mesa/drivers/dri/i965/brw_state_upload.c | 6 ++

[Mesa-dev] [PATCH 1/4] mesa: Track maximum CurrentTexUnit to reduce glDeleteTextures() overhead.

2014-04-25 Thread Eric Anholt
No more walking 96*6 pointers looking to see if they're the current texture, when we only use the first 2 out of 96 units. -6.26002% +/- 1.87817% effect on cairo runtime on no-fbo-cache glamor (n=36). --- src/mesa/main/mtypes.h | 3 +++ src/mesa/main/texobj.c | 4 +++- src/mesa/main/texstate.

[Mesa-dev] [PATCH 4/4] i965: Fix state flag comments on color_buffer_write_enabled() calls.

2014-04-25 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/gen6_wm_state.c| 1 + src/mesa/drivers/dri/i965/gen7_wm_state.c| 2 +- src/mesa/drivers/dri/i965/gen8_blend_state.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6

Re: [Mesa-dev] [PATCH 14/14] mesa: Rewrite shader-based texture image state updates.

2014-04-25 Thread Eric Anholt
Ilia Mirkin writes: > On Thu, Apr 24, 2014 at 8:50 PM, Eric Anholt wrote: >> Instead of walking 6 shader stages for each of the 96 combined texture >> image units, now we just walk the samplers used in each shader stage. >> >> With cairo-perf-trace on Xephyr with glamor, I'm seeing a -6.50518% +

Re: [Mesa-dev] [PATCH 4/4] softpipe: add tgsi_exec support for new bit manipulation opcodes

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 5:44 PM, Roland Scheidegger wrote: > Am 25.04.2014 19:41, schrieb Ilia Mirkin: >> Signed-off-by: Ilia Mirkin >> --- >> src/gallium/auxiliary/tgsi/tgsi_exec.c | 188 >> + >> src/gallium/auxiliary/util/u_math.h| 11 ++ >> 2 files change

Re: [Mesa-dev] [PATCH 14/14] mesa: Rewrite shader-based texture image state updates.

2014-04-25 Thread Ilia Mirkin
On Thu, Apr 24, 2014 at 8:50 PM, Eric Anholt wrote: > Instead of walking 6 shader stages for each of the 96 combined texture > image units, now we just walk the samplers used in each shader stage. > > With cairo-perf-trace on Xephyr with glamor, I'm seeing a -6.50518% +/- > 2.55601% effect on runt

[Mesa-dev] [Bug 77917] VG/openvg.h defines non existent functions

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77917 --- Comment #1 from Chia-I Wu --- Did you git-bisect to 75143ef05576ee9f25ee176bc28c3c4d03705bf5? I do not recall seeing this issue 4 years ago... Commit 144bbb7b78ecac33c62c6dc28df1747a73c4eb39 is more likely to contribute to this, per #77502.

Re: [Mesa-dev] [PATCH 00/18] improvements for GL_KHR_debug support

2014-04-25 Thread Chia-I Wu
On Sat, Apr 26, 2014 at 2:53 AM, Emil Velikov wrote: > On 25/04/14 11:41, Chia-I Wu wrote: >> Hi, >> >> This series cleans up GL_KHR_debug support, fixes message control for some >> corner cases, and makes one enhancement: cheap >> glPushDebugGroup/glPopDebugGroup for command stream annotation. >>

Re: [Mesa-dev] [PATCH 1/4] gallium: add new opcodes for ARB_gs5 bit manipulation support

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 6:20 PM, Roland Scheidegger wrote: > Am 25.04.2014 23:19, schrieb Ilia Mirkin: >> On Fri, Apr 25, 2014 at 5:02 PM, Roland Scheidegger >> wrote: >>> As for the addc/subb I guess this is an area where just about everything >>> you do won't really match hw in any case. A qui

Re: [Mesa-dev] [PATCH 13/18] mesa: use accessors for struct gl_debug_state

2014-04-25 Thread Chia-I Wu
On Fri, Apr 25, 2014 at 10:30 PM, Brian Paul wrote: > On 04/25/2014 04:42 AM, Chia-I Wu wrote: >> >> When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log >> debug >> messages from other threads. That requires gl_debug_state to be protected >> by >> a mutex, even when it is a co

Re: [Mesa-dev] [PATCH 1/4] gallium: add new opcodes for ARB_gs5 bit manipulation support

2014-04-25 Thread Roland Scheidegger
Am 25.04.2014 23:19, schrieb Ilia Mirkin: > On Fri, Apr 25, 2014 at 5:02 PM, Roland Scheidegger > wrote: >> Am 25.04.2014 19:41, schrieb Ilia Mirkin: >>> Signed-off-by: Ilia Mirkin >>> --- >>> src/gallium/auxiliary/tgsi/tgsi_info.c | 8 + >>> src/gallium/docs/source/tgsi.rst

Re: [Mesa-dev] [PATCH 18/18] mesa: overhaul debug namespace support

2014-04-25 Thread Chia-I Wu
On Fri, Apr 25, 2014 at 10:30 PM, Brian Paul wrote: > On 04/25/2014 04:42 AM, Chia-I Wu wrote: >> >> _mesa_HashTable is not well-suited for us: it locks a mutex unnecessarily >> and >> it does not accept 0 as the key (and have branches to handle 1 specially). >> What we really need is a sparse arr

Re: [Mesa-dev] [PATCH 0/4] gallium: add new opcodes needed for ARB_gs5

2014-04-25 Thread Roland Scheidegger
Am 25.04.2014 23:11, schrieb Ilia Mirkin: > On Fri, Apr 25, 2014 at 4:43 PM, Roland Scheidegger > wrote: >> Am 25.04.2014 19:41, schrieb Ilia Mirkin: >>> This is enough to catch up to core mesa, with the exception of >>> uaddCarry/usubBorrow -- those will require some thought. I don't like the >

Re: [Mesa-dev] [PATCH 4/4] softpipe: add tgsi_exec support for new bit manipulation opcodes

2014-04-25 Thread Roland Scheidegger
Am 25.04.2014 19:41, schrieb Ilia Mirkin: > Signed-off-by: Ilia Mirkin > --- > src/gallium/auxiliary/tgsi/tgsi_exec.c | 188 > + > src/gallium/auxiliary/util/u_math.h| 11 ++ > 2 files changed, 199 insertions(+) > > diff --git a/src/gallium/auxiliary/tgsi/tg

Re: [Mesa-dev] [PATCH v3 00/11] Map support for GBM

2014-04-25 Thread Kristian Høgsberg
On Tue, Apr 8, 2014 at 1:49 PM, Thomas Hellstrom wrote: > On 04/08/2014 10:28 PM, Ander Conselvan de Oliveira wrote: >> From: Ander Conselvan de Oliveira >> >> Changes from previous version: >> >> - make it clearer that the interface is optional; > > No! this is still a NAK! I don't agree with

Re: [Mesa-dev] bloat-blame results for megadriver

2014-04-25 Thread Emil Velikov
On 23/04/14 00:24, Eric Anholt wrote: > I was reading an article on LTO in firefox today, and it pointed to > https://github.com/wmanley/bloat-blame so I decided to try it on Mesa > (i965_dri.so in a release build). It looks like it's pointing at some > silly inlines we're doing that we can probab

Re: [Mesa-dev] [PATCH 3/4] mesa/st: implement new bit manipulation opcodes

2014-04-25 Thread Roland Scheidegger
Am 25.04.2014 19:41, schrieb Ilia Mirkin: > Also pipe through [IU]MUL_HI, MAD, and lower ldexp. This provides > coverage of all new ARB_gpu_shader5 functions except uaddCarry, > usubBorrow and interpolateAt*. > > Signed-off-by: Ilia Mirkin > --- > src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 70

Re: [Mesa-dev] [PATCH 1/4] gallium: add new opcodes for ARB_gs5 bit manipulation support

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 5:02 PM, Roland Scheidegger wrote: > Am 25.04.2014 19:41, schrieb Ilia Mirkin: >> Signed-off-by: Ilia Mirkin >> --- >> src/gallium/auxiliary/tgsi/tgsi_info.c | 8 + >> src/gallium/docs/source/tgsi.rst | 51 >> ++ >> src/gall

Re: [Mesa-dev] [PATCH 0/4] gallium: add new opcodes needed for ARB_gs5

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 4:43 PM, Roland Scheidegger wrote: > Am 25.04.2014 19:41, schrieb Ilia Mirkin: >> This is enough to catch up to core mesa, with the exception of >> uaddCarry/usubBorrow -- those will require some thought. I don't like the way >> they were done in core mesa, so I may redo it

Re: [Mesa-dev] [PATCH 1/4] gallium: add new opcodes for ARB_gs5 bit manipulation support

2014-04-25 Thread Roland Scheidegger
Am 25.04.2014 19:41, schrieb Ilia Mirkin: > Signed-off-by: Ilia Mirkin > --- > src/gallium/auxiliary/tgsi/tgsi_info.c | 8 + > src/gallium/docs/source/tgsi.rst | 51 > ++ > src/gallium/include/pipe/p_shader_tokens.h | 11 ++- > 3 files changed,

[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 --- Comment #14 from farmboy0+freedesk...@googlemail.com --- Created attachment 97995 --> https://bugs.freedesktop.org/attachment.cgi?id=97995&action=edit patch in git email format -- You are receiving this mail because: You are the assignee f

Re: [Mesa-dev] [PATCH 0/4] gallium: add new opcodes needed for ARB_gs5

2014-04-25 Thread Roland Scheidegger
Am 25.04.2014 19:41, schrieb Ilia Mirkin: > This is enough to catch up to core mesa, with the exception of > uaddCarry/usubBorrow -- those will require some thought. I don't like the way > they were done in core mesa, so I may redo it differently. (Will start a > discussion on that topic after I've

Re: [Mesa-dev] [PATCH v3 00/11] Map support for GBM

2014-04-25 Thread Emil Velikov
On 08/04/14 21:28, Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > Changes from previous version: > > - make it clearer that the interface is optional; > > - fix other issues raised on the last review round. > Hi Ander, I have picked up patch 1,2,3 and 5, annota

[Mesa-dev] [PATCH v3 0/2] clover: Add clEnqueue{Marker, Barrier}WithWaitList

2014-04-25 Thread EdB
changed according to Francisco Jerez's comments (v2 won't compil, sorry about that) EdB (2): clover: Update opencl headers to version 1.2 clover: Add clEnqueue{Marker,Barrier}WithWaitList include/CL/cl.h| 332 +- include/CL/cl.hpp

[Mesa-dev] [PATCH 2/2] clover: Add clEnqueue{Marker, Barrier}WithWaitList

2014-04-25 Thread EdB
--- src/gallium/state_trackers/clover/api/dispatch.cpp | 4 +- src/gallium/state_trackers/clover/api/event.cpp| 48 ++ 2 files changed, 42 insertions(+), 10 deletions(-) diff --git a/src/gallium/state_trackers/clover/api/dispatch.cpp b/src/gallium/state_trackers/clover/a

Re: [Mesa-dev] [PATCH 0/4] gallium: add new opcodes needed for ARB_gs5

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 3:36 PM, Matt Turner wrote: > On Fri, Apr 25, 2014 at 10:41 AM, Ilia Mirkin wrote: >> This is enough to catch up to core mesa, with the exception of >> uaddCarry/usubBorrow -- those will require some thought. I don't like the way >> they were done in core mesa, so I may re

Re: [Mesa-dev] [PATCH 0/4] gallium: add new opcodes needed for ARB_gs5

2014-04-25 Thread Matt Turner
On Fri, Apr 25, 2014 at 10:41 AM, Ilia Mirkin wrote: > This is enough to catch up to core mesa, with the exception of > uaddCarry/usubBorrow -- those will require some thought. I don't like the way > they were done in core mesa, so I may redo it differently. (Will start a > discussion on that topi

Re: [Mesa-dev] [PATCH] glsl: Use properly typed arguments for bitfieldInsert.

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 3:24 PM, Matt Turner wrote: > bitfieldInsert takes scalar integers for its last two arguments. Since > bitfieldInsert is lowered on i965 to two instructions that have more > flexible arguments, I didn't notice when I wrote this. Reviewed-by: Ilia Mirkin Thanks! > --- >

[Mesa-dev] [PATCH] glsl: Use properly typed arguments for bitfieldInsert.

2014-04-25 Thread Matt Turner
bitfieldInsert takes scalar integers for its last two arguments. Since bitfieldInsert is lowered on i965 to two instructions that have more flexible arguments, I didn't notice when I wrote this. --- src/glsl/lower_instructions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

Re: [Mesa-dev] [PATCH 2/4] glsl: fix bitfield_insert use when doing ldexp lowering

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 2:44 PM, Ilia Mirkin wrote: > On Fri, Apr 25, 2014 at 2:38 PM, Matt Turner wrote: >> On Fri, Apr 25, 2014 at 10:41 AM, Ilia Mirkin wrote: >>> bitfield_insert expects glsl_type::int_type arguments, not uint vectors >>> >>> Signed-off-by: Ilia Mirkin >>> --- >>> >>> Identi

Re: [Mesa-dev] [PATCH 05/16] glx/dri2: rework __DRIextension handling

2014-04-25 Thread Kristian Høgsberg
On Fri, Apr 25, 2014 at 11:40 AM, Emil Velikov wrote: > On 25/04/14 19:02, Kristian Høgsberg wrote: >> On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov >> wrote: >>> Use a const arrays with the extensions, and use the correct one at >>> runtime. This removes the assumption that the dri2_screen has

Re: [Mesa-dev] libxatracker: automake and spurious symbols

2014-04-25 Thread Emil Velikov
On 05/04/14 13:45, Emil Velikov wrote: > On 05/04/14 13:27, Kai Wasserbäch wrote: >> Dear Emil, >> Emil Velikov schrieb am 05.04.2014 04:10: >>> On 01/04/14 01:32, Emil Velikov wrote: > [snip] >>> >>> https://github.com/evelikov/Mesa/ branch exported-symbol-cleanup >>> >>> Feel free to checkout and

[Mesa-dev] [PATCH v2 0/2] clover: Add clEnqueue{Marker, Barrier}WithWaitList

2014-04-25 Thread EdB
changed according to Francisco Jerez's comments *** BLURB HERE *** EdB (2): clover: Update opencl headers to version 1.2 clover: add clEnqueue{Marker,Barrier}WithWaitList include/CL/cl.h| 332 +- include/CL/cl.hpp | 1210

[Mesa-dev] [PATCH 2/2] clover: add clEnqueue{Marker, Barrier}WithWaitList

2014-04-25 Thread EdB
--- src/gallium/state_trackers/clover/api/dispatch.cpp | 4 +- src/gallium/state_trackers/clover/api/event.cpp| 46 ++ 2 files changed, 41 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers/clover/api/dispatch.cpp b/src/gallium/state_trackers/clover/ap

[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 --- Comment #13 from Matt Turner --- (In reply to comment #11) > Created attachment 97975 [details] [review] > patch to fix build for libOpenVG Would you attach a git-formatted patch, preferably with your real name, etc? I'll commit that. -- Y

Re: [Mesa-dev] [PATCH 00/18] improvements for GL_KHR_debug support

2014-04-25 Thread Emil Velikov
On 25/04/14 11:41, Chia-I Wu wrote: > Hi, > > This series cleans up GL_KHR_debug support, fixes message control for some > corner cases, and makes one enhancement: cheap > glPushDebugGroup/glPopDebugGroup for command stream annotation. > > Patch 1-12 refactor the code. There should be no functio

[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 --- Comment #12 from farmboy0+freedesk...@googlemail.com --- Chia-I Wu is right. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@lists.freed

[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 --- Comment #11 from farmboy0+freedesk...@googlemail.com --- Created attachment 97975 --> https://bugs.freedesktop.org/attachment.cgi?id=97975&action=edit patch to fix build for libOpenVG -- You are receiving this mail because: You are the ass

Re: [Mesa-dev] [PATCH 2/4] glsl: fix bitfield_insert use when doing ldexp lowering

2014-04-25 Thread Ilia Mirkin
On Fri, Apr 25, 2014 at 2:38 PM, Matt Turner wrote: > On Fri, Apr 25, 2014 at 10:41 AM, Ilia Mirkin wrote: >> bitfield_insert expects glsl_type::int_type arguments, not uint vectors >> >> Signed-off-by: Ilia Mirkin >> --- >> >> Identical to the patch I sent out last night. Without it ldexp lower

Re: [Mesa-dev] [PATCH v2 1/1] clover: Align kernel argument sizes to nearest power of 2

2014-04-25 Thread Francisco Jerez
Jan Vesely writes: > v2: use a new variable for aligned size > add comment > make both vars const > only use the aligned value in argument constructors > fix comment typo > > Signed-off-by: Jan Vesely Looks good to me, thanks, Reviewed-by: Francisco Jerez > --- > .../state_tr

Re: [Mesa-dev] [PATCH 05/16] glx/dri2: rework __DRIextension handling

2014-04-25 Thread Emil Velikov
On 25/04/14 19:02, Kristian Høgsberg wrote: > On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov > wrote: >> Use a const arrays with the extensions, and use the correct one at >> runtime. This removes the assumption that the dri2_screen has a >> fixed size dri extension list and avoids the individual

Re: [Mesa-dev] [PATCH 2/4] glsl: fix bitfield_insert use when doing ldexp lowering

2014-04-25 Thread Matt Turner
On Fri, Apr 25, 2014 at 10:41 AM, Ilia Mirkin wrote: > bitfield_insert expects glsl_type::int_type arguments, not uint vectors > > Signed-off-by: Ilia Mirkin > --- > > Identical to the patch I sent out last night. Without it ldexp lowering > (without bfi lowering) causes assertion failures in the

Re: [Mesa-dev] [PATCH 03/16] dri/radeon: use a const __DRIextension array

2014-04-25 Thread Emil Velikov
On 25/04/14 18:53, Kristian Høgsberg wrote: > On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov > wrote: >> Rather than keeping a separate and unused copy of the screen extensions >> within the radeon screen, use a constant array that can be used directly >> with __DRIscreen. > > The copy in the rad

Re: [Mesa-dev] [PATCH 01/16] dri_interface: Update __DRItexBufferExtensionRec to version 3

2014-04-25 Thread Emil Velikov
On 25/04/14 18:44, Kristian Høgsberg wrote: > On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov > wrote: >> With commit e59fa4c46c8("dri2: release texture image.") we updated the >> extension without bumping the version number. The patch itself added an >> interface required to enable texture_from_pi

[Mesa-dev] [PATCH v2 1/1] clover: Align kernel argument sizes to nearest power of 2

2014-04-25 Thread Jan Vesely
v2: use a new variable for aligned size add comment make both vars const only use the aligned value in argument constructors fix comment typo Signed-off-by: Jan Vesely --- .../state_trackers/clover/llvm/invocation.cpp | 23 +++--- 1 file changed, 16 insertion

[Mesa-dev] [PATCH V2] mesa: Use location VERT_ATTRIB_GENERIC0 for vertex attribute 0

2014-04-25 Thread Anuj Phogat
In OpenGL 3.1 attribute 0 becomes non-magic, just like in OpenGL ES 2.0. Earlier versions of OpenGL used attribute 0 exclusively for vertex position. V2: Add a utility function _mesa_attr_zero_aliases_vertex() in varray.h Fixes 4 Khronos OpenGL CTS failures: glGetVertexAttrib depth24_basic de

[Mesa-dev] [PATCH V3] glsl: Allow overlapping locations for vertex input attributes

2014-04-25 Thread Anuj Phogat
Currently overlapping locations of input variables are not allowed for all the shader types in OpenGL and OpenGL ES. >From OpenGL ES 3.0 spec, page 56: "Binding more than one attribute name to the same location is referred to as aliasing, and is not permitted in OpenGL ES Shading Language

Re: [Mesa-dev] [PATCH 13/14] mesa: Split the shader texture update logic from fixed function.

2014-04-25 Thread Eric Anholt
Marek Olšák writes: > Have you considered disabling creating the fallback textures for > hardware which can return the correct constant for a texture fetch if > a texture isn't bouńd? No, I hadn't. Given that nobody ever intentionally executes with a fallback texture, do we care to reduce its o

[Mesa-dev] [PATCH V2] mesa: Fix querying location of nth element of an array variable

2014-04-25 Thread Anuj Phogat
This patch makes changes to the behavior of glGetAttribLocation(), glGetFragDataLocation() and glGetFragDataIndex() functions. Code changes handle a case described in following example: shader program: layout(location = 1)in vec4[4] a; void main() { } Currently, glGetAttribLocation("a") returns

Re: [Mesa-dev] [PATCH 12/16] glx/indirect: explicitly assign struct components for glx_*_vtable

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > ... to improve readability of code. Set indirect_screen_vtable as a static > const. > > Signed-off-by: Emil Velikov This and patches 13-16 Reviewed-by: Kristian Høgsberg > --- > src/glx/indirect_glx.c | 26 ++ >

Re: [Mesa-dev] [PATCH 11/16] glx/apple: explicitly assign struct components for glx_*_vtable

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > ... to improve readability of code. Set applegl_screen_vtable as a static > const. > > Signed-off-by: Emil Velikov Reviewed-by: Kristian Høgsberg > --- > src/glx/applegl_glx.c | 25 ++--- > 1 file changed, 14 insertio

Re: [Mesa-dev] mesa: Kill _ReallyEnabled, improve _mesa_update_state() performance.

2014-04-25 Thread Matt Turner
On Thu, Apr 24, 2014 at 5:50 PM, Eric Anholt wrote: > Here's a series I got built when profiling to see why glamor's FBO cache > is necessary. It turns out the worst spots in the no-cache profile were > present even with the cache, and they were about walking the 96 texture > units we've got thes

Re: [Mesa-dev] [PATCH 10/16] egl_dri: rework dri extension handling

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > Use designated initialisers, and store the extensions pointers as const. > > The loader extensions __DRIdri2LoaderExtension and __DRIswrastLoaderExtension > are setup by the platform backends so they should not be constified. > > Signed-off-by

Re: [Mesa-dev] [PATCH 0/3] i915/i965: Depth buffer format fixes

2014-04-25 Thread Eric Anholt
ville.syrj...@linux.intel.com writes: > From: Ville Syrjälä > > I was a bit annoyed when chromium-bsu stopped rendering the spinning > title text on my gen2 machine. So I bisected it down and found the > problem with the renderbuffer code overwriting the selected depth > buffer format. > > This s

Re: [Mesa-dev] [PATCH 05/16] glx/dri2: rework __DRIextension handling

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > Use a const arrays with the extensions, and use the correct one at > runtime. This removes the assumption that the dri2_screen has a > fixed size dri extension list and avoids the individual assignment > of each extension at runtime. This cha

Re: [Mesa-dev] [PATCH 4/4] softpipe: add tgsi_exec support for new bit manipulation opcodes

2014-04-25 Thread Brian Paul
The subject line should be "tgsi: ..." On 04/25/2014 11:41 AM, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 188 + src/gallium/auxiliary/util/u_math.h| 11 ++ 2 files changed, 199 insertions(+) diff --git a

Re: [Mesa-dev] [PATCH 04/16] st/dri: cleanup dri extension handling

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > Explicitly set the version that is implemented, as that may differ > from the one defined in dri_interface.h. Use designated initialisers > and constify whereever possible. > > Note: __DRIimageExtension should not be made const as it's modifie

Re: [Mesa-dev] [PATCH 03/16] dri/radeon: use a const __DRIextension array

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > Rather than keeping a separate and unused copy of the screen extensions > within the radeon screen, use a constant array that can be used directly > with __DRIscreen. The copy in the radeon screen isn't unused, that's where the array is built

Re: [Mesa-dev] [PATCH 02/16] drivers/dri: cleanup dri extension instantiation

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > Uniformly use the typecasted extension name, constify extension instances > and use designated initialisers. Set the implemented version of the > extension, over the one defined in dri_infertace.h. Patch covers the > following extensions: > >

Re: [Mesa-dev] [PATCH 01/16] dri_interface: Update __DRItexBufferExtensionRec to version 3

2014-04-25 Thread Kristian Høgsberg
On Sun, Mar 16, 2014 at 6:48 AM, Emil Velikov wrote: > With commit e59fa4c46c8("dri2: release texture image.") we updated the > extension without bumping the version number. The patch itself added an > interface required to enable texture_from_pixmap on certain platforms. > > The new code was effe

[Mesa-dev] [PATCH 0/4] gallium: add new opcodes needed for ARB_gs5

2014-04-25 Thread Ilia Mirkin
This is enough to catch up to core mesa, with the exception of uaddCarry/usubBorrow -- those will require some thought. I don't like the way they were done in core mesa, so I may redo it differently. (Will start a discussion on that topic after I've given it more thought.) I ran the various piglit

[Mesa-dev] [PATCH 3/4] mesa/st: implement new bit manipulation opcodes

2014-04-25 Thread Ilia Mirkin
Also pipe through [IU]MUL_HI, MAD, and lower ldexp. This provides coverage of all new ARB_gpu_shader5 functions except uaddCarry, usubBorrow and interpolateAt*. Signed-off-by: Ilia Mirkin --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 70 ++ 1 file changed, 53 inser

[Mesa-dev] [PATCH 4/4] softpipe: add tgsi_exec support for new bit manipulation opcodes

2014-04-25 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 188 + src/gallium/auxiliary/util/u_math.h| 11 ++ 2 files changed, 199 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 5

[Mesa-dev] [PATCH 2/4] glsl: fix bitfield_insert use when doing ldexp lowering

2014-04-25 Thread Ilia Mirkin
bitfield_insert expects glsl_type::int_type arguments, not uint vectors Signed-off-by: Ilia Mirkin --- Identical to the patch I sent out last night. Without it ldexp lowering (without bfi lowering) causes assertion failures in the next mesa/st patch. src/glsl/lower_instructions.cpp | 6 +++---

[Mesa-dev] [PATCH 1/4] gallium: add new opcodes for ARB_gs5 bit manipulation support

2014-04-25 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/tgsi/tgsi_info.c | 8 + src/gallium/docs/source/tgsi.rst | 51 ++ src/gallium/include/pipe/p_shader_tokens.h | 11 ++- 3 files changed, 69 insertions(+), 1 deletion(-) diff --git a/src/gallium

[Mesa-dev] [Bug 76976] [llvmpipe] lp_rast.c:165:lp_rast_clear_color: Assertion `util_format_is_pure_uint(format)' failed.

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76976 Roland Scheidegger changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 0/7] gallium: catch up with mesa's system values

2014-04-25 Thread Roland Scheidegger
Am 24.04.2014 05:48, schrieb Ilia Mirkin: > This adds support for gl_SampleMaskIn and gl_InvocationID system values to > gallium, mesa/st, and nvc0. The relevant piglit tests pass, except 2 > gl_InvocationID-related ones that fail due to the linking being delayed by > mesa/st (I think). I wrote a l

Re: [Mesa-dev] [PATCH 18/18] mesa: overhaul debug namespace support

2014-04-25 Thread Brian Paul
On 04/25/2014 04:42 AM, Chia-I Wu wrote: _mesa_HashTable is not well-suited for us: it locks a mutex unnecessarily and it does not accept 0 as the key (and have branches to handle 1 specially). What we really need is a sparse array. Whether it should be implemented as a hash table, a list, or a

Re: [Mesa-dev] [PATCH 13/18] mesa: use accessors for struct gl_debug_state

2014-04-25 Thread Brian Paul
On 04/25/2014 04:42 AM, Chia-I Wu wrote: When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log debug messages from other threads. That requires gl_debug_state to be protected by a mutex, even when it is a context state. While we do not spawn threads in Mesa yet, this commit ma

Re: [Mesa-dev] [PATCH 00/18] improvements for GL_KHR_debug support

2014-04-25 Thread Brian Paul
On 04/25/2014 04:41 AM, Chia-I Wu wrote: Hi, This series cleans up GL_KHR_debug support, fixes message control for some corner cases, and makes one enhancement: cheap glPushDebugGroup/glPopDebugGroup for command stream annotation. Patch 1-12 refactor the code. There should be no functional dif

Re: [Mesa-dev] [PATCH 0/4] gallium, nv50, nvc0: add ARB_sample_shading

2014-04-25 Thread Roland Scheidegger
Looks reasonable to me (didn't look at the nv parts). Reviewed-by: Roland Scheidegger Am 25.04.2014 02:28, schrieb Ilia Mirkin: > Thanks. Roland, mind taking a look, IIRC you're the one who had the > most objections last time around. > > On Thu, Apr 24, 2014 at 5:44 PM, Marek Olšák wrote: >> P

Re: [Mesa-dev] [PATCH] st/mesa: Fix NULL pointer dereference for incomplete framebuffers

2014-04-25 Thread Brian Paul
On 04/24/2014 08:45 PM, Michel Dänzer wrote: From: Michel Dänzer This can happen with glamor, which uses EGL_KHR_surfaceless_context and only explicitly binds GL_READ_FRAMEBUFFER for glReadPixels. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Michel Dänzer --- src/mesa/state_tracker/

Re: [Mesa-dev] [PATCH 13/14] mesa: Split the shader texture update logic from fixed function.

2014-04-25 Thread Marek Olšák
Have you considered disabling creating the fallback textures for hardware which can return the correct constant for a texture fetch if a texture isn't bouńd? Marek On Fri, Apr 25, 2014 at 2:50 AM, Eric Anholt wrote: > I want to avoid walking the entire long array texture image units, but the > o

[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 --- Comment #10 from Chia-I Wu --- (In reply to comment #3) > 144bbb7b78ecac33c62c6dc28df1747a73c4eb39 is the first bad commit > commit 144bbb7b78ecac33c62c6dc28df1747a73c4eb39 > Author: Matt Turner > Date: Sun Nov 10 19:01:58 2013 -0800 > >

[Mesa-dev] [PATCH 11/18] mesa: eliminate debug output should_log

2014-04-25 Thread Chia-I Wu
In both call sites, it could be easily replaced by direct debug_is_message_enabled calls. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 40 +++- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/src/mesa/main/errors

[Mesa-dev] [PATCH 18/18] mesa: overhaul debug namespace support

2014-04-25 Thread Chia-I Wu
_mesa_HashTable is not well-suited for us: it locks a mutex unnecessarily and it does not accept 0 as the key (and have branches to handle 1 specially). What we really need is a sparse array. Whether it should be implemented as a hash table, a list, or a bsearch()-able array requires investigation

[Mesa-dev] [PATCH 17/18] mesa: delay copying of debug groups

2014-04-25 Thread Chia-I Wu
Do not copy the debug group until it is about to be written. One likely scenario of using glPushDebugGroup/glPopDebugGroup is to enclose a sequence of GL commands and give them a human-readable description. There is no message control change in this scenario, and thus no need to copy. This also

[Mesa-dev] [PATCH 06/18] mesa: refactor debug output control_messages

2014-04-25 Thread Chia-I Wu
Move most of the code to debug_set_message_enable_all. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 113 +++-- 1 file changed, 62 insertions(+), 51 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors

[Mesa-dev] [PATCH 13/18] mesa: use accessors for struct gl_debug_state

2014-04-25 Thread Chia-I Wu
When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log debug messages from other threads. That requires gl_debug_state to be protected by a mutex, even when it is a context state. While we do not spawn threads in Mesa yet, this commit makes it easier to do when we want to. Since

[Mesa-dev] [PATCH 07/18] mesa: refactor _mesa_PushDebugGroup

2014-04-25 Thread Chia-I Wu
Move group copying to debug_push_group. Save the group message before pushing instead of after, since we will need it after popping. No functional change otherwise. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 102 + 1 file changed, 60 i

[Mesa-dev] [PATCH 15/18] mesa: clean up debug groups

2014-04-25 Thread Chia-I Wu
Add struct gl_debug_group to hold all namespaces of a debug group. Replace the 3-dimensional array, Namespaces, in struct gl_debug_state by a 1-dimensional array of type struct gl_debug_groups. Turn the 4-dimensional array, Defaults, in struct gl_debug_state to a 1-dimensional array in struct gl_

[Mesa-dev] [PATCH 10/18] mesa: eliminate debug output control_app_messages

2014-04-25 Thread Chia-I Wu
Merge control_app_messages with the only caller. Eliminate set_message_state and control_messages too as they are unused. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 83 +++--- 1 file changed, 17 insertions(+), 66 dele

[Mesa-dev] [PATCH 02/18] mesa: refactor debug output should_log

2014-04-25 Thread Chia-I Wu
Move the message filtering logic to debug_is_message_enabled. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 111 +++-- 1 file changed, 61 insertions(+), 50 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main

[Mesa-dev] [PATCH 03/18] mesa: refactor debug output set_message_state

2014-04-25 Thread Chia-I Wu
Move message state update to debug_set_message_enable. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 70 -- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors

[Mesa-dev] [PATCH 16/18] mesa: clean up debug output namespace handling

2014-04-25 Thread Chia-I Wu
Add functions to provide these operations on a struct gl_debug_namespace: init():initialize the namespace copy():copy all elements from one namespace to another clear(): clear all elements (to free the memories) set(): set the value of an element set_all(): set the value of

[Mesa-dev] [PATCH 14/18] mesa: clean up debug message log

2014-04-25 Thread Chia-I Wu
Remove NextMsgLength, and move members of struct gl_debug_state that belong to the message log to a new struct, gl_debug_log. Rename gl_debug_msg to gl_debug_message. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 78 +++--- 1 file changed, 42

[Mesa-dev] [PATCH 00/18] improvements for GL_KHR_debug support

2014-04-25 Thread Chia-I Wu
Hi, This series cleans up GL_KHR_debug support, fixes message control for some corner cases, and makes one enhancement: cheap glPushDebugGroup/glPopDebugGroup for command stream annotation. Patch 1-12 refactor the code. There should be no functional difference. These patches are also part of the

[Mesa-dev] [PATCH 12/18] mesa: eliminate debug output message_insert

2014-04-25 Thread Chia-I Wu
Add validate_length, and call it together with log_msg directly instead of message_insert. No functional change. v2: make sure length is non-negative (i.e., known) before calling validate_length, noted by Timothy Arceri Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 45 +

[Mesa-dev] [PATCH 01/18] mesa: refactor _mesa_get_debug_state

2014-04-25 Thread Chia-I Wu
Move gl_debug_state allocation to a new function, debug_create. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 62 ++ 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/ma

[Mesa-dev] [PATCH 08/18] mesa: refactor _mesa_PopDebugGroup and _mesa_free_errors_data

2014-04-25 Thread Chia-I Wu
Replace free_errors_data by debug_clear_group. Add debug_pop_group and debug_destroy for use in _mesa_PopDebugGroup and _mesa_free_errors_data respectively. No funcitonal change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 125 + 1 file

[Mesa-dev] [PATCH 04/18] mesa: refactor debug out log_msg

2014-04-25 Thread Chia-I Wu
Move message logging to debug_log_message. Replace store_message_details by debug_message_store. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 134 +++-- 1 file changed, 75 insertions(+), 59 deletions(-) diff --git a/sr

[Mesa-dev] [PATCH 09/18] mesa: eliminate debug output get_msg

2014-04-25 Thread Chia-I Wu
Merge get_msg with the only caller. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 99 +- 1 file changed, 26 insertions(+), 73 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index f363049..2

[Mesa-dev] [PATCH 05/18] mesa: refactor debug output get_msg

2014-04-25 Thread Chia-I Wu
Move message fetching to debug_fetch_message and message deletion to debug_delete_messages. No functional change. Signed-off-by: Chia-I Wu --- src/mesa/main/errors.c | 58 -- 1 file changed, 47 insertions(+), 11 deletions(-) diff --git a/src/mesa

[Mesa-dev] [Bug 77917] VG/openvg.h defines non existent functions

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77917 Frederic Romagne changed: What|Removed |Added CC||frederic.roma...@gmail.com -- You ar

Re: [Mesa-dev] [PATCH 1/1] clover: Align kernel argument sizes to nearest power of 2

2014-04-25 Thread Francisco Jerez
Jan Vesely writes: > Signed-off-by: Jan Vesely > --- > > Hi, > > this is the alternative (power of 2) approach to hadling kernel args, > as discussed in this thread: > http://lists.freedesktop.org/archives/mesa-dev/2014-April/thread.html#58209 > > Jan > > src/gallium/state_trackers/clover/llvm/

[Mesa-dev] [Bug 77917] New: VG/openvg.h defines non existent functions

2014-04-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77917 Priority: medium Bug ID: 77917 Assignee: mesa-dev@lists.freedesktop.org Summary: VG/openvg.h defines non existent functions Severity: normal Classification: Unclassified OS:

  1   2   >