Module: Mesa Branch: main Commit: 011106640fb55d16003a3793458128adab5f8780 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=011106640fb55d16003a3793458128adab5f8780
Author: Alyssa Rosenzweig <[email protected]> Date: Sun Jan 16 12:36:38 2022 -0500 asahi: Fake more CAPs with dEQP hacks mode Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14579> --- src/gallium/drivers/asahi/agx_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index cc8f86603ed..666953ab0f6 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -760,6 +760,7 @@ agx_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR: case PIPE_CAP_TEXTURE_MULTISAMPLE: case PIPE_CAP_SURFACE_SAMPLE_COUNT: + case PIPE_CAP_SAMPLE_SHADING: return is_deqp; case PIPE_CAP_COPY_BETWEEN_COMPRESSED_AND_PLAIN_FORMATS: @@ -781,9 +782,9 @@ agx_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_GLSL_FEATURE_LEVEL: case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY: - return 130; + return is_deqp ? 330 : 130; case PIPE_CAP_ESSL_FEATURE_LEVEL: - return 120; + return is_deqp ? 320 : 120; case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT: return 16;
