diff options
author | Dave Airlie <[email protected]> | 2018-02-13 14:08:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-02-14 13:06:07 +1000 |
commit | 8f2656c75b8e91a8e90755280845d0e278a62ab4 (patch) | |
tree | 75e509dcdccc16a3b56b3c1f687bfd52bb30e55c /src/gallium/drivers/virgl/virgl_screen.c | |
parent | 9b95b70719bfd19e57a8ae89065eac84f513d297 (diff) |
virgl: add ARB_sample_shading support.
This enable ARB_sample_shading if the renderer supports it.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 2af621ec2dc..f4f3195ce3f 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -193,9 +193,11 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) return vscreen->caps.caps.v1.max_texture_gather_components; case PIPE_CAP_DRAW_INDIRECT: return vscreen->caps.caps.v1.bset.has_indirect_draw; + case PIPE_CAP_SAMPLE_SHADING: + case PIPE_CAP_FORCE_PERSAMPLE_INTERP: + return vscreen->caps.caps.v1.bset.has_sample_shading; case PIPE_CAP_TEXTURE_GATHER_SM5: case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: - case PIPE_CAP_SAMPLE_SHADING: case PIPE_CAP_FAKE_SW_MSAA: case PIPE_CAP_TEXTURE_GATHER_OFFSETS: case PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION: @@ -217,7 +219,6 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR: case PIPE_CAP_DEPTH_BOUNDS_TEST: case PIPE_CAP_TGSI_TXQS: - case PIPE_CAP_FORCE_PERSAMPLE_INTERP: case PIPE_CAP_SHAREABLE_SHADERS: case PIPE_CAP_CLEAR_TEXTURE: case PIPE_CAP_DRAW_PARAMETERS: |