Commit fdcb03c2 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Expose ARB_texture_filter_anisotropic on supported GPUs



Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <!8149>
parent 48c676c5
Pipeline #247236 waiting for manual action with stages
......@@ -135,6 +135,9 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_PRIMITIVE_RESTART_FIXED_INDEX:
return true;
case PIPE_CAP_ANISOTROPIC_FILTER:
return !!(dev->quirks & HAS_ANISOTROPIC);
/* ES3 features unsupported on Bifrost */
case PIPE_CAP_TGSI_INSTANCEID:
case PIPE_CAP_TEXTURE_MULTISAMPLE:
......
......@@ -68,6 +68,9 @@
/* Lack support for AFBC */
#define MIDGARD_NO_AFBC (1 << 10)
/* Does this GPU support anisotropic filtering? */
#define HAS_ANISOTROPIC (1 << 11)
/* Quirk collections common to particular uarchs */
#define MIDGARD_QUIRKS (MIDGARD_BROKEN_FP16 | HAS_SWIZZLES \
......@@ -105,12 +108,16 @@ panfrost_get_quirks(unsigned gpu_id, unsigned gpu_revision)
return MIDGARD_QUIRKS;
case 0x6000: /* G71 */
case 0x6221: /* G72 */
return BIFROST_QUIRKS | HAS_SWIZZLES;
case 0x6221: /* G72 */
/* Anisotropic filtering is supported from r0p3 onwards */
return BIFROST_QUIRKS | HAS_SWIZZLES
| (gpu_revision >= 0x30 ? HAS_ANISOTROPIC : 0);
case 0x7093: /* G31 */
case 0x7212: /* G52 */
return BIFROST_QUIRKS;
return BIFROST_QUIRKS | HAS_ANISOTROPIC;
default:
unreachable("Unknown Panfrost GPU ID");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment