[Mesa-dev] st/vega: Use vgapi. commit causes a link regression on Gentoo

2014-04-21 Thread stompdagg...@yahoo.com
Greetings, I have a Gentoo system using mesa from git, since the following commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75143ef05576ee9f25ee176bc28c3c4d03705bf5 all pkgs on my system which depends on openvg cannot be upgraded because all the vg* funcs where replaced by vega* funcs.

[Mesa-dev] [PATCH] radeonsi: Fix calculation of number of banks for SI

2014-04-21 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com The way cik_num_banks() was calculating the index only makes sense for the CIK specific macrotile mode array. For SI, we need to use the tile mode index directly. This happened to work most of the time because most of the SI tiling modes use the same

Re: [Mesa-dev] [PATCH] radeonsi: Fix calculation of number of banks for SI

2014-04-21 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Mon, Apr 21, 2014 at 11:27 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com The way cik_num_banks() was calculating the index only makes sense for the CIK specific macrotile mode array. For SI, we

Re: [Mesa-dev] Broadcom VideoCore IV

2014-04-21 Thread Rob Clark
On Sat, Apr 19, 2014 at 9:32 AM, Mohamed MEDIOUNI mohamedmedioun...@gmail.com wrote: The VideoCore IV GPU has 14 cores: - 2 VPU Cores : Full-blown cores which run the ThreadX RTOS. There is an experimental LLVM port to it and also the VBCC C89 compiler(which has'nt time support so classic

[Mesa-dev] [PATCH] glsl: Expand matrix flip optimization pass to cover more cases.

2014-04-21 Thread Iago Toral Quiroga
Currently it only considers the cases of gl_ModelViewProjectionMatrix and gl_TextureMatrix. The same optimization can be done also for gl_ModelViewMatrix, gl_ProjectionMatrix and the corresponding inverses. --- src/glsl/opt_flip_matrices.cpp | 118 +++-- 1 file

[Mesa-dev] clover : clEnqueueMarkerWithWaitList and clEnqueueBarrierWithWaitList

2014-04-21 Thread EdB
Hello I would be interested in developing for clover. As a first exercise I implement clEnqueueMarkerWithWaitList and clEnqueueBarrierWithWaitList needed for OpenCL 1.2 This patch is more a proof of concept than a real one. Please tell me if I get it wrong.diff --git

Re: [Mesa-dev] [PATCH 04/13] st/mesa: remove trailing NULL colorbuffers

2014-04-21 Thread Brian Paul
On 04/20/2014 07:59 PM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_framebuffer.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c

Re: [Mesa-dev] [PATCH] radeonsi: Fix calculation of number of banks for SI

2014-04-21 Thread Alex Deucher
On Mon, Apr 21, 2014 at 5:27 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com The way cik_num_banks() was calculating the index only makes sense for the CIK specific macrotile mode array. For SI, we need to use the tile mode index directly. This

Re: [Mesa-dev] [PATCH 05/13] r600g: fix edge flags and layered rendering on R600-R700

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com We forgot to set these bits. Cc: 10.1 mesa-sta...@lists.freedesktop.org Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/r600/r600_state.c | 6 -- 1

Re: [Mesa-dev] [PATCH 08/13] r600g: fix flushing on RV670, RS780, RS880 again

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/r600/r600_hw_context.c | 9 + 1 file changed, 9

Re: [Mesa-dev] [PATCH 07/13] r600g: fix MSAA resolve on R6xx when the destination is 1D-tiled

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/radeon/r600_texture.c | 6 ++ 1 file changed, 6

Re: [Mesa-dev] [PATCH 09/13] r600g: fix buffer copying on R600-R700

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com This fixes broken rendering in DOTA 2. Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/r600/r600_blit.c |

Re: [Mesa-dev] [PATCH 10/13] r600g: fix for HTILE on R6xx

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/radeon/r600_texture.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [Mesa-dev] [PATCH 11/13] r600g: fix for broken CULL_FRONT behavior on R6xx

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/r600/evergreen_state.c | 24 -

Re: [Mesa-dev] [PATCH 12/13] r600g: fix for an MSAA hang on RV770

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- src/gallium/drivers/r600/evergreen_state.c | 5 -

Re: [Mesa-dev] [PATCH 13/13] r600g: fix hang on RV740 by using DX_RASTERIZATION_KILL instead of SX_MISC

2014-04-21 Thread Alex Deucher
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Changing SX_MISC hangs RV740. When we're at it, let's use DX_RASTERIZATION_KILL on all R700 and later chipsets. Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org Reviewed-by: Alex

[Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Ilia Mirkin
Hello, I've been giving some thought to catching up with core mesa on ARB_gs5 support. One of the things that ARB_gs5 introduces are new operations: genType frexp(genType x, out genIType exp); genType ldexp(genType x, in genIType exp); genIType bitfieldExtract(genIType value,

Re: [Mesa-dev] fbo-generatemipmap-array regression after 5a2f8b2c48a14

2014-04-21 Thread Brian Paul
On 04/19/2014 08:51 PM, Ilia Mirkin wrote: Hi Brian, I bisected a nv50/nvc0 regression in fbo-generatemipmap-array to commit 5a2f8b2c48a14. The commit itself seems correct, but I double-checked my bisection results (at least on nv50, I only assume that it's the same commit causing the nvc0

Re: [Mesa-dev] [Mesa-stable] [PATCH V2] glsl: Allow overlapping locations for vertex input attributes

2014-04-21 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: On 03/24/2014 04:33 PM, Anuj Phogat wrote: 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

Re: [Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Matt Turner
On Mon, Apr 21, 2014 at 8:54 AM, Ilia Mirkin imir...@alum.mit.edu wrote: Hello, I've been giving some thought to catching up with core mesa on ARB_gs5 support. One of the things that ARB_gs5 introduces are new operations: genType frexp(genType x, out genIType exp); genType

[Mesa-dev] [PATCH 1/2] i965/disasm: Remove tables with obvious mappings.

2014-04-21 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_disasm.c | 11 +-- src/mesa/drivers/dri/i965/gen8_disasm.c | 4 +--- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 88bf24e..0bc7a64 100644 ---

[Mesa-dev] [PATCH 2/2] i965/disasm: Fix s/xoo/xor/ typo.

2014-04-21 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 0bc7a64..e54172c 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++

Re: [Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Ilia Mirkin
On Mon, Apr 21, 2014 at 12:56 PM, Matt Turner matts...@gmail.com wrote: On Mon, Apr 21, 2014 at 8:54 AM, Ilia Mirkin imir...@alum.mit.edu wrote: Hello, I've been giving some thought to catching up with core mesa on ARB_gs5 support. One of the things that ARB_gs5 introduces are new operations:

[Mesa-dev] [Bug 77582] [r600g] ogl-samples GL3.2 and GL3.3 tests doesn't run without overriding GL/GLSL version

2014-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77582 Benjamin Bellec b.bel...@gmail.com changed: What|Removed |Added Resolution|WONTFIX |NOTOURBUG ---

Re: [Mesa-dev] [PATCH 2/2] i965/disasm: Fix s/xoo/xor/ typo.

2014-04-21 Thread Kenneth Graunke
On 04/21/2014 10:01 AM, Matt Turner wrote: --- src/mesa/drivers/dri/i965/brw_disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 0bc7a64..e54172c 100644 ---

Re: [Mesa-dev] [Mesa-stable] [PATCH] mesa: Add an error condition in glGetFramebufferAttachmentParameteriv()

2014-04-21 Thread Anuj Phogat
On Fri, Apr 18, 2014 at 4:17 PM, Ian Romanick i...@freedesktop.org wrote: On 03/11/2014 05:33 PM, Anuj Phogat wrote: From the OpenGL 4.4 spec page 275: If pname is FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, param will contain the format of components of the specified attachment, one of

Re: [Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Matt Turner
On Mon, Apr 21, 2014 at 10:20 AM, Ilia Mirkin imir...@alum.mit.edu wrote: On Mon, Apr 21, 2014 at 12:56 PM, Matt Turner matts...@gmail.com wrote: On Mon, Apr 21, 2014 at 8:54 AM, Ilia Mirkin imir...@alum.mit.edu wrote: Hello, I've been giving some thought to catching up with core mesa on

[Mesa-dev] [PATCH] i965: Use uint16_t for control/src index tables.

2014-04-21 Thread Matt Turner
No need to use 32-bits to store 15 and 12. --- src/mesa/drivers/dri/i965/brw_eu_compact.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c index

Re: [Mesa-dev] [PATCH] i965: Use uint16_t for control/src index tables.

2014-04-21 Thread Anuj Phogat
On Mon, Apr 21, 2014 at 10:38 AM, Matt Turner matts...@gmail.com wrote: No need to use 32-bits to store 15 and 12. --- src/mesa/drivers/dri/i965/brw_eu_compact.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[Mesa-dev] [Bug 77582] [r600g] ogl-samples GL3.2 and GL3.3 tests doesn't run without overriding GL/GLSL version

2014-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77582 --- Comment #6 from Benjamin Bellec b.bel...@gmail.com --- FYI, I looked closely to the code. The Mesa error came from ogl-samples file framework/glew.c, line 9535 (extStart = glGetString(GL_EXTENSIONS);). This GLEW file is the official glew.c

Re: [Mesa-dev] [PATCH V3 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-04-21 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: OpenGL 4.0 spec, page 306 suggests an INVALID_OPERATION in glGetTexImage if : format is one of the integer formats in table 3.3 and the internal format of the texture image is not integer, or format is not one of the integer formats in

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3] i965: Put an assertion to check valid varying_to_slot[varying]

2014-04-21 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: decl |= buffer SO_DECL_OUTPUT_BUFFER_SLOT_SHIFT; + assert(vue_map-varying_to_slot[varying] = 0); decl |= vue_map-varying_to_slot[varying] I have the same question here as in my previous message to another patch. Could this new

Re: [Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Roland Scheidegger
Am 21.04.2014 17:54, schrieb Ilia Mirkin: Hello, I've been giving some thought to catching up with core mesa on ARB_gs5 support. One of the things that ARB_gs5 introduces are new operations: genType frexp(genType x, out genIType exp); genType ldexp(genType x, in genIType exp);

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3] i965: Put an assertion to check valid varying_to_slot[varying]

2014-04-21 Thread Anuj Phogat
On Mon, Apr 21, 2014 at 11:48 AM, Carl Worth cwo...@cworth.org wrote: Anuj Phogat anuj.pho...@gmail.com writes: decl |= buffer SO_DECL_OUTPUT_BUFFER_SLOT_SHIFT; + assert(vue_map-varying_to_slot[varying] = 0); decl |= vue_map-varying_to_slot[varying] I have the same

Re: [Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Ilia Mirkin
On Mon, Apr 21, 2014 at 2:52 PM, Roland Scheidegger srol...@vmware.com wrote: Am 21.04.2014 17:54, schrieb Ilia Mirkin: Hello, I've been giving some thought to catching up with core mesa on ARB_gs5 support. One of the things that ARB_gs5 introduces are new operations: genType

[Mesa-dev] [PATCH] svga: move draw debug code into separate function

2014-04-21 Thread Brian Paul
--- src/gallium/drivers/svga/svga_draw.c | 258 ++ 1 file changed, 135 insertions(+), 123 deletions(-) diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index fa0cac4..366a2dc 100644 ---

Re: [Mesa-dev] [Mesa-stable] [PATCH V3 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-04-21 Thread Anuj Phogat
On Mon, Apr 21, 2014 at 11:42 AM, Carl Worth cwo...@cworth.org wrote: Anuj Phogat anuj.pho...@gmail.com writes: OpenGL 4.0 spec, page 306 suggests an INVALID_OPERATION in glGetTexImage if : format is one of the integer formats in table 3.3 and the internal format of the texture image

Re: [Mesa-dev] ARB_gs5 new instruction support in gallium

2014-04-21 Thread Roland Scheidegger
Am 21.04.2014 21:10, schrieb Ilia Mirkin: On Mon, Apr 21, 2014 at 2:52 PM, Roland Scheidegger srol...@vmware.com wrote: Am 21.04.2014 17:54, schrieb Ilia Mirkin: Hello, I've been giving some thought to catching up with core mesa on ARB_gs5 support. One of the things that ARB_gs5 introduces

Re: [Mesa-dev] [PATCH] svga: move draw debug code into separate function

2014-04-21 Thread Charmaine Lee
- Original Message - --- src/gallium/drivers/svga/svga_draw.c | 258 ++ 1 file changed, 135 insertions(+), 123 deletions(-) diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index fa0cac4..366a2dc 100644

[Mesa-dev] [Bug 77693] Mesa software rasterizers - decompress textures on load to improve performance

2014-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77693 --- Comment #2 from Roland Scheidegger srol...@vmware.com --- Ideally you'd just say you don't support s3tc, and leave it up to the application to not use such textures. I suspect it wouldn't get you very far though today (though I know some apps

[Mesa-dev] Clover Image Writes and CS Lockups

2014-04-21 Thread Dorrington, Albert
I have been working on integrating image support into a hybrid Clover build. I managed to get 2D image reads working a week or so ago, and have moved on to implementing 2D image writes. I have an issue where when writing 4x4 images, things are working fine. When I move on to larger images, I

[Mesa-dev] [PATCH] i965: Make Broadwell HiZ path arrange for TC flushes.

2014-04-21 Thread Kenneth Graunke
HiZ operations make the depth/render caches out of sync with the sampler caches. We need to arrange for a TC flush to happen before the target buffer is used by the sampler. Calling brw_render_cache_set_add_bo makes that happen. On previous generations, brw_blorp_exec took care of flushing the

Re: [Mesa-dev] [Mesa-stable] [PATCH V2] glsl: Allow overlapping locations for vertex input attributes

2014-04-21 Thread Anuj Phogat
On Fri, Apr 18, 2014 at 4:11 PM, Ian Romanick i...@freedesktop.org wrote: On 03/24/2014 04:33 PM, Anuj Phogat wrote: 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

Re: [Mesa-dev] [PATCH] glsl: Only allow `invariant` on shader in/out between stages.

2014-04-21 Thread Chris Forbes
The FINISHME comment is a relic from another time, before shader inputs and function inputs were split. Removed. Marked for 10.0/10.1 and pushed with Ian's r-b from IRC On Mon, Apr 21, 2014 at 4:06 PM, Chris Forbes chr...@ijw.co.nz wrote: Previously this was special-cased for VS and FS; it

[Mesa-dev] [PATCH 03/19] mesa: Optimize unbind_texobj_from_texunits()

2014-04-21 Thread Fredrik Höglund
The texture can only be bound to the index that corresponds to its target, so there is no need to loop over all possible indices for every unit and checking if the texture is bound to it. --- v2: Restructure the loop to avoid using continue, and use = ~(1 index) to clear bits in

[Mesa-dev] [PATCH 00/19] Implement GL_ARB_multi_bind v2

2014-04-21 Thread Fredrik Höglund
So here is version two of the ARB_multi_bind series. This incorporates feedback from Brian, Matt and Francisco, and also fixes an issue I happened to notice myself. It occurred to me that the BindTexture driver hook doesn't have a parameter for the texture index, and that drivers might want to

[Mesa-dev] [PATCH 07/19] mesa: Add helper functions for looking up multiple textures

2014-04-21 Thread Fredrik Höglund
--- src/mesa/main/texobj.c | 21 + src/mesa/main/texobj.h | 9 + 2 files changed, 30 insertions(+) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 724bf5f..2153b94 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -61,6 +61,27 @@

[Mesa-dev] [PATCH 01/19] mesa: Store the target index in gl_texture_object

2014-04-21 Thread Fredrik Höglund
This will be used by glBindTextures() so we don't have to look it up for each texture. --- v2: Store the index as a gl_texture_index src/mesa/main/mtypes.h | 1 + src/mesa/main/texobj.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index

[Mesa-dev] [PATCH 16/19] mesa: Implement glBindVertexBuffers

2014-04-21 Thread Fredrik Höglund
--- src/mesa/main/varray.c | 114 + 1 file changed, 114 insertions(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 2f2b23f..939a80b 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1449,6 +1449,120 @@ void

[Mesa-dev] [PATCH 04/19] mesa: Add functions for doing unlocked hash table lookups

2014-04-21 Thread Fredrik Höglund
This patch adds functions for locking/unlocking the mutex, along with _mesa_HashLookupLocked() and _mesa_HashInsertLocked() that do lookups and insertions without locking the mutex. These functions will be used by the ARB_multi_bind entry points to avoid locking/unlocking the mutex for each

[Mesa-dev] [PATCH 08/19] mesa: Add a texUnit parameter to dd_function_table::BindTexture

2014-04-21 Thread Fredrik Höglund
This is for glBindTextures(), since it doesn't change the active texture unit. --- src/mesa/drivers/dri/nouveau/nouveau_texture.c | 8 src/mesa/main/dd.h | 6 +++--- src/mesa/main/texobj.c | 2 +- 3 files changed, 8 insertions(+), 8

[Mesa-dev] [PATCH 02/19] mesa: Add a _BoundTextures field in gl_texture_unit

2014-04-21 Thread Fredrik Höglund
This will be used by glBindTextures() when unbinding textures, to avoid having to loop over all the targets. --- v2: Use = ~(1 index) to clear bits src/mesa/main/mtypes.h | 6 +- src/mesa/main/texobj.c | 6 ++ src/mesa/main/texstate.c | 3 +++ 3 files changed, 14 insertions(+), 1

[Mesa-dev] [PATCH 12/19] mesa: Refactor set_ubo_binding()

2014-04-21 Thread Fredrik Höglund
Make set_ubo_binding() just update the binding, and move the code that does validation, flushes the vertices etc. into a new bind_uniform_buffer() function. --- v2: Document the difference between set_ubo_binding() and bind_uniform_buffer(). src/mesa/main/bufferobj.c | 63

[Mesa-dev] [PATCH 11/19] mesa: Add helper functions for looking up multiple buffers

2014-04-21 Thread Fredrik Höglund
--- v2: Document the difference between _mesa_lookup_bufferobj() and _mesa_multi_bind_lookup_bufferobj(). src/mesa/main/bufferobj.c | 83 +++ src/mesa/main/bufferobj.h | 14 2 files changed, 97 insertions(+) diff --git

[Mesa-dev] [PATCH 17/19] mesa: Implement glBindImageTextures

2014-04-21 Thread Fredrik Höglund
--- v2: Don't special case unbinding all textures for now. src/mesa/main/shaderimage.c | 138 1 file changed, 138 insertions(+) diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c index f77f2c6..ffb3542 100644 ---

[Mesa-dev] [PATCH 06/19] mesa: Implement glBindSamplers

2014-04-21 Thread Fredrik Höglund
--- v2: Fix a signed/unsigned comparison warning src/mesa/main/samplerobj.c | 115 + 1 file changed, 115 insertions(+) diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c index 5757240..1ffbbac 100644 --- a/src/mesa/main/samplerobj.c

[Mesa-dev] [PATCH 05/19] glapi: Add infrastructure for ARB_multi_bind

2014-04-21 Thread Fredrik Höglund
--- v2: - Space between type and * in ARB_multi_bind.xml - Fix a comment in gl_API.xml src/mapi/glapi/gen/ARB_multi_bind.xml | 53 + src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 4 +++ src/mesa/main/bufferobj.c

[Mesa-dev] [PATCH 09/19] mesa: Implement glBindTextures

2014-04-21 Thread Fredrik Höglund
--- v2: - Restructure the loop to avoid using continue - Change the targetIndex type to gl_texture_index - Fix a signed/unsigned comparison warning - Remove an uneeded assert() - Use = (1 index) to clear bits in _BoundTextures src/mesa/main/texobj.c | 117

[Mesa-dev] [PATCH 19/19] docs: Mark ARB_multi_bind as done

2014-04-21 Thread Fredrik Höglund
...and update relnotes. --- docs/GL3.txt| 2 +- docs/relnotes/10.2.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 0b663dd..4c20914 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -184,7 +184,7 @@ GL 4.4:

[Mesa-dev] [PATCH 13/19] mesa: Add _mesa_set_transform_feedback_binding()

2014-04-21 Thread Fredrik Höglund
--- src/mesa/main/transformfeedback.c | 10 +- src/mesa/main/transformfeedback.h | 14 ++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index abeb25e..a737463 100644 ---

[Mesa-dev] [PATCH 18/19] mesa: Enable ARB_multi_bind

2014-04-21 Thread Fredrik Höglund
--- 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 a72284c..941e38a 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -114,6 +114,7 @@ static const struct extension

[Mesa-dev] [PATCH 14/19] mesa: Implement glBindBuffersBase

2014-04-21 Thread Fredrik Höglund
--- src/mesa/main/bufferobj.c | 368 ++ 1 file changed, 368 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 856b246..3e45ae0 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -2790,6

[Mesa-dev] [PATCH 10/19] mesa: Refactor set_atomic_buffer_binding()

2014-04-21 Thread Fredrik Höglund
Make set_atomic_buffer_binding() just update the binding, and move the code that does validation, flushes the vertices etc. into a new bind_atomic_buffer() function. Reviewed-by: Francisco Jerez curroje...@riseup.net --- v2: Document the difference between set_atomic_buffer_binding() and

[Mesa-dev] [PATCH 15/19] mesa: Implement glBindBuffersRange

2014-04-21 Thread Fredrik Höglund
--- src/mesa/main/bufferobj.c | 370 ++ 1 file changed, 370 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 3e45ae0..23e3d7a 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -2790,6

Re: [Mesa-dev] [Mesa-stable] [PATCH V3 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-04-21 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: Previously it would fail with an error like: implementation error: bad format in _mesa_pack_rgba_span Now it'll throw out a genuine GL error. Perfect, thanks. With that, I'll happily pick the patch over to 10.1. -Carl -- carl.d.wo...@intel.com

[Mesa-dev] [Bug 77749] New: PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X

2014-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77749 Priority: medium Bug ID: 77749 Assignee: mesa-dev@lists.freedesktop.org Summary: PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X Severity: normal Classification: Unclassified

[Mesa-dev] [Bug 77749] PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X

2014-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77749 --- Comment #1 from tha...@chromium.org --- Yup, Quickdraw.h defines __QUICKDRAW__. The header gets pulled in like this (with the 10.8 sdk): .

[Mesa-dev] [Bug 77749] PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X

2014-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77749 --- Comment #2 from tha...@chromium.org --- (Clarification: gl.h defines PRAGMA_EXPORT_SUPPORTED; osmesa.h uses pragma export directly if __QUICKDRAW__ is defined) -- You are receiving this mail because: You are the assignee for the bug.

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

2014-04-21 Thread Anuj Phogat
On Fri, Apr 18, 2014 at 3:52 PM, Ian Romanick i...@freedesktop.org wrote: On 03/31/2014 02:00 PM, 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. Fixes 4 Khronos OpenGL

Re: [Mesa-dev] [PATCH] i965: Make Broadwell HiZ path arrange for TC flushes.

2014-04-21 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: HiZ operations make the depth/render caches out of sync with the sampler caches. We need to arrange for a TC flush to happen before the target buffer is used by the sampler. Calling brw_render_cache_set_add_bo makes that happen. Reviewed-by:

Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-21 Thread Giovanni Campagna
2014-04-14 22:37 GMT+02:00 Dave Airlie airl...@gmail.com: On Sat, Apr 12, 2014 at 10:25 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: Hi everyone, Some time ago I sent patches to enable the swrast driver on GBM/DRM, and I did them in the dumbest way possible (that is, having GBM

Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-21 Thread Giovanni Campagna
2014-04-15 19:19 GMT+02:00 Adam Jackson a...@redhat.com: On Sat, 2014-04-12 at 02:25 +0200, Giovanni Campagna wrote: Hi everyone, Some time ago I sent patches to enable the swrast driver on GBM/DRM, and I did them in the dumbest way possible (that is, having GBM implement the dri-swrast

[Mesa-dev] 3 element vectors in opencl 1.1+

2014-04-21 Thread Jan Vesely
Hi, I ran into a problem caused by this part of the OCL specs (6.1.5 Alignment of Types): For 3-component vector data types, the size of the data type is 4 * sizeof(component). and the corresponding part of Khronos cl_platform.h (with all types, not just float): /* cl_float3 is identical in

[Mesa-dev] [PATCH] mesa/st: enable EXT_shader_integer_mix when NativeIntegers is on

2014-04-21 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- This just maps to the UCMP instruction which should be supported by everyone who supports native integers in shaders. Tested on nv50, llvmpipe, and softpipe. src/mesa/state_tracker/st_extensions.c | 4 1 file changed, 4 insertions(+)