summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_hw.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-07-17 17:24:29 +1000
committerDave Airlie <[email protected]>2018-07-24 05:54:21 +1000
commit958b57ac82549a662631ac2d2e2f1654178a8a42 (patch)
tree9b42836ddf8786577bd9958e9630cd534410d1d2 /src/gallium/drivers/virgl/virgl_hw.h
parente4d346c86db0ae332fcdf55eac0e075cfb99a7eb (diff)
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 <[email protected]> v2: move to using separate maximums (fixup macros) Reviewed-By: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_hw.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_hw.h3
1 files changed, 3 insertions, 0 deletions
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 {