diff options
author | Dave Airlie <[email protected]> | 2017-11-03 11:11:15 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-12-05 20:31:24 +0000 |
commit | dd3630f71c2fd23e58cf589acadbcdd2a3d4c24a (patch) | |
tree | 80ba6cd19e1030712108e68a3ab96226adfd887b /src/gallium/drivers/r600/r600_pipe.h | |
parent | 84feb6c24afcf281a66b52b7d445ce95d185537a (diff) |
r600/cs: add support for compute to image/buffers/atomics state
This just adds the compute paths to state handling for the
main objects
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index e54fada9a65..711acccc55c 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -38,7 +38,7 @@ #include "tgsi/tgsi_scan.h" -#define R600_NUM_ATOMS 54 +#define R600_NUM_ATOMS 56 #define R600_MAX_IMAGES 8 /* @@ -522,7 +522,9 @@ struct r600_context { struct r600_atomic_buffer_state atomic_buffer_state; /* only have images on fragment shader */ struct r600_image_state fragment_images; + struct r600_image_state compute_images; struct r600_image_state fragment_buffers; + struct r600_image_state compute_buffers; /* Shaders and shader resources. */ struct r600_cso_state vertex_fetch_shader; struct r600_shader_state hw_shader_stages[EG_NUM_HW_STAGES]; @@ -1023,9 +1025,11 @@ void eg_dump_debug_state(struct pipe_context *ctx, FILE *f, struct r600_shader_atomic; bool evergreen_emit_atomic_buffer_setup(struct r600_context *rctx, + struct r600_pipe_shader *cs_shader, struct r600_shader_atomic *combined_atomics, uint8_t *atomic_used_mask_p); void evergreen_emit_atomic_buffer_save(struct r600_context *rctx, + bool is_compute, struct r600_shader_atomic *combined_atomics, uint8_t *atomic_used_mask_p); |