Revert "intel/isl: Only create a CCS buffer if the image supports rendering"
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 5 Jul 2017 18:42:00 +0000 (11:42 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 7 Jul 2017 21:24:58 +0000 (14:24 -0700)
This reverts commit 8aaa13467dc289d35dc7900ab9fab9a7689c4178, 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

src/intel/isl/isl.c

index bbbdb19df22105dfc5a2904b956a030ed62c20b2..ba56d86c1789ec847a815b6d10d04874dbd0d30c 100644 (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. */