iris: Let isl decide the supported tiling in more situations
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 19 Apr 2019 23:28:01 +0000 (16:28 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 17 Oct 2019 21:47:23 +0000 (14:47 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Suggested-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/gallium/drivers/iris/iris_resource.c

index cd411c3e6b8d2e384521f7c498c14e703cf769ca..eac329d9ba7a06be9289d886a34f075491bc6dc6 100644 (file)
@@ -719,21 +719,6 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
          return NULL;
       }
 
-      /* No modifiers - we can select our own tiling. */
-
-      if (has_depth) {
-         /* Depth must be Y-tiled */
-         tiling_flags = ISL_TILING_Y0_BIT;
-      } else if (templ->format == PIPE_FORMAT_S8_UINT) {
-         /* Stencil must be W-tiled */
-         tiling_flags = ISL_TILING_W_BIT;
-      } else if (templ->target == PIPE_BUFFER ||
-                 templ->target == PIPE_TEXTURE_1D ||
-                 templ->target == PIPE_TEXTURE_1D_ARRAY) {
-         /* Use linear for buffers and 1D textures */
-         tiling_flags = ISL_TILING_LINEAR_BIT;
-      }
-
       /* Use linear for staging buffers */
       if (templ->usage == PIPE_USAGE_STAGING ||
           templ->bind & (PIPE_BIND_LINEAR | PIPE_BIND_CURSOR) )