nvc0: enable ASTC and ETC on GM20B
authorKarol Herbst <kherbst@redhat.com>
Mon, 13 Apr 2020 14:07:18 +0000 (16:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Apr 2020 12:08:02 +0000 (12:08 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4554>

src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 9b241c6c39e38821e6b5098f56514380591380f5..f8550be7082d570839acfd0508d4b1d39e33fe6a 100644 (file)
@@ -75,14 +75,12 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
           sample_count > 1)
          return false;
 
-   /* Restrict ETC2 and ASTC formats here. These are only supported on GK20A.
+   /* Restrict ETC2 and ASTC formats here. These are only supported on GK20A
+    * and GM20B.
     */
    if ((desc->layout == UTIL_FORMAT_LAYOUT_ETC ||
         desc->layout == UTIL_FORMAT_LAYOUT_ASTC) &&
-       /* The claim is that this should work on GM107 but it doesn't. Need to
-        * test further and figure out if it's a nouveau issue or a HW one.
-       nouveau_screen(pscreen)->class_3d < GM107_3D_CLASS &&
-        */
+       nouveau_screen(pscreen)->device->chipset != 0x12b &&
        nouveau_screen(pscreen)->class_3d != NVEA_3D_CLASS)
       return false;