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

Nicolai Hähnle nhaehnle at gmail.com
Mon Jun 26 09:02:59 UTC 2017


On 25.06.2017 03:31, Timothy Arceri wrote:
> 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. */

The comment should say 16 bytes or vec4.

Cheers,
Nicolai

> +   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! */
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list