diff options
author | Dave Airlie <[email protected]> | 2016-12-27 23:27:14 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-12-28 22:43:17 +0000 |
commit | de7dd4d621ca2654a1091457c514b50c50ba92dd (patch) | |
tree | eecaeb3f9575343e66ed18f4ee827a8be6798212 /src/compiler/spirv/nir_spirv.h | |
parent | 464b23b1f289e8f9ede7c9d817c1678bbef0ad8d (diff) |
spirv: add interface for drivers to define support extensions.
I expect over time the struct contents will change as all
drivers support stuff etc, but for now this should be a good
starting point.
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/spirv/nir_spirv.h')
-rw-r--r-- | src/compiler/spirv/nir_spirv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h index 500f2cb94df..d959f3f227c 100644 --- a/src/compiler/spirv/nir_spirv.h +++ b/src/compiler/spirv/nir_spirv.h @@ -41,10 +41,16 @@ struct nir_spirv_specialization { uint32_t data; }; +struct nir_spirv_supported_extensions { + bool storage_image_extended_formats; + bool image_ms_array; +}; + nir_function *spirv_to_nir(const uint32_t *words, size_t word_count, struct nir_spirv_specialization *specializations, unsigned num_specializations, gl_shader_stage stage, const char *entry_point_name, + const struct nir_spirv_supported_extensions *ext, const nir_shader_compiler_options *options); #ifdef __cplusplus |