i965: Skip recalculating URB allocations if the entry size didn't change.
authorEric Anholt <eric@anholt.net>
Tue, 6 May 2014 23:37:05 +0000 (16:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Oct 2014 06:17:14 +0000 (23:17 -0700)
commit08599f668c5d991ab19376a19cb2e14e5245db95
treed1b915c451aaf4488968275ebfbc4d74d79214c9
parentb0e0c26f0214739108dbf0d6ae9596caf13287ee
i965: Skip recalculating URB allocations if the entry size didn't change.

We only get here if the VS/GS compiled programs change, but we can even
skip it if the VS/GS size didn't change.

Affects cairo runtime on glamor by -1.26471% +/- 0.674335% (n=234)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen6_urb.c
src/mesa/drivers/dri/i965/gen7_urb.c