mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
ac/surface: don't set the display flag for 1D textures
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15098>
This commit is contained in:
parent
2f2fca24d2
commit
cfaaa0892f
1 changed files with 2 additions and 1 deletions
|
|
@ -816,7 +816,8 @@ static bool get_display_flag(const struct ac_surf_config *config, const struct r
|
|||
if (surf->modifier != DRM_FORMAT_MOD_INVALID)
|
||||
return false;
|
||||
|
||||
if (!config->is_3d && !config->is_cube && !(surf->flags & RADEON_SURF_Z_OR_SBUFFER) &&
|
||||
if (!config->is_1d && !config->is_3d && !config->is_cube &&
|
||||
!(surf->flags & RADEON_SURF_Z_OR_SBUFFER) &&
|
||||
surf->flags & RADEON_SURF_SCANOUT && config->info.samples <= 1 && surf->blk_w <= 2 &&
|
||||
surf->blk_h == 1) {
|
||||
/* subsampled */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue