projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7dd4d
)
radv: denote support for extended storage image formats.
author
Dave Airlie
<airlied@redhat.com>
Tue, 27 Dec 2016 23:28:05 +0000
(23:28 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 28 Dec 2016 22:44:40 +0000
(22:44 +0000)
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 <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_pipeline.c
b/src/amd/vulkan/radv_pipeline.c
index f14e5dfdfb54b08f46fea98f2b5105c0ba6c5187..25d78058fb206be0949e0fc3341bd6bd4ee82a3a 100644
(file)
--- 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);