i965: Avoid redundant call to brw_merge_inputs() in brw_try_draw_prims()
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 8 May 2014 11:29:20 +0000 (13:29 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 13 May 2014 08:09:35 +0000 (10:09 +0200)
commit54216173252bdaffd12c1bbbaba85e8131396cff
tree59dddfadb5c334818be4ea804cd13febec6de00d
parenta143fbb3220e4c40cd2c75eca6f3e94fba0fe324
i965: Avoid redundant call to brw_merge_inputs() in brw_try_draw_prims()

We always call brw_merge_inputs() right before looping over the primitives but
this can be called inside the loop for each primitive too. In the case we do it
for the first primitive the call is redundant and can be skipped.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_draw.c