mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radeonsi/video: Only allow 64K_S swizzle mode for VCN < 2.2
Fixes: 7f7206f1a9 ("radeonsi/video: Allocate video buffers with modifiers")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12766
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34007>
This commit is contained in:
parent
4fc4f3425a
commit
bdfb478be1
1 changed files with 10 additions and 3 deletions
|
|
@ -47,9 +47,16 @@ struct pipe_video_buffer *si_video_buffer_create_with_modifiers(struct pipe_cont
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Linear only for UVD/VCE and VCN 1.0 */
|
||||
if (sscreen->info.vcn_ip_version < VCN_2_0_0 && mod != DRM_FORMAT_MOD_LINEAR)
|
||||
continue;
|
||||
if (mod != DRM_FORMAT_MOD_LINEAR) {
|
||||
/* Linear only for UVD/VCE and VCN 1.0 */
|
||||
if (sscreen->info.vcn_ip_version < VCN_2_0_0)
|
||||
continue;
|
||||
|
||||
/* Only "S" swizzle modes supported */
|
||||
if (sscreen->info.vcn_ip_version < VCN_2_2_0 &&
|
||||
AMD_FMT_MOD_GET(TILE, mod) != AMD_FMT_MOD_TILE_GFX9_64K_S)
|
||||
continue;
|
||||
}
|
||||
|
||||
allowed_modifiers[allowed_modifiers_count++] = mod;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue