summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-08-14 01:52:38 +0200
committerMarek Olšák <[email protected]>2013-09-13 01:04:44 +0200
commit2b0a54d6ecbd31a41679d089c4e4abf8687f2fdc (patch)
treef065dc71a3df43db48dcb086283fe63e1891dd06 /src/gallium/drivers/radeonsi/si_state.c
parent4ea35023c5a911fee5eebe8e4c4b7200cf665d9b (diff)
radeonsi: integrate shared streamout state
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 6426033fcf9..f409af41947 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -2471,10 +2471,12 @@ static void si_bind_vs_shader(struct pipe_context *ctx, void *state)
rctx->vs_shader = sel;
- if (sel && sel->current)
+ if (sel && sel->current) {
si_pm4_bind_state(rctx, vs, sel->current->pm4);
- else
+ rctx->b.streamout.stride_in_dw = sel->so.stride;
+ } else {
si_pm4_bind_state(rctx, vs, rctx->dummy_pixel_shader->pm4);
+ }
rctx->b.flags |= R600_CONTEXT_INV_SHADER_CACHE;
}