diff options
author | Dave Airlie <[email protected]> | 2018-07-31 04:45:15 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-08-01 14:00:38 +1000 |
commit | 6f5d463a7860b02f2d0a6f20377626bef770aa78 (patch) | |
tree | a0cd59982c3cbcb2b68d425bd5bd9b82a2f4f5ea /src/gallium/drivers/virgl/virgl_screen.c | |
parent | 2df8b80c4c4842ef80d8b80f1fed53e75a82645d (diff) |
virgl: enable robustness if the host exposes it
Reviewed-by: Gurchetan Singh <[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 223eb6f229b..fc43bf9dfc3 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -227,6 +227,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TXQS; case PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT: return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_FB_NO_ATTACH; + case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR: + return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_ROBUST_BUFFER_ACCESS; case PIPE_CAP_TEXTURE_GATHER_SM5: case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: case PIPE_CAP_FAKE_SW_MSAA: @@ -258,7 +260,6 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_PCI_BUS: case PIPE_CAP_PCI_DEVICE: case PIPE_CAP_PCI_FUNCTION: - case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR: case PIPE_CAP_PRIMITIVE_RESTART_FOR_PATCHES: case PIPE_CAP_TGSI_VOTE: case PIPE_CAP_MAX_WINDOW_RECTANGLES: |