Module: Mesa Branch: main Commit: da9d6a643af59f60981f0214055873ae8d49cbb7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=da9d6a643af59f60981f0214055873ae8d49cbb7
Author: Alyssa Rosenzweig <[email protected]> Date: Tue Jan 25 17:58:14 2022 -0500 panfrost: Don't set NO_BLEND_PACKS on Bifrost 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14724> --- src/panfrost/include/panfrost-quirks.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/panfrost/include/panfrost-quirks.h b/src/panfrost/include/panfrost-quirks.h index 6eb6c02e971..8b372230f4a 100644 --- a/src/panfrost/include/panfrost-quirks.h +++ b/src/panfrost/include/panfrost-quirks.h @@ -47,10 +47,6 @@ /* 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");
