lima: disable Z16 format
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 14 Mar 2020 23:33:00 +0000 (16:33 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Mar 2020 08:36:17 +0000 (08:36 +0000)
Unfortunately we don't know how to reload Z16 buffers yet and blob
is using Z24 for dEQP tests that need depth reload.

Reviewed-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4197>

src/gallium/drivers/lima/lima_format.c
src/gallium/drivers/lima/lima_screen.c

index 126a9a5c59c85e3972250ce2cb8e83670f79a17c..5fe7e406b31849f72b8dc02ea003e6051887dadc 100644 (file)
@@ -83,8 +83,6 @@ static const struct lima_format lima_format_table[] = {
    LIMA_FORMAT(B4G4R4A4_UNORM,     BGRA_4444, B4G4R4A4, false, 0x8444),
    LIMA_FORMAT(Z24_UNORM_S8_UINT,  Z24S8,     Z24S8,    false, 0x0000),
    LIMA_FORMAT(Z24X8_UNORM,        Z24S8,     Z24S8,    false, 0x0000),
-   /* Blob uses L16 for Z16 */
-   LIMA_FORMAT(Z16_UNORM,          L16,       Z16,      false, 0x0000),
    LIMA_FORMAT(L16_UNORM,          L16,       NONE,     false, 0x0000),
    LIMA_FORMAT(L8_UNORM,           L8,        NONE,     false, 0x0000),
    LIMA_FORMAT(A16_UNORM,          A16,       NONE,     false, 0x0000),
index 16c9fefcf0404b56f4f6d8a9c419f4b67883a8ce..1a6ff22dc447526029edf52a5216f39518418fa8 100644 (file)
@@ -312,7 +312,6 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
 
    if (usage & PIPE_BIND_DEPTH_STENCIL) {
       switch (format) {
-      case PIPE_FORMAT_Z16_UNORM:
       case PIPE_FORMAT_Z24_UNORM_S8_UINT:
       case PIPE_FORMAT_Z24X8_UNORM:
          break;