diff options
author | Icenowy Zheng <[email protected]> | 2020-02-25 17:48:12 +0800 |
---|---|---|
committer | Icenowy Zheng <[email protected]> | 2020-02-26 01:47:58 +0800 |
commit | 3569215d493da6dbb8359f1df1259563b2c61db1 (patch) | |
tree | e67100754d14aac94bc23788d84ed62e494b02f9 | |
parent | 01496e3d1ea0370af03e6645dbd2b864c2ace94c (diff) |
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 <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Vasily Khoruzhick <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3944>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3944>
-rw-r--r-- | src/gallium/drivers/lima/lima_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |