iris: drop stencil handling now that u_transfer_helper does it
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Aug 2018 10:28:24 +0000 (03:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_resource.c

index 3c2e3848a1e10d26db568abb68937893f6b6cae9..444619ac46c20feb27f895f4426e6639fd2799ee 100644 (file)
@@ -293,13 +293,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
    enum pipe_format pfmt = templ->format;
    res->internal_format = pfmt;
 
-   if (util_format_is_depth_and_stencil(pfmt)) {
-      struct pipe_resource t = *templ;
-      t.format = PIPE_FORMAT_S8_UINT;
-      res->base.next =
-         iris_resource_create_with_modifiers(pscreen, &t, NULL, 0);
-      pfmt = util_format_get_depth_only(pfmt);
-   }
+   /* Should be handled by u_transfer_helper */
+   assert(!util_format_is_depth_and_stencil(pfmt));
 
    enum isl_format isl_format = iris_isl_format_for_pipe_format(pfmt);
    assert(isl_format != ISL_FORMAT_UNSUPPORTED);