mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeonsi/video: require has_image_opcodes for full modifier support
If has_image_opcodes is false, then DRM_FORMAT_MOD_LINEAR is the only
possible option.
Fixes: 7f7206f1a9 ("radeonsi/video: Allocate video buffers with modifiers")
Reviewed-by: David Rosca <david.rosca@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34241>
This commit is contained in:
parent
785df1b980
commit
a4105365e4
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ struct pipe_video_buffer *si_video_buffer_create_with_modifiers(struct pipe_cont
|
|||
if (sscreen->info.vcn_ip_version < VCN_2_2_0 &&
|
||||
AMD_FMT_MOD_GET(TILE, mod) != AMD_FMT_MOD_TILE_GFX9_64K_S)
|
||||
continue;
|
||||
|
||||
if (!sscreen->info.has_image_opcodes)
|
||||
continue;
|
||||
}
|
||||
|
||||
allowed_modifiers[allowed_modifiers_count++] = mod;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue