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_hw.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_hw.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_hw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_hw.h b/src/gallium/drivers/virgl/virgl_hw.h index 6bb11f6598a..d58b347020b 100644 --- a/src/gallium/drivers/virgl/virgl_hw.h +++ b/src/gallium/drivers/virgl/virgl_hw.h @@ -206,6 +206,7 @@ enum virgl_formats { #define VIRGL_CAP_TGSI_PRECISE (1 << 4) #define VIRGL_CAP_TXQS (1 << 5) #define VIRGL_CAP_MEMORY_BARRIER (1 << 6) +#define VIRGL_CAP_COMPUTE_SHADER (1 << 7) #define VIRGL_BIND_DEPTH_STENCIL (1 << 0) #define VIRGL_BIND_RENDER_TARGET (1 << 1) @@ -312,6 +313,10 @@ struct virgl_caps_v2 { uint32_t max_shader_image_frag_compute; uint32_t max_shader_image_other_stages; uint32_t max_image_samples; + uint32_t max_compute_work_group_invocations; + uint32_t max_compute_shared_memory_size; + uint32_t max_compute_grid_size[3]; + uint32_t max_compute_block_size[3]; }; union virgl_caps { |