gallium/radeon: never choose a linear tiling for DB surfaces

Just for consistency. This is actually not a problem, because both addrlib
and radeon check and fix this.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2016-04-10 22:48:48 +02:00
parent b7878146c4
commit 2d7be5d37e
1 changed files with 6 additions and 7 deletions

View File

@ -943,13 +943,12 @@ static unsigned r600_choose_tiling(struct r600_common_screen *rscreen,
force_tiling = true; force_tiling = true;
/* Handle common candidates for the linear mode. /* Handle common candidates for the linear mode.
* Compressed textures must always be tiled. */ * Compressed textures and DB surfaces must always be tiled.
if (!force_tiling && !util_format_is_compressed(templ->format)) { */
/* Not everything can be linear, so we cannot enforce it if (!force_tiling && !util_format_is_compressed(templ->format) &&
* for all textures. */ (!util_format_is_depth_or_stencil(templ->format) ||
if ((rscreen->debug_flags & DBG_NO_TILING) && templ->flags & R600_RESOURCE_FLAG_FLUSHED_DEPTH)) {
(!util_format_is_depth_or_stencil(templ->format) || if (rscreen->debug_flags & DBG_NO_TILING)
!(templ->flags & R600_RESOURCE_FLAG_FLUSHED_DEPTH)))
return RADEON_SURF_MODE_LINEAR_ALIGNED; return RADEON_SURF_MODE_LINEAR_ALIGNED;
/* Tiling doesn't work with the 422 (SUBSAMPLED) formats on R600+. */ /* Tiling doesn't work with the 422 (SUBSAMPLED) formats on R600+. */