Mesa (gallium-index-bias): failover: Implement index bias.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Apr 19 16:22:36 UTC 2010


Module: Mesa
Branch: gallium-index-bias
Commit: f8d4638a092d44c0746ff124d3414c20c735e9f6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8d4638a092d44c0746ff124d3414c20c735e9f6

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Apr 19 18:14:35 2010 +0200

failover: Implement index bias.

---

 src/gallium/drivers/failover/fo_context.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/failover/fo_context.c b/src/gallium/drivers/failover/fo_context.c
index 325a100..236c50f 100644
--- a/src/gallium/drivers/failover/fo_context.c
+++ b/src/gallium/drivers/failover/fo_context.c
@@ -53,6 +53,7 @@ void failover_fail_over( struct failover_context *failover )
 static void failover_draw_elements( struct pipe_context *pipe,
                                     struct pipe_resource *indexResource,
                                     unsigned indexSize,
+                                    int indexBias,
                                     unsigned prim, 
                                     unsigned start, 
                                     unsigned count)
@@ -72,6 +73,7 @@ static void failover_draw_elements( struct pipe_context *pipe,
       failover->hw->draw_elements( failover->hw, 
                                    indexResource, 
                                    indexSize, 
+                                   indexBias,
                                    prim, 
                                    start, 
                                    count );
@@ -89,6 +91,7 @@ static void failover_draw_elements( struct pipe_context *pipe,
       failover->sw->draw_elements( failover->sw, 
 				   indexResource, 
 				   indexSize, 
+				   indexBias,
 				   prim, 
 				   start, 
 				   count );
@@ -105,7 +108,7 @@ static void failover_draw_elements( struct pipe_context *pipe,
 static void failover_draw_arrays( struct pipe_context *pipe,
 				     unsigned prim, unsigned start, unsigned count)
 {
-   failover_draw_elements(pipe, NULL, 0, prim, start, count);
+   failover_draw_elements(pipe, NULL, 0, 0, prim, start, count);
 }
 
 static unsigned int




More information about the mesa-commit mailing list