mesa: implement SPARSE_BUFFER_PAGE_SIZE_ARB
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 2 Feb 2017 19:56:48 +0000 (20:56 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Apr 2017 08:31:01 +0000 (10:31 +0200)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h

index 397f4a3547e1b4a15d67b2831504738a9456a1e7..cf3ee6385ef57272fe51ccc5dbeb1bb475053e0a 100644 (file)
@@ -501,6 +501,7 @@ EXTRA_EXT(KHR_blend_equation_advanced_coherent);
 EXTRA_EXT(OES_primitive_bounding_box);
 EXTRA_EXT(ARB_compute_variable_group_size);
 EXTRA_EXT(KHR_robustness);
+EXTRA_EXT(ARB_sparse_buffer);
 
 static const int
 extra_ARB_color_buffer_float_or_glcore[] = {
index 3b67d09798852f1423fcd12f14787e1a9c47d80e..f6ffb4c84fec0332317d652523817a8a572fcf21 100644 (file)
@@ -949,6 +949,9 @@ descriptor=[
 
 # GL_ARB_compute_variable_group_size
   [ "MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB", "CONTEXT_INT(Const.MaxComputeVariableGroupInvocations), extra_ARB_compute_variable_group_size" ],
+
+# GL_ARB_sparse_buffer
+  [ "SPARSE_BUFFER_PAGE_SIZE_ARB", "CONTEXT_INT(Const.SparseBufferPageSize), extra_ARB_sparse_buffer" ],
 ]},
 
 # Enums restricted to OpenGL Core profile
index 262f8048e87d4441fbb46c646cbb0edc463ef7e9..e2ef6fd61b4b2a39c5fab21bcaa7ce69fb5bf24c 100644 (file)
@@ -3819,6 +3819,9 @@ struct gl_constants
    /** GL_OES_primitive_bounding_box */
    bool NoPrimitiveBoundingBoxOutput;
 
+   /** GL_ARB_sparse_buffer */
+   GLuint SparseBufferPageSize;
+
    /** Used as an input for sha1 generation in the on-disk shader cache */
    unsigned char *dri_config_options_sha1;
 };