radeonsi: consider DBG(NO_TILING) when filtering modifiers
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30257>
This commit is contained in:
committed by
Marge Bot
parent
94f2b3f7bc
commit
a55b9c0c60
@@ -1610,7 +1610,8 @@ si_modifier_supports_resource(struct pipe_screen *screen,
|
||||
struct si_screen *sscreen = (struct si_screen *)screen;
|
||||
uint32_t max_width, max_height;
|
||||
|
||||
if (templ->bind & PIPE_BIND_LINEAR && modifier != DRM_FORMAT_MOD_LINEAR)
|
||||
if (((templ->bind & PIPE_BIND_LINEAR) || sscreen->debug_flags & DBG(NO_TILING)) &&
|
||||
modifier != DRM_FORMAT_MOD_LINEAR)
|
||||
return false;
|
||||
|
||||
ac_modifier_max_extent(&sscreen->info, modifier, &max_width, &max_height);
|
||||
|
||||
Reference in New Issue
Block a user