Mesa (main): anv: don't expose EXT_border_color_swizzle on gfx7
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 15 07:56:26 UTC 2022
Module: Mesa
Branch: main
Commit: b0cd7bc8c14ad38e300bc039cc2283dde03f1e87
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0cd7bc8c14ad38e300bc039cc2283dde03f1e87
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Tue Jun 14 13:16:08 2022 +0300
anv: don't expose EXT_border_color_swizzle on gfx7
This requires EXT_custom_border_color which isn't supported on gfx7.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: fbcf65bfea52 ("anv: VK_EXT_border_color_swizzle")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17025>
---
src/intel/vulkan/anv_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index ec0ff836687..0adcf7cf0a7 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -254,7 +254,7 @@ get_device_extensions(const struct anv_physical_device *device,
.KHR_workgroup_memory_explicit_layout = true,
.KHR_zero_initialize_workgroup_memory = true,
.EXT_4444_formats = true,
- .EXT_border_color_swizzle = true,
+ .EXT_border_color_swizzle = device->info.ver >= 8,
.EXT_buffer_device_address = device->has_a64_buffer_access,
.EXT_calibrated_timestamps = device->has_reg_timestamp,
.EXT_color_write_enable = true,
More information about the mesa-commit
mailing list