Mesa (master): GL: Update glext.h to Revision 29735 (20150202).

2015-02-05 Thread Laura Ekstrand
Module: Mesa
Branch: master
Commit: 77cc799853232802627a14e5aaa408bfbed001aa
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=77cc799853232802627a14e5aaa408bfbed001aa

Author: Laura Ekstrand la...@jlekstrand.net
Date:   Wed Feb  4 16:36:24 2015 -0800

GL: Update glext.h to Revision 29735 (20150202).

Khronos modified glext.h to get rid of GL_TEXTURE_BINDING, a special enum
added for ARB_direct_state_access.  This enum was ruled unimplementable.

Reviewed-by: Brian Paul bri...@vmware.com
Tested-by: Laura Ekstrand la...@jlekstrand.net

---

 include/GL/glext.h |   13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/include/GL/glext.h b/include/GL/glext.h
index 0ca89ca..a3873a6 100644
--- a/include/GL/glext.h
+++ b/include/GL/glext.h
@@ -33,7 +33,7 @@ extern C {
 ** used to make the header, and the header can be found at
 **   http://www.opengl.org/registry/
 **
-** Khronos $Revision: 29537 $ on $Date: 2015-01-22 02:32:35 -0800 (Thu, 22 Jan 
2015) $
+** Khronos $Revision: 29735 $ on $Date: 2015-02-02 19:00:01 -0800 (Mon, 02 Feb 
2015) $
 */
 
 #if defined(_WIN32)  !defined(APIENTRY)  !defined(__CYGWIN__)  
!defined(__SCITECH_SNAP__)
@@ -53,7 +53,7 @@ extern C {
 #define GLAPI extern
 #endif
 
-#define GL_GLEXT_VERSION 20150122
+#define GL_GLEXT_VERSION 20150202
 
 /* Generated C header for:
  * API: gl
@@ -2594,7 +2594,6 @@ GLAPI void APIENTRY glBindVertexBuffers (GLuint first, 
GLsizei count, const GLui
 #define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA
 #define GL_TEXTURE_TARGET 0x1006
 #define GL_QUERY_TARGET   0x82EA
-#define GL_TEXTURE_BINDING0x82EB
 #define GL_GUILTY_CONTEXT_RESET   0x8253
 #define GL_INNOCENT_CONTEXT_RESET 0x8254
 #define GL_UNKNOWN_CONTEXT_RESET  0x8255
@@ -11402,10 +11401,10 @@ GLAPI void APIENTRY glReferencePlaneSGIX (const 
GLdouble *equation);
 
 #ifndef GL_SGIX_resample
 #define GL_SGIX_resample 1
-#define GL_PACK_RESAMPLE_SGIX 0x842C
-#define GL_UNPACK_RESAMPLE_SGIX   0x842D
-#define GL_RESAMPLE_REPLICATE_SGIX0x842E
-#define GL_RESAMPLE_ZERO_FILL_SGIX0x842F
+#define GL_PACK_RESAMPLE_SGIX 0x842E
+#define GL_UNPACK_RESAMPLE_SGIX   0x842F
+#define GL_RESAMPLE_REPLICATE_SGIX0x8433
+#define GL_RESAMPLE_ZERO_FILL_SGIX0x8434
 #define GL_RESAMPLE_DECIMATE_SGIX 0x8430
 #endif /* GL_SGIX_resample */
 

___
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit


Mesa (master): 44 new commits

2015-02-05 Thread Axel Davy
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=17abefa12be1d5e7d436bfbb082c3eba19adf26c
Author: Tiziano Bacocco tizb...@gmail.com
Date:   Fri Jan 30 13:51:44 2015 +0100

st/nine: Implement dummy vbo behaviour when vs is missing inputs

Use a dummy vertex buffer object when vs inputs have no corresponding
entries in the vertex declaration. This dummy buffer will give to the
shader float4(0,0,0,0).

This fixes several artifacts on some games.

Signed-off-by: Axel Davy axel.d...@ens.fr
Signed-off-by: Tiziano Bacocco tizb...@gmail.com

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=90585cbc9aef27904efc86dbfbd8743d27a6f599
Author: Axel Davy axel.d...@ens.fr
Date:   Sat Jan 24 17:58:28 2015 +0100

gallium/targets/d3dadapter9: Free card device

The drm fd wasn't released, causing a crash
for wine tests on nouveau, which seems to have
a bug when a lot of device descriptors are open.

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b3a9d5c9f54a0c1b1e95cc61214fd69c6777680
Author: Axel Davy axel.d...@ens.fr
Date:   Sun Jan 11 17:51:59 2015 +0100

gallium/targets/d3dadapter9: Release the pipe_screen at destruction.

We weren't releasing hal and ref, causing some issues (threads not 
released, etc)

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f50614910c40366d94964fe2c5da5772aff2f96
Author: Axel Davy axel.d...@ens.fr
Date:   Sat Jan 10 18:49:16 2015 +0100

gallium/targets/d3dadapter9: Fix device detection for render-nodes

When on a render node the unique ioctl doesn't work.

This patch drops the code to detect the device, which relied
on an ioctl, and replaces it by the mesa loader function.
The mesa loader function is more complete and won't fail for render-nodes.

Alternatively we could also have used the pipe cap to
determine the vendor and device id from the driver.

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c54d154e86cd93caed527824166f468a6c24c70
Author: Axel Davy axel.d...@ens.fr
Date:   Sat Jan 24 12:02:04 2015 +0100

st/nine: Dummy sampler should have a=1

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ac74e604bbce3b24565a9c277dc8f8fe9826e97
Author: Axel Davy axel.d...@ens.fr
Date:   Fri Jan 23 23:20:17 2015 +0100

st/nine: Fix update_framebuffer binding cbufs the pixel shader wouldn't 
render to

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee606b47800021d74732bf5155a1d7d68822fa02
Author: Axel Davy axel.d...@ens.fr
Date:   Fri Jan 23 23:51:32 2015 +0100

st/nine: Clear: better behave if rt_mask is different to the one of the 
framebuffer bound

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8d48f6f7181fa6cc7c4ff5b1c0e8883d6f8ce6d
Author: Axel Davy axel.d...@ens.fr
Date:   Wed Jan 21 08:59:05 2015 +0100

st/nine: Fix multisampling support detection

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1d369e804623663e78002c0101d668bd3d42762
Author: Tiziano Bacocco tizb...@gmail.com
Date:   Wed Jan 21 00:41:11 2015 +0100

st/nine: Fix enabled lights in stateblocks

Reviewed-by: Axel Davy axel.d...@ens.fr
Signed-off-by: Tiziano Bacocco tizb...@gmail.com

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1543defc5ea8a17cf5558bb6468031f9c29b9a15
Author: Axel Davy axel.d...@ens.fr
Date:   Mon Jan 19 17:13:57 2015 +0100

st/nine: Fix depth stencil formats bindings flags.

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=49214a3dfc4f5173e22846d92c5dd0c2b24e3638
Author: Axel Davy axel.d...@ens.fr
Date:   Mon Jan 19 16:20:35 2015 +0100

st/nine: Fix gpu memory leak in swapchain

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d538007734bb37a7f2aa865abaa225aa13799484
Author: Axel Davy axel.d...@ens.fr
Date:   Mon Jan 19 16:09:07 2015 +0100

st/nine: SetResourceResize should track nr_samples too

Reviewed-by: Tiziano Bacocco tizb...@gmail.com
Signed-off-by: Axel Davy axel.d...@ens.fr

URL:

Mesa (master): llvmpipe: Trivially advertise PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT.

2015-02-05 Thread Jose Fonseca
Module: Mesa
Branch: master
Commit: 08efcc0960ab3a0b781c4b9d630d3d97763cadb0
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=08efcc0960ab3a0b781c4b9d630d3d97763cadb0

Author: Jose Fonseca jfons...@vmware.com
Date:   Thu Feb  5 14:33:06 2015 +

llvmpipe: Trivially advertise PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT.

Nothing special needs to be done.

Even though llvmpipe copies constant (ie uniform) buffers internally, the
application is supposed to flush and sync, so all should work.

All bufferstorage piglit tests pass.

Reviewed-by: Roland Scheidegger srol...@vmware.com

---

 src/gallium/drivers/llvmpipe/lp_screen.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c 
b/src/gallium/drivers/llvmpipe/lp_screen.c
index 3b31656..507cfcf 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -246,9 +246,10 @@ llvmpipe_get_param(struct pipe_screen *screen, enum 
pipe_cap param)
   return PIPE_ENDIAN_NATIVE;
case PIPE_CAP_TGSI_VS_LAYER_VIEWPORT:
   return 1;
+   case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT:
+  return 1;
case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS:
case PIPE_CAP_TEXTURE_GATHER_SM5:
-   case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT:
case PIPE_CAP_TEXTURE_QUERY_LOD:
case PIPE_CAP_SAMPLE_SHADING:
case PIPE_CAP_TEXTURE_GATHER_OFFSETS:

___
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit


Mesa (master): st/mesa: Don' t use PIPE_USAGE_STREAM for GL_PIXEL_UNPACK_BUFFER_ARB

2015-02-05 Thread Michel Dänzer
Module: Mesa
Branch: master
Commit: a338dc01866ce50bf7555ee8dc08491c7f63b585
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a338dc01866ce50bf7555ee8dc08491c7f63b585

Author: Michel Dänzer michel.daen...@amd.com
Date:   Thu Feb  5 12:46:04 2015 +0900

st/mesa: Don't use PIPE_USAGE_STREAM for GL_PIXEL_UNPACK_BUFFER_ARB

The latter currently implies CPU read access, so only PIPE_USAGE_STAGING
can be expected to be fast.

Mesa demos src/tests/streaming_rect on Kaveri (radeonsi):

Unpatched:  42 frames in  1.023 seconds = 41.056 FPS
Patched:   615 frames in  1.000 seconds = 615.000 FPS

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88658
Cc: 10.3 10.4 mesa-sta...@lists.freedestkop.org
Reviewed-by: Marek Olšák marek.ol...@amd.com

---

 src/mesa/state_tracker/st_cb_bufferobjects.c |   11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c 
b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 55f3644..90f786c 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -256,8 +256,15 @@ st_bufferobj_data(struct gl_context *ctx,
  break;
   case GL_STREAM_DRAW:
   case GL_STREAM_COPY:
- pipe_usage = PIPE_USAGE_STREAM;
- break;
+ /* XXX: Remove this test and fall-through when we have PBO unpacking
+  * acceleration. Right now, PBO unpacking is done by the CPU, so we
+  * have to make sure CPU reads are fast.
+  */
+ if (target != GL_PIXEL_UNPACK_BUFFER_ARB) {
+pipe_usage = PIPE_USAGE_STREAM;
+break;
+ }
+ /* fall through */
   case GL_STATIC_READ:
   case GL_DYNAMIC_READ:
   case GL_STREAM_READ:

___
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit