diff options
author | Dave Airlie <[email protected]> | 2018-03-13 15:37:36 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-03-23 10:21:10 +1000 |
commit | fa683385de515c24f4c7cf62dfce8a16faa4b2be (patch) | |
tree | 4756ff5ae207ebcdb45cec16a77dc908533bb90d /src/gallium/drivers/virgl/virgl_screen.c | |
parent | d7a015cbc6a6c12a87ee7ec725cc399d3712f43c (diff) |
virgl: add ARB_cull_distance support.
This just allows the properties through to the host if we have
cull dist support.
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 | 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 1878def4745..02613f18663 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -196,6 +196,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_SAMPLE_SHADING: case PIPE_CAP_FORCE_PERSAMPLE_INTERP: return vscreen->caps.caps.v1.bset.has_sample_shading; + case PIPE_CAP_CULL_DISTANCE: + return vscreen->caps.caps.v1.bset.has_cull; case PIPE_CAP_TEXTURE_GATHER_SM5: case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: case PIPE_CAP_FAKE_SW_MSAA: @@ -239,7 +241,6 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_PCI_FUNCTION: case PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT: case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR: - case PIPE_CAP_CULL_DISTANCE: case PIPE_CAP_PRIMITIVE_RESTART_FOR_PATCHES: case PIPE_CAP_TGSI_VOTE: case PIPE_CAP_MAX_WINDOW_RECTANGLES: |