mesa: add get support for TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB
authorDave Airlie <airlied@gmail.com>
Sat, 3 Nov 2012 10:41:55 +0000 (20:41 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 8 Nov 2012 23:24:41 +0000 (09:24 +1000)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/get.c
src/mesa/main/get_hash_params.py

index afae089321b6514a6aa0a14e1f4efc68b7459753..39709b808949e73bc1b44df85829ff429f8e16d9 100644 (file)
@@ -335,6 +335,7 @@ EXTRA_EXT(ARB_blend_func_extended);
 EXTRA_EXT(ARB_uniform_buffer_object);
 EXTRA_EXT(ARB_timer_query);
 EXTRA_EXT(ARB_map_buffer_alignment);
+EXTRA_EXT(ARB_texture_cube_map_array);
 
 static const int
 extra_NV_primitive_restart[] = {
@@ -667,6 +668,7 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu
    case GL_TEXTURE_BINDING_CUBE_MAP_ARB:
    case GL_TEXTURE_BINDING_RECTANGLE_NV:
    case GL_TEXTURE_BINDING_EXTERNAL_OES:
+   case GL_TEXTURE_BINDING_CUBE_MAP_ARRAY:
       unit = ctx->Texture.CurrentUnit;
       v->value_int =
         ctx->Texture.Unit[unit].CurrentTex[d->offset]->Name;
index 376df09ee1f3484d4c2d6dc65c7b1d12be6a441e..ac9c79ceaff4390993f4e03393486b36f3e6daf6 100644 (file)
@@ -688,6 +688,9 @@ descriptor=[
 
 # GL_ARB_map_buffer_alignment
   [ "MIN_MAP_BUFFER_ALIGNMENT", "CONTEXT_INT(Const.MinMapBufferAlignment), extra_ARB_map_buffer_alignment" ],
+
+# GL_ARB_texture_cube_map_array
+  [ "TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_ARRAY_INDEX, extra_ARB_texture_cube_map_array" ],
 ]}
 
 ]