diff options
author | Chia-I Wu <[email protected]> | 2019-05-16 14:00:54 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-06-07 22:47:07 +0000 |
commit | 920c4143f0a47d60e703cf78228fa18a45af1dc4 (patch) | |
tree | 41b5687b94917fcc3135aa47cfcd27dc7cfd5638 /src/gallium/drivers/virgl/virgl_context.h | |
parent | 2e21d66d7a0aadaaea8689276564e9633262d107 (diff) |
virgl: add UBOs to virgl_shader_binding_state
It replaces virgl_context::ubos.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h index ad8ba5f98f0..e8d65c6e97b 100644 --- a/src/gallium/drivers/virgl/virgl_context.h +++ b/src/gallium/drivers/virgl/virgl_context.h @@ -54,6 +54,9 @@ struct virgl_rasterizer_state { struct virgl_shader_binding_state { struct pipe_sampler_view *views[16]; uint32_t view_enabled_mask; + + struct pipe_constant_buffer ubos[PIPE_MAX_CONSTANT_BUFFERS]; + uint32_t ubo_enabled_mask; }; struct virgl_context { @@ -80,8 +83,6 @@ struct virgl_context { struct virgl_so_target so_targets[PIPE_MAX_SO_BUFFERS]; unsigned num_so_targets; - struct pipe_resource *ubos[PIPE_SHADER_TYPES][PIPE_MAX_CONSTANT_BUFFERS]; - struct pipe_resource *ssbos[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_BUFFERS]; struct pipe_resource *images[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_BUFFERS]; uint32_t num_draws, num_compute; |