radv: set missing FMASK surface counters for MSAA MRTs

This has been removed few years ago by mistake but it's important for
performance. This is mostly for addrlib to determine tile_swizzle which
is used to make memory access faster with multiple render targets.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31797>
This commit is contained in:
Samuel Pitoiset 2024-10-23 09:03:10 +02:00
parent aa19bf3d93
commit 72871d8330

View file

@ -1073,6 +1073,7 @@ radv_get_ac_surf_info(struct radv_device *device, const struct radv_image *image
VK_IMAGE_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT)) &&
image->vk.tiling != VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT) {
info.surf_index = &device->image_mrt_offset_counter;
info.fmask_surf_index = &device->fmask_mrt_offset_counter;
}
return info;