radv: Use radv_format_to_pipe_format instead of vk_format_to_pipe_format

Fixes: 9af11bf306 ("radv: add initial DCC support on GFX12")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34274>
(cherry picked from commit 3ef0ee2241)
This commit is contained in:
David Rosca 2025-03-29 14:18:21 +01:00 committed by Eric Engestrom
parent 1032290a4e
commit c1ad3d28c0
2 changed files with 2 additions and 2 deletions

View file

@ -11044,7 +11044,7 @@
"description": "radv: Use radv_format_to_pipe_format instead of vk_format_to_pipe_format",
"nominated": false,
"nomination_type": 2,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": "9af11bf306c4b67c434044a7ba2907a5c6df5542",
"notes": null

View file

@ -1202,7 +1202,7 @@ radv_image_create_layout(struct radv_device *device, struct radv_image_create_in
if (pdev->info.gfx_level >= GFX12 &&
(!radv_surface_has_scanout(device, &create_info) || pdev->info.gfx12_supports_display_dcc)) {
const enum pipe_format format = vk_format_to_pipe_format(image->vk.format);
const enum pipe_format format = radv_format_to_pipe_format(image->vk.format);
/* Set DCC tilings for both color and depth/stencil. */
image->planes[plane].surface.u.gfx9.color.dcc_number_type = ac_get_cb_number_type(format);