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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user