mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
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 commit3ef0ee2241)
This commit is contained in:
parent
1032290a4e
commit
c1ad3d28c0
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue