mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radv: Use compute copy for emulated formats
These aren't supported by the hardware, so better to use the compute copy implementation with these formats. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25594>
This commit is contained in:
parent
0638fa5156
commit
3d803d7a2e
1 changed files with 2 additions and 1 deletions
|
|
@ -714,7 +714,8 @@ radv_sdma_supports_image(const struct radv_device *device, const struct radv_ima
|
|||
{
|
||||
const struct radv_physical_device *pdev = radv_device_physical(device);
|
||||
|
||||
/* TODO: Handle emulated formats and verify sparse image support. */
|
||||
if (radv_is_format_emulated(pdev, image->vk.format))
|
||||
return false;
|
||||
|
||||
if (!pdev->info.sdma_supports_sparse &&
|
||||
(image->vk.create_flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue