diff options
author | Dave Airlie <[email protected]> | 2018-06-15 11:20:53 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-08-01 14:00:31 +1000 |
commit | f8a8ea6a2da89bb6f7d97f286a0cf1202fb95d8e (patch) | |
tree | 0f5bf124b156536ecad986785104f7d9b3a538a2 /src/gallium/drivers/virgl/virgl_protocol.h | |
parent | 157c6e81958d3b2223adf5567722b0502ada78ec (diff) |
virgl: add initial ARB_compute_shader support
This hooks up compute shader creation and launch grid support.
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_protocol.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_protocol.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_protocol.h b/src/gallium/drivers/virgl/virgl_protocol.h index 0c38b1fc2ed..b94b7528c0c 100644 --- a/src/gallium/drivers/virgl/virgl_protocol.h +++ b/src/gallium/drivers/virgl/virgl_protocol.h @@ -89,6 +89,7 @@ enum virgl_context_cmd { VIRGL_CCMD_SET_SHADER_BUFFERS, VIRGL_CCMD_SET_SHADER_IMAGES, VIRGL_CCMD_MEMORY_BARRIER, + VIRGL_CCMD_LAUNCH_GRID, }; /* @@ -518,4 +519,14 @@ enum virgl_context_cmd { #define VIRGL_MEMORY_BARRIER_SIZE 1 #define VIRGL_MEMORY_BARRIER_FLAGS 1 +#define VIRGL_LAUNCH_GRID_SIZE 8 +#define VIRGL_LAUNCH_BLOCK_X 1 +#define VIRGL_LAUNCH_BLOCK_Y 2 +#define VIRGL_LAUNCH_BLOCK_Z 3 +#define VIRGL_LAUNCH_GRID_X 4 +#define VIRGL_LAUNCH_GRID_Y 5 +#define VIRGL_LAUNCH_GRID_Z 6 +#define VIRGL_LAUNCH_INDIRECT_HANDLE 7 +#define VIRGL_LAUNCH_INDIRECT_OFFSET 8 + #endif |