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>
This commit is contained in:
@@ -1211,7 +1211,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);
|
||||
|
||||
Reference in New Issue
Block a user