From 93ea5cd80b98219100782feb3fee9d7283059036 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 22 May 2012 16:53:04 -0600 Subject: 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. --- src/gallium/drivers/svga/svga_state_constants.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/gallium/drivers/svga/svga_state_constants.c') 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 }; -- cgit v1.2.3