diff options
author | Brian Paul <[email protected]> | 2014-02-08 09:51:14 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-14 08:21:44 -0700 |
commit | 2f1fc8db108eb771414aa5440d4c439f63f4e7c1 (patch) | |
tree | f8e935b4b34d11e41a6b1ed87d05d09f584ea199 /src/gallium/drivers/svga/svga_context.h | |
parent | 31dfefc47f9f12c49fd3cfb27ba4fe384cb60380 (diff) |
svga: update constant buffer code for GBS
Reviewed-by: Thomas Hellstrom <[email protected]>
Cc: "10.1" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index 5b04bb482a1..71a8eea3fe1 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -219,7 +219,7 @@ struct svga_state struct pipe_vertex_buffer vb[PIPE_MAX_ATTRIBS]; struct pipe_index_buffer ib; - struct pipe_resource *cb[PIPE_SHADER_TYPES]; + struct pipe_constant_buffer cbufs[PIPE_SHADER_TYPES]; struct pipe_framebuffer_state framebuffer; float depthscale; @@ -287,6 +287,11 @@ struct svga_hw_draw_state unsigned ts[SVGA3D_PIXEL_SAMPLERREG_MAX][SVGA3D_TS_MAX]; float cb[PIPE_SHADER_TYPES][SVGA3D_CONSTREG_MAX][4]; + /** + * For guest backed shader constants only. + */ + struct svga_winsys_surface *hw_cb[PIPE_SHADER_TYPES]; + struct svga_shader_variant *fs; struct svga_shader_variant *vs; struct svga_hw_view_state views[PIPE_MAX_SAMPLERS]; |