i965: Optimize VUE map comparisons

Graphics / Mesa 3D Graphics Library / Mesa - Kenneth Graunke [whitecape.org] - 4 September 2015 00:31 UTC

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.

0e23c24 i965: Optimize VUE map comparisons.
src/mesa/drivers/dri/i965/brw_gs.c | 4 ++--
src/mesa/drivers/dri/i965/brw_vs.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share