iris: fix Z24
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 22 Jul 2018 03:12:15 +0000 (20:12 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
This was backwards.

thanks to Jason Ekstrand for realizing that I was seeing the wrong bits.

src/gallium/drivers/iris/iris_formats.c
src/gallium/drivers/iris/iris_resource.c

index d42befb4fe2b92c51e885a24020b3b280570340c..1bfc367232f690641f734368d72d0ddb3b80330e 100644 (file)
@@ -55,8 +55,8 @@ iris_isl_format_for_pipe_format(enum pipe_format pf)
       /* XXX: separate stencil */
       [PIPE_FORMAT_Z24_UNORM_S8_UINT]       = ISL_FORMAT_R24_UNORM_X8_TYPELESS,
       //[PIPE_FORMAT_S8_UINT_Z24_UNORM]       = ISL_FORMAT_S8_UINT_Z24_UNORM,
-      //[PIPE_FORMAT_Z24X8_UNORM]             = ISL_FORMAT_R24_UNORM_X8_TYPELESS,
-      [PIPE_FORMAT_X8Z24_UNORM]             = ISL_FORMAT_R24_UNORM_X8_TYPELESS,
+      [PIPE_FORMAT_Z24X8_UNORM]             = ISL_FORMAT_R24_UNORM_X8_TYPELESS,
+      //[PIPE_FORMAT_X8Z24_UNORM]             = ISL_FORMAT_R24_UNORM_X8_TYPELESS,
       [PIPE_FORMAT_S8_UINT]                 = ISL_FORMAT_R8_UINT,
       [PIPE_FORMAT_R64_FLOAT]               = ISL_FORMAT_R64_FLOAT,
       [PIPE_FORMAT_R64G64_FLOAT]            = ISL_FORMAT_R64G64_FLOAT,
index a4e37b526a6388156e181ac99b6a1735b69b3776..e45e502667170c44314000f793a16c1968655d04 100644 (file)
@@ -235,7 +235,7 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
 
    if (util_format_is_depth_and_stencil(pfmt)) {
       // XXX: Z32S8
-      pfmt = PIPE_FORMAT_X8Z24_UNORM;
+      pfmt = PIPE_FORMAT_Z24X8_UNORM;
    }
 
    enum isl_format isl_format = iris_isl_format_for_pipe_format(pfmt);