From 5f8a59ac89eefa88872444c6d2cb1f176e75d4d6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 14 Feb 2023 13:56:49 -0500 Subject: [PATCH] asahi: Advertise ARB_derivative_control Our native fddx instruction is already fine, so it's fine to use it for both fddx_coarse and fddx_fine. We handle both of those cases already so the extension is trivial. Signed-off-by: Alyssa Rosenzweig Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/asahi/agx_pipe.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 31606b0ee99..02d8a89bdfc 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -216,7 +216,7 @@ GL 4.5, GLSL 4.50 -- all DONE: freedreno/a6xx, nvc0, r600, radeonsi, llvmpipe, z GL_ARB_clip_control DONE (freedreno, i965, nv50, softpipe, virgl, lima, d3d12, panfrost) GL_ARB_conditional_render_inverted DONE (freedreno, i965, nv50, softpipe, virgl, panfrost, d3d12, asahi) GL_ARB_cull_distance DONE (freedreno/a6xx, i965, nv50, softpipe, virgl) - GL_ARB_derivative_control DONE (freedreno/a3xx+, i965, nv50, softpipe, virgl) + GL_ARB_derivative_control DONE (freedreno/a3xx+, i965, nv50, softpipe, virgl, asahi) GL_ARB_direct_state_access DONE (all drivers) GL_ARB_get_texture_sub_image DONE (all drivers) GL_ARB_shader_texture_image_samples DONE (freedreno/a3xx+, i965, nv50, virgl) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 2363bb58153..6dfda83f35e 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1236,6 +1236,7 @@ agx_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_FRAGMENT_SHADER_DERIVATIVES: case PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT: case PIPE_CAP_SHADER_PACK_HALF_FLOAT: + case PIPE_CAP_FS_FINE_DERIVATIVE: return 1; /* We could support ARB_clip_control by toggling the clip control bit for