mesa: add gl_constants::SpirVCapabilities
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 10 Jun 2017 19:35:26 +0000 (21:35 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 30 Mar 2018 07:14:56 +0000 (09:14 +0200)
For drivers to declare which SPIR-V features they support.

v2: Don't use a pointer (Ian Romanick)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/mtypes.h

index 08db8062ec8e628ea244f618bd5d9b0a4c74f69e..9ded02500d8471814460b7ef3aea17bde649e68d 100644 (file)
@@ -4135,6 +4135,9 @@ struct gl_constants
 
    /** Is the drivers uniform storage packed or padded to 16 bytes. */
    bool PackedDriverUniformStorage;
+
+   /** GL_ARB_gl_spirv */
+   struct spirv_supported_capabilities SpirVCapabilities;
 };