identity: Implement index bias.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Apr 2010 16:15:05 +0000 (18:15 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Apr 2010 16:15:05 +0000 (18:15 +0200)
src/gallium/drivers/identity/id_context.c

index 3b7eaecc02f9d64502c7ee329cb4d46d83a7c9cd..630cdb5e4916424317f87b6494d442790038b88d 100644 (file)
@@ -64,6 +64,7 @@ static void
 identity_draw_elements(struct pipe_context *_pipe,
                        struct pipe_resource *_indexResource,
                        unsigned indexSize,
+                       int indexBias,
                        unsigned prim,
                        unsigned start,
                        unsigned count)
@@ -76,6 +77,7 @@ identity_draw_elements(struct pipe_context *_pipe,
    pipe->draw_elements(pipe,
                        indexResource,
                        indexSize,
+                       indexBias,
                        prim,
                        start,
                        count);
@@ -85,6 +87,7 @@ static void
 identity_draw_range_elements(struct pipe_context *_pipe,
                              struct pipe_resource *_indexResource,
                              unsigned indexSize,
+                             int indexBias,
                              unsigned minIndex,
                              unsigned maxIndex,
                              unsigned mode,
@@ -99,6 +102,7 @@ identity_draw_range_elements(struct pipe_context *_pipe,
    pipe->draw_range_elements(pipe,
                              indexResource,
                              indexSize,
+                             indexBias,
                              minIndex,
                              maxIndex,
                              mode,