From: Juston Li Date: Wed, 7 Jun 2023 22:22:24 +0000 (-0700) Subject: venus: enable VK_EXT_border_color_swizzle X-Git-Tag: upstream/23.3.3~7290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e4c93886d628584a76fc3bf9e65fc92058e1496;p=platform%2Fupstream%2Fmesa.git venus: enable VK_EXT_border_color_swizzle Signed-off-by: Juston Li Part-of: --- diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c index 7f69aba..9b88e7b 100644 --- a/src/virtio/vulkan/vn_physical_device.c +++ b/src/virtio/vulkan/vn_physical_device.c @@ -191,6 +191,7 @@ vn_physical_device_init_features(struct vn_physical_device *physical_dev) VN_ADD_PNEXT_EXT(feats2, SHADER_CLOCK_FEATURES_KHR, feats->shader_clock, exts->KHR_shader_clock); /* EXT */ + VN_ADD_PNEXT_EXT(feats2, BORDER_COLOR_SWIZZLE_FEATURES_EXT, feats->border_color_swizzle, exts->EXT_border_color_swizzle); VN_ADD_PNEXT_EXT(feats2, CONDITIONAL_RENDERING_FEATURES_EXT, feats->conditional_rendering, exts->EXT_conditional_rendering); VN_ADD_PNEXT_EXT(feats2, CUSTOM_BORDER_COLOR_FEATURES_EXT, feats->custom_border_color, exts->EXT_custom_border_color); VN_ADD_PNEXT_EXT(feats2, DEPTH_CLIP_CONTROL_FEATURES_EXT, feats->depth_clip_control, exts->EXT_depth_clip_control); @@ -1149,6 +1150,7 @@ vn_physical_device_get_passthrough_extensions( .KHR_shader_clock = true, /* EXT */ + .EXT_border_color_swizzle = true, .EXT_calibrated_timestamps = true, .EXT_conditional_rendering = true, .EXT_conservative_rasterization = true, @@ -1799,6 +1801,7 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice, CASE(SHADER_CLOCK_FEATURES_KHR, shader_clock); /* EXT */ + CASE(BORDER_COLOR_SWIZZLE_FEATURES_EXT, border_color_swizzle); CASE(CONDITIONAL_RENDERING_FEATURES_EXT, conditional_rendering); CASE(CUSTOM_BORDER_COLOR_FEATURES_EXT, custom_border_color); CASE(DEPTH_CLIP_CONTROL_FEATURES_EXT, depth_clip_control); diff --git a/src/virtio/vulkan/vn_physical_device.h b/src/virtio/vulkan/vn_physical_device.h index 837196e..4e4bccc 100644 --- a/src/virtio/vulkan/vn_physical_device.h +++ b/src/virtio/vulkan/vn_physical_device.h @@ -36,6 +36,7 @@ struct vn_physical_device_features { VkPhysicalDeviceShaderClockFeaturesKHR shader_clock; /* EXT */ + VkPhysicalDeviceBorderColorSwizzleFeaturesEXT border_color_swizzle; VkPhysicalDeviceConditionalRenderingFeaturesEXT conditional_rendering; VkPhysicalDeviceCustomBorderColorFeaturesEXT custom_border_color; VkPhysicalDeviceDepthClipControlFeaturesEXT depth_clip_control;