diff options
author | Chia-I Wu <[email protected]> | 2019-05-16 14:33:15 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-06-07 22:47:07 +0000 |
commit | 98fd742d7ecff7532ee13a17a1848764bd8de770 (patch) | |
tree | f95f72ecbb4cb37659dde8fa14c9b31d5c5f4106 /src/gallium/drivers/virgl/virgl_context.h | |
parent | f965efb3c8360428532ca65856ff4f447fd0e1a6 (diff) |
virgl: add shader images to virgl_shader_binding_state
It replaces virgl_context::images.
Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Alexandros Frantzis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h index d13f9e8a521..663a3ca9514 100644 --- a/src/gallium/drivers/virgl/virgl_context.h +++ b/src/gallium/drivers/virgl/virgl_context.h @@ -60,6 +60,9 @@ struct virgl_shader_binding_state { struct pipe_shader_buffer ssbos[PIPE_MAX_SHADER_BUFFERS]; uint32_t ssbo_enabled_mask; + + struct pipe_image_view images[PIPE_MAX_SHADER_IMAGES]; + uint32_t image_enabled_mask; }; struct virgl_context { @@ -86,7 +89,6 @@ struct virgl_context { struct virgl_so_target so_targets[PIPE_MAX_SO_BUFFERS]; unsigned num_so_targets; - struct pipe_resource *images[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_BUFFERS]; uint32_t num_draws, num_compute; struct pipe_resource *atomic_buffers[PIPE_MAX_HW_ATOMIC_BUFFERS]; |