From: Dave Airlie Date: Mon, 3 Feb 2014 05:31:26 +0000 (+1000) Subject: r600g: calculate a better value for array_size (v2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b209afb153c39be1693879ce9666ca18f12b6a37;p=mesa.git r600g: calculate a better value for array_size (v2) attempt to calculate a better value for array size to avoid breaking apps. v2: use 0xfff like streamout, suggested by Grigori Signed-off-by: Dave Airlie Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 8fa70542ea1..213b1c9db81 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1416,7 +1416,7 @@ static int emit_gs_ring_writes(struct r600_shader_ctx *ctx, bool ind) if (ind) { output.array_base = ring_offset >> 2; /* in dwords */ - output.array_size = 0xff + output.array_size = 0xfff; output.index_gpr = ctx->gs_export_gpr_treg; } else output.array_base = ring_offset >> 2; /* in dwords */