summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-07-23 11:26:55 +1000
committerTimothy Arceri <[email protected]>2017-08-22 11:29:27 +1000
commit334a27afa75d31af40b265219ba504cbb8c81255 (patch)
treeb48cff7e9a89f7d52293b0443d66109cdc1252ca /src
parent5e253fe338c2473553cfb57d3ba85e26e90e1a4e (diff)
mesa: add UseSTD430AsDefaultPacking constant
This will be used to enable the STD430 layout as the default for UBOs and SSBOs with layouts of shared/packed rather than STD140. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/mtypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 74392f8f1f9..592cb48ca3c 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3844,6 +3844,15 @@ struct gl_constants
GLboolean DisableVaryingPacking;
/**
+ * UBOs and SSBOs can be packed tightly by the OpenGL implementation when
+ * layout is set as shared (the default) or packed. However most Mesa drivers
+ * just use STD140 for these layouts. This flag allows drivers to use STD430
+ * for packed and shared layouts which allows arrays to be packed more
+ * tightly.
+ */
+ bool UseSTD430AsDefaultPacking;
+
+ /**
* Should meaningful names be generated for compiler temporary variables?
*
* Generally, it is not useful to have the compiler generate "meaningful"