summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_vbo.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-11-07 09:47:01 -0800
committerCorbin Simpson <[email protected]>2009-11-07 11:53:14 -0800
commit96b729f926fafeca6479eed0933bc4275fb7843b (patch)
tree040c3fe385707d148702b2377232610c7ac48d17 /src/gallium/drivers/r300/r300_vbo.c
parent24c6fdbd32a84314c81897d0d1567121ed1c6118 (diff)
r300g: Don't pass hw_prim around in the context.
And some other fixes.
Diffstat (limited to 'src/gallium/drivers/r300/r300_vbo.c')
-rw-r--r--src/gallium/drivers/r300/r300_vbo.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_vbo.c b/src/gallium/drivers/r300/r300_vbo.c
index 37b5c9224fc..ab6f5c59426 100644
--- a/src/gallium/drivers/r300/r300_vbo.c
+++ b/src/gallium/drivers/r300/r300_vbo.c
@@ -56,7 +56,8 @@ static INLINE void setup_vertex_attribute(struct r300_vertex_info *vinfo,
static void finish_vertex_attribs_setup(struct r300_vertex_info *vinfo,
unsigned attribs_num)
{
- uint32_t last_vec_bit = (attribs_num % 2 == 0) ? (R300_LAST_VEC << 16) : R300_LAST_VEC;
+ uint32_t last_vec_bit = (attribs_num % 2 == 0) ?
+ (R300_LAST_VEC << 16) : R300_LAST_VEC;
assert(attribs_num > 0 && attribs_num <= 16);
vinfo->vap_prog_stream_cntl[(attribs_num - 1) >> 1] |= last_vec_bit;
@@ -64,10 +65,11 @@ static void finish_vertex_attribs_setup(struct r300_vertex_info *vinfo,
void setup_vertex_attributes(struct r300_context *r300)
{
- for (int i=0; i<r300->aos_count; i++)
- {
- struct pipe_vertex_element *vert_elem = &r300->vertex_element[i];
+ struct pipe_vertex_element *vert_elem;
+ int i;
+ for (i = 0; i < r300->aos_count; i++) {
+ vert_elem = &r300->vertex_element[i];
setup_vertex_attribute(r300->vertex_info, vert_elem, i);
}