diff options
author | Dave Airlie <[email protected]> | 2018-05-22 09:32:42 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-01-31 11:23:38 +1000 |
commit | 9279a28f07fd65fa94831f7f9fb80b35921f6805 (patch) | |
tree | 7ca3776a22df8debf1a56032c312b14f86b40acf /src/gallium/drivers/virgl/virgl_screen.c | |
parent | 38658c6d4dda1df12690c1f4c01b993862d6fe68 (diff) |
virgl: ARB_query_buffer_object support
v1.1: fix size define.
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 9a8d0e64848..72afd4d95f0 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -258,6 +258,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_TEXTURE_FLOAT_LINEAR: case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR: return 1; /* TODO: need to introduce a hw-cap for this */ + case PIPE_CAP_QUERY_BUFFER_OBJECT: + return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_QBO; case PIPE_CAP_TEXTURE_GATHER_SM5: case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: case PIPE_CAP_FAKE_SW_MSAA: @@ -280,7 +282,6 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_INVALIDATE_BUFFER: case PIPE_CAP_GENERATE_MIPMAP: case PIPE_CAP_SURFACE_REINTERPRET_BLOCKS: - case PIPE_CAP_QUERY_BUFFER_OBJECT: case PIPE_CAP_STRING_MARKER: case PIPE_CAP_QUERY_MEMORY_INFO: case PIPE_CAP_PCI_GROUP: |