summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-02-02 20:56:48 +0100
committerNicolai Hähnle <[email protected]>2017-04-05 10:31:01 +0200
commit94227684c49a03c91d2ae4d978fa0ae72084e013 (patch)
tree144b77ee656c16b0dc6e19220e0aafd39388e6d1 /src
parentd085c7ce7c7da3441ea6320c4eb690d665d8c8dc (diff)
mesa: implement SPARSE_BUFFER_PAGE_SIZE_ARB
Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/get.c1
-rw-r--r--src/mesa/main/get_hash_params.py3
-rw-r--r--src/mesa/main/mtypes.h3
3 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 397f4a3547e..cf3ee6385ef 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -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[] = {
diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py
index 3b67d097988..f6ffb4c84fe 100644
--- a/src/mesa/main/get_hash_params.py
+++ b/src/mesa/main/get_hash_params.py
@@ -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
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 262f8048e87..e2ef6fd61b4 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -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;
};