From 9dc87a00fdf331fe6b58e060d2ba84269a6f3079 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 28 Aug 2023 08:44:04 -0400 Subject: [PATCH] asahi: Expose VS_LAYER_VIEWPORT behind a flag We can't technically expose the extension without a higher GL version, but the implemented subset should work and this lets us test with piglit. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/asahi/agx_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 7ac2e1aef0f..a3795b1b9c1 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1754,6 +1754,9 @@ agx_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_MAP_UNSYNCHRONIZED_THREAD_SAFE: return 1; + case PIPE_CAP_VS_LAYER_VIEWPORT: + return is_deqp; + default: return u_pipe_screen_get_param_defaults(pscreen, param); }