diff options
author | Dave Airlie <[email protected]> | 2016-12-27 23:28:05 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-12-28 22:44:40 +0000 |
commit | 44f833ab184640cf0a584476a2dd30f8912d1fba (patch) | |
tree | 13f322349daf8044dcb986c49c5d3b143fc54889 /src/amd/vulkan | |
parent | de7dd4d621ca2654a1091457c514b50c50ba92dd (diff) |
radv: denote support for extended storage image formats.
I'm sure anv has support for these as well, but this is just
a first use of the interface to allow different supported spir-v
features.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index f14e5dfdfb5..25d78058fb2 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -191,10 +191,12 @@ radv_shader_compile_to_nir(struct radv_device *device, spec_entries[i].data = *(const uint32_t *)data; } } - + const struct nir_spirv_supported_extensions supported_ext = { + .storage_image_extended_formats = true, + }; entry_point = spirv_to_nir(spirv, module->size / 4, spec_entries, num_spec_entries, - stage, entrypoint_name, &nir_options); + stage, entrypoint_name, &supported_ext, &nir_options); nir = entry_point->shader; assert(nir->stage == stage); nir_validate_shader(nir); |