From 239dca78b13d8c033d75d1898b1d5e3d784c30d4 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 11 Nov 2014 13:28:32 +0800 Subject: ilo: clean up gen7_3DSTATE_STREAMOUT() Render stream and render enable are independent from so enable. Having a single return point makes it easier to see that. Signed-off-by: Chia-I Wu --- src/gallium/drivers/ilo/ilo_render_gen7.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_render_gen7.c') diff --git a/src/gallium/drivers/ilo/ilo_render_gen7.c b/src/gallium/drivers/ilo/ilo_render_gen7.c index 2051f1254bb..08190e8cc4a 100644 --- a/src/gallium/drivers/ilo/ilo_render_gen7.c +++ b/src/gallium/drivers/ilo/ilo_render_gen7.c @@ -476,8 +476,9 @@ gen7_draw_sol(struct ilo_render *r, const int output_count = ilo_shader_get_kernel_param(shader, ILO_KERNEL_OUTPUT_COUNT); - gen7_3DSTATE_STREAMOUT(r->builder, buffer_mask, output_count, - vec->rasterizer->state.rasterizer_discard); + gen7_3DSTATE_STREAMOUT(r->builder, 0, + vec->rasterizer->state.rasterizer_discard, + buffer_mask, output_count); } } @@ -732,7 +733,7 @@ gen7_rectlist_vs_to_sf(struct ilo_render *r, gen7_3DSTATE_CONSTANT_GS(r->builder, NULL, NULL, 0); gen7_disable_3DSTATE_GS(r->builder); - gen7_3DSTATE_STREAMOUT(r->builder, 0x0, 0, false); + gen7_3DSTATE_STREAMOUT(r->builder, 0, false, 0x0, 0); gen6_disable_3DSTATE_CLIP(r->builder); -- cgit v1.2.3