summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/failover/fo_state_emit.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2010-03-01 18:47:54 +0100
committerRoland Scheidegger <[email protected]>2010-03-01 18:47:54 +0100
commit2918edb46acf58b467e4351d627912f4c8cdb32c (patch)
tree8177bd9c1a823d0c919971349e0bd91ba365de14 /src/gallium/drivers/failover/fo_state_emit.c
parent470dbb84b8e892bf6d5a9136b40dd68f5b146a05 (diff)
failover: adapt to new vertex element cso
Diffstat (limited to 'src/gallium/drivers/failover/fo_state_emit.c')
-rw-r--r--src/gallium/drivers/failover/fo_state_emit.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/drivers/failover/fo_state_emit.c b/src/gallium/drivers/failover/fo_state_emit.c
index 5c000808425..09ca1944971 100644
--- a/src/gallium/drivers/failover/fo_state_emit.c
+++ b/src/gallium/drivers/failover/fo_state_emit.c
@@ -81,6 +81,10 @@ failover_state_emit( struct failover_context *failover )
failover->sw->bind_vs_state( failover->sw,
failover->vertex_shader->sw_state );
+ if (failover->dirty & FO_NEW_VERTEX_ELEMENT)
+ failover->sw->bind_vertex_elements_state( failover->sw,
+ failover->vertex_elements->sw_state );
+
if (failover->dirty & FO_NEW_STIPPLE)
failover->sw->set_polygon_stipple( failover->sw, &failover->poly_stipple );
@@ -116,11 +120,5 @@ failover_state_emit( struct failover_context *failover )
failover->vertex_buffers );
}
- if (failover->dirty & FO_NEW_VERTEX_ELEMENT) {
- failover->sw->set_vertex_elements( failover->sw,
- failover->num_vertex_elements,
- failover->vertex_elements );
- }
-
failover->dirty = 0;
}