isl: Don't force linear for 1d surfaces in gen7_filter_tiling()

gen7_filter_tiling() should filter out only tiling flags that are
incompatible with the surface. It shouldn't make performance decisions,
such as forcing linear for 1D; that's the role of the caller.
This commit is contained in:
Chad Versace 2016-01-05 11:35:44 -08:00
parent 8135786605
commit 8d6f0a1b80
1 changed files with 0 additions and 8 deletions

View File

@ -265,14 +265,6 @@ gen7_filter_tiling(const struct isl_device *dev,
*flags &= (ISL_TILING_ANY_Y_MASK | ISL_TILING_W_BIT);
}
/* For 1D surfaces, use linear when possible. 1D surfaces (array and
* non-array) do not benefit from tiling. In fact, it leads to less
* efficient use of memory due to tile alignment.
*/
if (info->dim == ISL_SURF_DIM_1D && (*flags & ISL_TILING_LINEAR_BIT)) {
*flags = ISL_TILING_LINEAR_BIT;
}
/* workaround */
if (ISL_DEV_GEN(dev) == 7 &&
gen7_format_needs_valign2(dev, info->format) &&