summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_feedback.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-08 17:07:12 -0700
committerBrian <[email protected]>2007-11-08 17:07:12 -0700
commit64469863212dcc41995c473032856096c4af12b3 (patch)
tree9b8ff1218b90fbeb3f056cf1713537dddb731c94 /src/mesa/pipe/draw/draw_feedback.c
parent990fe4c0bf735206c3cc7346d84adc782595bc3a (diff)
Reorganize user-space vertex fields in draw_context into 'user' group.
This sub-struct collects the incoming user-provided data/pointers in one place. Ex: draw->mapped_vbuffer becomes draw->user.vbuffer, etc.
Diffstat (limited to 'src/mesa/pipe/draw/draw_feedback.c')
-rw-r--r--src/mesa/pipe/draw/draw_feedback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_feedback.c b/src/mesa/pipe/draw/draw_feedback.c
index ee54db0ad5c..b9906e5b4b0 100644
--- a/src/mesa/pipe/draw/draw_feedback.c
+++ b/src/mesa/pipe/draw/draw_feedback.c
@@ -128,20 +128,20 @@ static void feedback_begin( struct draw_stage *stage )
vertex_size += feedback->size[i];
}
/* compute max number of vertices we can feedback */
- fs->max_vert_emit = stage->draw->mapped_feedback_buffer_size[0]
+ fs->max_vert_emit = stage->draw->user.feedback_buffer_size[0]
/ sizeof(float) / vertex_size;
- fs->dest[0] = (float *) stage->draw->mapped_feedback_buffer[0];
+ fs->dest[0] = (float *) stage->draw->user.feedback_buffer[0];
}
else {
uint i;
uint max = ~0;
for (i = 0; i < feedback->num_attribs; i++) {
- uint n = stage->draw->mapped_feedback_buffer_size[i]
+ uint n = stage->draw->user.feedback_buffer_size[i]
/ sizeof(float) / feedback->size[i];
if (n < max)
max = n;
- fs->dest[i] = (float *) stage->draw->mapped_feedback_buffer[i];
+ fs->dest[i] = (float *) stage->draw->user.feedback_buffer[i];
}
fs->max_vert_emit = max;
}