radv: export alpha-to-coverage via MRTZ for ESO on GFX11

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27236>
This commit is contained in:
Samuel Pitoiset
2024-01-19 15:00:27 +01:00
committed by Marge Bot
parent 6a2b264526
commit dc1b16c010

View File

@@ -111,6 +111,9 @@ radv_shader_object_init_graphics(struct radv_shader_object *shader_obj, struct r
gfx_state.dynamic_line_rast_mode = true;
gfx_state.dynamic_patch_control_points = true;
if (device->physical_device->rad_info.gfx_level >= GFX11)
gfx_state.ms.alpha_to_coverage_via_mrtz = true;
const VkShaderRequiredSubgroupSizeCreateInfoEXT *const subgroup_size =
vk_find_struct_const(pCreateInfo->pNext, SHADER_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT);
@@ -415,6 +418,9 @@ radv_shader_object_create_linked(VkDevice _device, uint32_t createInfoCount, con
gfx_state.dynamic_line_rast_mode = true;
gfx_state.dynamic_patch_control_points = true;
if (device->physical_device->rad_info.gfx_level >= GFX11)
gfx_state.ms.alpha_to_coverage_via_mrtz = true;
for (unsigned i = 0; i < createInfoCount; i++) {
const VkShaderCreateInfoEXT *pCreateInfo = &pCreateInfos[i];
gl_shader_stage s = vk_to_mesa_shader_stage(pCreateInfo->stage);