[Mesa-dev] [PATCH 01/17] mesa: add PackedDriverUniformStorage const

Timothy Arceri tarceri at itsqueeze.com
Sun Jun 25 01:31:33 UTC 2017


Will be used to determine whether to take packing code paths or not.
---
 src/mesa/main/mtypes.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 0cb0024..49c8f63 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3980,20 +3980,23 @@ struct gl_constants
    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;
 
    /** When drivers are OK with mapped buffers during draw and other calls. */
    bool AllowMappedBuffersDuringExecution;
+
+   /** Is the drivers uniform storage packed or padded to 4. */
+   bool PackedDriverUniformStorage;
 };
 
 
 /**
  * Enable flag for each OpenGL extension.  Different device drivers will
  * enable different extensions at runtime.
  */
 struct gl_extensions
 {
    GLboolean dummy;  /* don't remove this! */
-- 
2.9.4



More information about the mesa-dev mailing list