lima: expose fragment shader derivatives capability
authorIcenowy Zheng <icenowy@aosc.io>
Tue, 25 Feb 2020 09:48:12 +0000 (17:48 +0800)
committerIcenowy Zheng <icenowy@aosc.io>
Tue, 25 Feb 2020 17:47:58 +0000 (01:47 +0800)
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@aosc.io>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@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

index 9a5e0d0db2fc25df8b4cd24a1dd612b6c24a72d2..16c9fefcf0404b56f4f6d8a9c419f4b67883a8ce 100644 (file)
@@ -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);
    }