Mesa (master): lima: expose fragment shader derivatives capability

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 25 18:38:30 UTC 2020


Module: Mesa
Branch: master
Commit: 3569215d493da6dbb8359f1df1259563b2c61db1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3569215d493da6dbb8359f1df1259563b2c61db1

Author: Icenowy Zheng <icenowy at aosc.io>
Date:   Tue Feb 25 17:48:12 2020 +0800

lima: expose fragment shader derivatives capability

Support for fragment shader derivatives has landed in the Lima PP
compiler for a long time, but its capability is not exposed yet.

Expose the support now.

Signed-off-by: Icenowy Zheng <icenowy at aosc.io>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3944>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3944>

---

 src/gallium/drivers/lima/lima_screen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c
index 9a5e0d0db2f..16c9fefcf04 100644
--- a/src/gallium/drivers/lima/lima_screen.c
+++ b/src/gallium/drivers/lima/lima_screen.c
@@ -147,6 +147,9 @@ lima_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_CLIP_PLANES:
       return 0;
 
+   case PIPE_CAP_FRAGMENT_SHADER_DERIVATIVES:
+      return 1;
+
    default:
       return u_pipe_screen_get_param_defaults(pscreen, param);
    }



More information about the mesa-commit mailing list