panfrost: Don't set NO_BLEND_PACKS on Bifrost
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 25 Jan 2022 22:58:14 +0000 (17:58 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Jan 2022 01:45:09 +0000 (01:45 +0000)
It doesn't make sense on Bifrost -- the only consumer of the quirk is
pan_lower_framebuffer, a Midgard-only pass.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14724>

src/panfrost/include/panfrost-quirks.h

index 6eb6c02..8b37223 100644 (file)
 /* Does this GPU support anisotropic filtering? */
 #define HAS_ANISOTROPIC (1 << 11)
 
-/* Quirk collections common to particular uarchs */
-
-#define BIFROST_QUIRKS NO_BLEND_PACKS
-
 static inline unsigned
 panfrost_get_quirks(unsigned gpu_id, unsigned gpu_revision)
 {
@@ -70,18 +66,17 @@ panfrost_get_quirks(unsigned gpu_id, unsigned gpu_revision)
                 return 0;
 
         case 0x6000: /* G71 */
-                return BIFROST_QUIRKS;
+                return 0;
 
         case 0x6221: /* G72 */
                 /* Anisotropic filtering is supported from r0p3 onwards */
-                return BIFROST_QUIRKS
-                        | (gpu_revision >= 0x30 ? HAS_ANISOTROPIC : 0);
+                return (gpu_revision >= 0x30 ? HAS_ANISOTROPIC : 0);
 
         case 0x7093: /* G31 */
         case 0x7211: /* G76 */
         case 0x7212: /* G52 */
         case 0x7402: /* G52r1 */
-                return BIFROST_QUIRKS | HAS_ANISOTROPIC;
+                return HAS_ANISOTROPIC;
 
         default:
                 unreachable("Unknown Panfrost GPU ID");