diff options
author | Marek Olšák <[email protected]> | 2013-08-14 01:52:38 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-09-13 01:04:44 +0200 |
commit | 2b0a54d6ecbd31a41679d089c4e4abf8687f2fdc (patch) | |
tree | f065dc71a3df43db48dcb086283fe63e1891dd06 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 4ea35023c5a911fee5eebe8e4c4b7200cf665d9b (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.c | 6 |
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; } |