[Mesa-dev] [PATCH] i965: Avoid redundant call to brw_merge_inputs() in brw_try_draw_prims()

Eric Anholt eric at anholt.net
Thu May 8 08:51:55 PDT 2014


Iago Toral Quiroga <itoral at igalia.com> writes:

> 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 at anholt.net>

If we had tracked that everything was in VBOs, we could also skip the
brw_merge_input/BRW_NEW_VERTICES entirely, I bet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140508/c45b4668/attachment.sig>


More information about the mesa-dev mailing list