aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_state_constants.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-05-22 16:53:04 -0600
committerBrian Paul <[email protected]>2012-05-25 10:02:22 -0600
commit93ea5cd80b98219100782feb3fee9d7283059036 (patch)
treef8360883a7f031fbecc10abc36aa596563d1cae7 /src/gallium/drivers/svga/svga_state_constants.c
parentdcb4ec5ae1874d57cc668baac483654e0dfeb4aa (diff)
svga: remove the special zero-stride vertex array code
This code actually hasn't been needed for some time now. We can just treat a zero-stride vertex array like any other non-zero-stride array.
Diffstat (limited to 'src/gallium/drivers/svga/svga_state_constants.c')
-rw-r--r--src/gallium/drivers/svga/svga_state_constants.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gallium/drivers/svga/svga_state_constants.c b/src/gallium/drivers/svga/svga_state_constants.c
index 1c0ed6cac94..c03ef0580e7 100644
--- a/src/gallium/drivers/svga/svga_state_constants.c
+++ b/src/gallium/drivers/svga/svga_state_constants.c
@@ -351,23 +351,6 @@ emit_vs_consts(struct svga_context *svga, unsigned dirty)
return ret;
}
- /* SVGA_NEW_ZERO_STRIDE
- * Put the zero-stride vertex array attributes into the const buffer.
- */
- if (key->zero_stride_vertex_elements) {
- unsigned i, curr_zero_stride = 0;
- for (i = 0; i < PIPE_MAX_ATTRIBS; ++i) {
- if (key->zero_stride_vertex_elements & (1 << i)) {
- ret = emit_const( svga, PIPE_SHADER_VERTEX, offset++,
- svga->curr.zero_stride_constants +
- 4 * curr_zero_stride );
- if (ret != PIPE_OK)
- return ret;
- ++curr_zero_stride;
- }
- }
- }
-
return PIPE_OK;
}
@@ -377,7 +360,6 @@ struct svga_tracked_state svga_hw_vs_parameters =
"hw vs params",
(SVGA_NEW_PRESCALE |
SVGA_NEW_VS_CONST_BUFFER |
- SVGA_NEW_ZERO_STRIDE |
SVGA_NEW_VS_RESULT),
emit_vs_consts
};