summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i965simple/brw_draw.c
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-12-18 09:59:54 -0500
committerZack Rusin <zack@tungstengraphics.com>2007-12-18 09:59:54 -0500
commit7cef9237ae663f107dce82a688e8e0a9ce8193bc (patch)
treec2e4925df963004db2d0eda719e1fb72b664922c /src/mesa/pipe/i965simple/brw_draw.c
parente2a669aed4bc6f9c94b6b664bf667777078e02c0 (diff)
i965: don't treat swz differently and upload vertex buffers
Diffstat (limited to 'src/mesa/pipe/i965simple/brw_draw.c')
-rw-r--r--src/mesa/pipe/i965simple/brw_draw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/pipe/i965simple/brw_draw.c b/src/mesa/pipe/i965simple/brw_draw.c
index 25861a4373..acfb524a30 100644
--- a/src/mesa/pipe/i965simple/brw_draw.c
+++ b/src/mesa/pipe/i965simple/brw_draw.c
@@ -158,10 +158,13 @@ static boolean brw_try_draw_elements( struct pipe_context *pipe,
/* Upload index, vertex data:
*/
- if (index_buffer &&
+ if (index_buffer &&
!brw_upload_indices( brw, index_buffer, index_size, start, count ))
return FALSE;
+ if (!brw_upload_vertex_buffers(brw))
+ return FALSE;
+
if (!brw_upload_vertex_elements( brw ))
return FALSE;