From 958b57ac82549a662631ac2d2e2f1654178a8a42 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 17 Jul 2018 17:24:29 +1000 Subject: virgl: add initial shader_storage_buffer_object support. (v2) This adds the guest side support for ARB_shader_storage_buffer_object. Co-authors: Gurchetan Singh v2: move to using separate maximums (fixup macros) Reviewed-By: Gert Wollny --- src/gallium/drivers/virgl/virgl_hw.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/virgl/virgl_hw.h') diff --git a/src/gallium/drivers/virgl/virgl_hw.h b/src/gallium/drivers/virgl/virgl_hw.h index ee6aa68c5a7..c509e9b8a0a 100644 --- a/src/gallium/drivers/virgl/virgl_hw.h +++ b/src/gallium/drivers/virgl/virgl_hw.h @@ -212,6 +212,7 @@ enum virgl_formats { #define VIRGL_BIND_CONSTANT_BUFFER (1 << 6) #define VIRGL_BIND_DISPLAY_TARGET (1 << 7) #define VIRGL_BIND_STREAM_OUTPUT (1 << 11) +#define VIRGL_BIND_SHADER_BUFFER (1 << 14) #define VIRGL_BIND_CURSOR (1 << 16) #define VIRGL_BIND_CUSTOM (1 << 17) #define VIRGL_BIND_SCANOUT (1 << 18) @@ -303,6 +304,8 @@ struct virgl_caps_v2 { uint32_t capability_bits; uint32_t msaa_sample_positions[8]; uint32_t max_vertex_attrib_stride; + uint32_t max_shader_buffer_frag_compute; + uint32_t max_shader_buffer_other_stages; }; union virgl_caps { -- cgit v1.2.3