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 <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Dave Airlie 2014-02-03 15:31:26 +10:00
parent ce9e939144
commit b209afb153

View file

@ -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 */