mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radv: Fix alignment for linear video decode dst images
OPTIMAL is actually linear for VCN4 and older, so this needs to check the surface flags instead. Fixes:2d06b43292("radv: Enable tiling for video images on VCN5") Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36669> (cherry picked from commit26d98d283b)
This commit is contained in:
parent
27df52f558
commit
89bf7e685e
2 changed files with 3 additions and 3 deletions
|
|
@ -4594,7 +4594,7 @@
|
|||
"description": "radv: Fix alignment for linear video decode dst images",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2d06b432920637f6c40bb4f7650afcacfcf23a00",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1184,8 +1184,8 @@ radv_image_create_layout(struct radv_device *device, struct radv_image_create_in
|
|||
if (!device->vk.enabled_features.videoMaintenance1)
|
||||
assert(profile_list);
|
||||
|
||||
const bool is_linear =
|
||||
image->vk.tiling == VK_IMAGE_TILING_LINEAR || image->planes[0].surface.modifier == DRM_FORMAT_MOD_LINEAR;
|
||||
const bool is_linear = RADEON_SURF_GET(image->planes[0].surface.flags, MODE) == RADEON_SURF_MODE_LINEAR_ALIGNED ||
|
||||
image->planes[0].surface.modifier == DRM_FORMAT_MOD_LINEAR;
|
||||
|
||||
/* Only linear decode target requires the custom alignment. */
|
||||
if (is_linear || !(image->vk.usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue