diff options
author | Dave Airlie <airlied@redhat.com> | 2018-05-28 11:53:33 +1000 |
---|---|---|
committer | Jakob Bornecrantz <jakob@collabora.com> | 2018-05-30 17:02:47 +0100 |
commit | 49204ff8ad2e43712aa73a2bd9217a8341cbfbc9 (patch) | |
tree | 0f93968befb14c8c558deeb49c7f726a82efa8fb | |
parent | 46fe349af25b07e23e901fe43051dbfda0584236 (diff) |
virgl: add derivative control support
Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index a8b107ee44..9800403596 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -204,6 +204,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) return vscreen->caps.caps.v1.glsl_level >= 400 ? 4 : 1; case PIPE_CAP_CONDITIONAL_RENDER_INVERTED: return vscreen->caps.caps.v1.bset.conditional_render_inverted; + case PIPE_CAP_TGSI_FS_FINE_DERIVATIVE: + return vscreen->caps.caps.v1.bset.derivative_control; case PIPE_CAP_TEXTURE_GATHER_SM5: case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: case PIPE_CAP_FAKE_SW_MSAA: @@ -211,7 +213,6 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION: case PIPE_CAP_MULTI_DRAW_INDIRECT: case PIPE_CAP_MULTI_DRAW_INDIRECT_PARAMS: - case PIPE_CAP_TGSI_FS_FINE_DERIVATIVE: case PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE: case PIPE_CAP_SAMPLER_VIEW_TARGET: case PIPE_CAP_CLIP_HALFZ: |