aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-05-19 14:49:10 +0200
committerSamuel Pitoiset <[email protected]>2020-05-25 08:51:10 +0200
commitb3c0f82841a29e191d07028391bfe687ae01b7df (patch)
tree4eeb45488c6e84ec29d62c7f7b94fcdee632334d /src/amd
parent2e265b94a2b7a8b681a95d512ad991d6ae3fb69a (diff)
radv: advertise VK_AMD_texture_gather_bias_lod
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5147>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_extensions.py1
-rw-r--r--src/amd/vulkan/radv_shader.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py
index a5113eb08c9..91c733f02ce 100644
--- a/src/amd/vulkan/radv_extensions.py
+++ b/src/amd/vulkan/radv_extensions.py
@@ -179,6 +179,7 @@ EXTENSIONS = [
Extension('VK_AMD_shader_fragment_mask', 1, True),
Extension('VK_AMD_shader_info', 1, True),
Extension('VK_AMD_shader_trinary_minmax', 1, True),
+ Extension('VK_AMD_texture_gather_bias_lod', 1, True),
Extension('VK_GOOGLE_decorate_string', 1, True),
Extension('VK_GOOGLE_hlsl_functionality1', 1, True),
Extension('VK_NV_compute_shader_derivatives', 1, True),
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 7dfa89d65e9..fb5dc1b0376 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -357,6 +357,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
.caps = {
.amd_fragment_mask = true,
.amd_gcn_shader = true,
+ .amd_image_gather_bias_lod = true,
.amd_image_read_write_lod = true,
.amd_shader_ballot = device->physical_device->use_shader_ballot,
.amd_shader_explicit_vertex_parameter = true,