summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-12 13:13:22 -0600
committerBrian Paul <[email protected]>2016-08-16 08:24:52 -0600
commit06b23f747dd747f69efa7aba7256a0131346fe11 (patch)
tree2a49f79311a28178f2782f6b6c8baf7eea0ed728 /src/gallium/drivers/svga/svga_context.h
parent7c5eda6f4e0801b97aa8b6c87a82c33e1d1202c5 (diff)
svga: additional comments for svga_hw_draw_state members
And re-order a few fields. Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 49c6030325f..4eb8a190879 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -332,21 +332,28 @@ struct svga_hw_view_state
*/
struct svga_hw_draw_state
{
+ /** VGPU9 rasterization state */
unsigned rs[SVGA3D_RS_MAX];
+ /** VGPU9 texture sampler and bindings state */
unsigned ts[SVGA3D_PIXEL_SAMPLERREG_MAX][SVGA3D_TS_MAX];
+ /** VGPU9 texture views */
+ unsigned num_views;
+ struct svga_hw_view_state views[PIPE_MAX_SAMPLERS];
+ /** VGPU9 constant buffer values */
float cb[PIPE_SHADER_TYPES][SVGA3D_CONSTREG_MAX][4];
+ /** Currently bound shaders */
struct svga_shader_variant *fs;
struct svga_shader_variant *vs;
struct svga_shader_variant *gs;
- struct svga_hw_view_state views[PIPE_MAX_SAMPLERS];
- unsigned num_views;
+
+ /** Currently bound constant buffer, per shader stage */
struct pipe_resource *constbuf[PIPE_SHADER_TYPES];
- /* Bitmask of enabled constant bufffers */
+ /** Bitmask of enabled constant buffers */
unsigned enabled_constbufs[PIPE_SHADER_TYPES];
- /* VGPU10 HW state (used to prevent emitting redundant state) */
+ /** VGPU10 HW state (used to prevent emitting redundant state) */
SVGA3dDepthStencilStateId depth_stencil_id;
unsigned stencil_ref;
SVGA3dBlendStateId blend_id;