st/mesa: reduce time spent in calculating temp read/writes
authorDave Airlie <airlied@redhat.com>
Thu, 27 Aug 2015 00:46:33 +0000 (01:46 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Aug 2015 10:27:18 +0000 (11:27 +0100)
commitaee73f2942eff2ffb4a0497ac81f01a3b00294b8
tree8f0a1090e492fce218bf79aea75c8f3684db3dae
parent46968c114003b30be335adccbc30445aca9b5dea
st/mesa: reduce time spent in calculating temp read/writes

The glsl->tgsi convertor does some temporary register reduction
however in profiling shader-db this shows up quite highly,

so optimise things to reduce the number of loops through
all the instructions we do. This drops merge_registers
from 4-5% on the profile to 1%. I think this can be reduced
further by possibly optimising the renumber pass.

Acked-by: Marek Olšák <marek.olsak@amd.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp