radv: advertise VK_AMD_texture_gather_bias_lod
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 May 2020 12:49:10 +0000 (14:49 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 May 2020 06:51:10 +0000 (08:51 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5147>

docs/relnotes/new_features.txt
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_shader.c

index 19895c50a5282f445a49fd9a90fed9614e90c33e..91b0a8d1b66c2f58d33c182fa35a73b9dcf673b9 100644 (file)
@@ -1,4 +1,5 @@
 GL_ARB_compute_variable_group_size on Iris.
+VK_AMD_texture_gather_bias_lod on RADV.
 VK_EXT_private_data on ANV and RADV.
 VK_EXT_custom_border_color on RADV.
 VK_EXT_pipeline_creation_cache_control on RADV.
index a5113eb08c921719d9023e1d14e5a121a38423ff..91c733f02ce2d27b3ce365846504c8cc6b1f4777 100644 (file)
@@ -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),
index 7dfa89d65e9902a6659840b10fc2e0cf8b121051..fb5dc1b03762c391a87f6331da6bf3d5603b362b 100644 (file)
@@ -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,