radv/video: don't supply an 8-bit format for a 10-bit dpb.
authorDave Airlie <airlied@redhat.com>
Tue, 30 May 2023 05:06:11 +0000 (15:06 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 05:34:06 +0000 (05:34 +0000)
commitb8191cd6030bad0c66c04305df066bdd2e4067a0
tree9b6f19b6010e0255c1fd2fe4ecd8754b981bdfdc
parentb2e1e17ff66a525e71c873e2ddb8a2db9c0c2615
radv/video: don't supply an 8-bit format for a 10-bit dpb.

The firmware can write an 8-bit output buffer, but still needs
a 10-bit dpb allocation.

This also puts the 8-bit format after the 10-bit format though
apps should be smart enough to pick the correct one.

Reviewed-by: Lynne <dev@lynne.ee>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23476>
src/amd/vulkan/radv_video.c