i965: Optimize VUE map comparisons.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 May 2015 17:08:19 +0000 (10:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Sep 2015 05:31:04 +0000 (22:31 -0700)
commit0e23c246c0eb84bd46dfdfe6babe3762e49c58d2
tree8b48088c7dde14968ef3beef0b6b350cc5c7e3e0
parent6e03377daf90c6f6ac953a08e3a8f8f5caf9abf6
i965: Optimize VUE map comparisons.

The entire VUE map is computed based on the slots_valid bitfield;
calling brw_compute_vue_map on the same bitfield will return the
same result.  So we can simply compare those.

struct brw_vue_map is 136 bytes; doing a single 8-byte comparison is
much cheaper and should work just as well.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_vs.c