Mesa (main): panfrost: Advertise all textures in drm-shim

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 26 18:19:26 UTC 2022


Module: Mesa
Branch: main
Commit: 9ccba4943dd309144fc20577d0b94e57ab727d78
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ccba4943dd309144fc20577d0b94e57ab727d78

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Tue Apr 26 11:08:38 2022 -0400

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 <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15991>

---

 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;



More information about the mesa-commit mailing list