diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index a9b45eae54f..1e95851b564 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2773,7 +2773,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr bool robust_buffer_access2 = false; bool overallocation_disallowed = false; bool custom_border_colors = false; - bool vrs_enabled = false; bool attachment_vrs_enabled = false; bool image_float32_atomics = false; @@ -2816,8 +2815,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR: { const VkPhysicalDeviceFragmentShadingRateFeaturesKHR *vrs = (const void *)ext; attachment_vrs_enabled = vrs->attachmentFragmentShadingRate; - vrs_enabled = vrs->pipelineFragmentShadingRate || vrs->primitiveFragmentShadingRate || - attachment_vrs_enabled; break; } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT: { @@ -2886,12 +2883,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr device->robust_buffer_access = robust_buffer_access || robust_buffer_access2; device->robust_buffer_access2 = robust_buffer_access2; - device->adjust_frag_coord_z = - (vrs_enabled || device->vk.enabled_extensions.KHR_fragment_shading_rate || - device->force_vrs != RADV_FORCE_VRS_NONE) && - (device->physical_device->rad_info.family == CHIP_SIENNA_CICHLID || - device->physical_device->rad_info.family == CHIP_NAVY_FLOUNDER || - device->physical_device->rad_info.family == CHIP_VANGOGH); device->attachment_vrs_enabled = attachment_vrs_enabled; device->image_float32_atomics = image_float32_atomics; @@ -3062,6 +3053,13 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr "(valid values are 2x2, 2x1 and 1x2)\n"); } + device->adjust_frag_coord_z = + (device->vk.enabled_extensions.KHR_fragment_shading_rate || + device->force_vrs != RADV_FORCE_VRS_NONE) && + (device->physical_device->rad_info.family == CHIP_SIENNA_CICHLID || + device->physical_device->rad_info.family == CHIP_NAVY_FLOUNDER || + device->physical_device->rad_info.family == CHIP_VANGOGH); + device->keep_shader_info = keep_shader_info; result = radv_device_init_meta(device); if (result != VK_SUCCESS)