Mesa (master): st/mesa: expose ARB_ES2_compatibility if GL_FIXED vertex format is supported

Marek Olšák mareko at kemper.freedesktop.org
Sat Apr 30 03:03:48 PDT 2011


Module: Mesa
Branch: master
Commit: fdff7e635b91988f9c926a91f89f47bc24e81aa1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdff7e635b91988f9c926a91f89f47bc24e81aa1

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Apr 28 20:01:02 2011 +0200

st/mesa: expose ARB_ES2_compatibility if GL_FIXED vertex format is supported

Tested with softpipe and llvmpipe.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/state_tracker/st_extensions.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index a5324df..030bbc7 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -515,6 +515,12 @@ void st_init_extensions(struct st_context *st)
       ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
    }
 
+   if (screen->is_format_supported(screen, PIPE_FORMAT_R32G32B32A32_FIXED,
+                                   PIPE_BUFFER, 0,
+                                   PIPE_BIND_VERTEX_BUFFER)) {
+      ctx->Extensions.ARB_ES2_compatibility = GL_TRUE;
+   }
+
    if (screen->get_shader_param(screen, PIPE_SHADER_GEOMETRY, PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) {
 #if 0 /* XXX re-enable when GLSL compiler again supports geometry shaders */
       ctx->Extensions.ARB_geometry_shader4 = GL_TRUE;



More information about the mesa-commit mailing list