#define MIDGARD_BROKEN_FP16 (1 << 2)
-/* What it says on the tin */
-#define HAS_SWIZZLES (1 << 4)
-
-/* bit 5 unused */
+/* bits 4 and 5 unused */
/* Whether this GPU lacks support for any typed stores in blend shader,
* requiring packing instead */
/* Quirk collections common to particular uarchs */
-#define MIDGARD_QUIRKS (MIDGARD_BROKEN_FP16 | HAS_SWIZZLES \
+#define MIDGARD_QUIRKS (MIDGARD_BROKEN_FP16 \
| MIDGARD_NO_TYPED_BLEND_STORES \
| MIDGARD_MISSING_LOADS)
return MIDGARD_QUIRKS;
case 0x6000: /* G71 */
- return BIFROST_QUIRKS | HAS_SWIZZLES;
+ return BIFROST_QUIRKS;
case 0x6221: /* G72 */
/* Anisotropic filtering is supported from r0p3 onwards */
- return BIFROST_QUIRKS | HAS_SWIZZLES
+ return BIFROST_QUIRKS
| (gpu_revision >= 0x30 ? HAS_ANISOTROPIC : 0);
case 0x7093: /* G31 */
dev->tiler_features = panfrost_query_tiler_features(fd);
dev->has_afbc = panfrost_query_afbc(fd, dev->arch);
- if (dev->quirks & HAS_SWIZZLES)
+ if (dev->arch <= 6)
dev->formats = panfrost_pipe_format_v6;
else
dev->formats = panfrost_pipe_format_v7;