Revert "intel/isl: Only create a CCS buffer if the image supports rendering"

This reverts commit 8aaa13467d, which was
based on an incorrect assumption. Unlike the restriction placed on image
views in the Vulkan API, OpenGL allows you to render to texture views
whose formats differ from the originals.

Bugzilla: https://bugzilla.freedesktop.org/show_bug.cgi?id=101677
This commit is contained in:
Nanley Chery 2017-07-05 11:42:00 -07:00
parent 9ac55e8219
commit 753a7bbc84
1 changed files with 1 additions and 1 deletions

View File

@ -1699,7 +1699,7 @@ isl_surf_get_ccs_surf(const struct isl_device *dev,
if (ISL_DEV_GEN(dev) <= 8 && surf->dim != ISL_SURF_DIM_2D)
return false;
if (!isl_format_supports_rendering(dev->info, surf->format))
if (isl_format_is_compressed(surf->format))
return false;
/* TODO: More conditions where it can fail. */