diff options
author | Dave Airlie <[email protected]> | 2018-07-18 13:37:49 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-08-01 08:02:35 +1000 |
commit | a090df0d5dc804c1b6e16442a49b2ecb612a990d (patch) | |
tree | 4f7f4da25249753f43beed728bd65bcdcadba87e /src/gallium/drivers/virgl/virgl_protocol.h | |
parent | 6f75058359b9b79b778dfb043dfc9a29cb5169c9 (diff) |
virgl: add memory barrier support
Reviwed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_protocol.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_protocol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_protocol.h b/src/gallium/drivers/virgl/virgl_protocol.h index cdd534ff243..0c38b1fc2ed 100644 --- a/src/gallium/drivers/virgl/virgl_protocol.h +++ b/src/gallium/drivers/virgl/virgl_protocol.h @@ -88,6 +88,7 @@ enum virgl_context_cmd { VIRGL_CCMD_SET_MIN_SAMPLES, VIRGL_CCMD_SET_SHADER_BUFFERS, VIRGL_CCMD_SET_SHADER_IMAGES, + VIRGL_CCMD_MEMORY_BARRIER, }; /* @@ -513,4 +514,8 @@ enum virgl_context_cmd { #define VIRGL_SET_SHADER_IMAGE_LEVEL_SIZE(x) ((x) * VIRGL_SET_SHADER_IMAGE_ELEMENT_SIZE + 6) #define VIRGL_SET_SHADER_IMAGE_RES_HANDLE(x) ((x) * VIRGL_SET_SHADER_IMAGE_ELEMENT_SIZE + 7) +/* memory barrier */ +#define VIRGL_MEMORY_BARRIER_SIZE 1 +#define VIRGL_MEMORY_BARRIER_FLAGS 1 + #endif |