From 9ccba4943dd309144fc20577d0b94e57ab727d78 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 26 Apr 2022 11:08:38 -0400 Subject: [PATCH] panfrost: Advertise all textures in drm-shim I was rather confused when I couldn't reproduce an ASTC bug under drm-shim... Fix that. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/drm-shim/panfrost_noop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/panfrost/drm-shim/panfrost_noop.c b/src/panfrost/drm-shim/panfrost_noop.c index ef1211d6680..1b3d50c5e5d 100644 --- a/src/panfrost/drm-shim/panfrost_noop.c +++ b/src/panfrost/drm-shim/panfrost_noop.c @@ -66,8 +66,12 @@ pan_ioctl_get_param(int fd, unsigned long request, void *arg) case DRM_PANFROST_PARAM_TILER_FEATURES: gp->value = 0x809; return 0; - case DRM_PANFROST_PARAM_GPU_REVISION: case DRM_PANFROST_PARAM_TEXTURE_FEATURES0: + case DRM_PANFROST_PARAM_TEXTURE_FEATURES1: + /* Allow all compressed textures */ + gp->value = ~0; + return 0; + case DRM_PANFROST_PARAM_GPU_REVISION: case DRM_PANFROST_PARAM_THREAD_TLS_ALLOC: case DRM_PANFROST_PARAM_AFBC_FEATURES: gp->value = 0;