r300g: fixup for GS additions
authorDave Airlie <airlied@linux.ie>
Fri, 25 Dec 2009 21:28:21 +0000 (07:28 +1000)
committerDave Airlie <airlied@linux.ie>
Fri, 25 Dec 2009 21:28:21 +0000 (07:28 +1000)
draw_set_mapped_constant_buffer changed API

src/gallium/drivers/r300/r300_render.c

index 2d70ec2ac94560e82ba8137f43750f7c1810c0a9..82089f91617408026ddb1d5bf9e300685b2f2ace 100644 (file)
@@ -335,8 +335,9 @@ boolean r300_swtcl_draw_arrays(struct pipe_context* pipe,
     draw_set_mapped_element_buffer(r300->draw, 0, NULL);
 
     draw_set_mapped_constant_buffer(r300->draw,
-            r300->shader_constants[PIPE_SHADER_VERTEX].constants,
-            r300->shader_constants[PIPE_SHADER_VERTEX].count *
+                                   PIPE_SHADER_VERTEX,
+                                   r300->shader_constants[PIPE_SHADER_VERTEX].constants,
+                                   r300->shader_constants[PIPE_SHADER_VERTEX].count *
                 (sizeof(float) * 4));
 
     draw_arrays(r300->draw, mode, start, count);
@@ -383,6 +384,7 @@ boolean r300_swtcl_draw_range_elements(struct pipe_context* pipe,
                                          minIndex, maxIndex, indices);
 
     draw_set_mapped_constant_buffer(r300->draw,
+                                   PIPE_SHADER_VERTEX,
             r300->shader_constants[PIPE_SHADER_VERTEX].constants,
             r300->shader_constants[PIPE_SHADER_VERTEX].count *
                 (sizeof(float) * 4));