st_glsl_to_tgsi: rewrite rename registers to use array fully.
authorDave Airlie <airlied@redhat.com>
Tue, 30 May 2017 05:52:13 +0000 (15:52 +1000)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Sep 2017 09:44:16 +0000 (11:44 +0200)
commitb65ff7a02df26f900faac52b3529662dc0148fab
tree84d1f629efa283d7a604e3394741999e974cd925
parent45c5c444518b7e83d9accd9f44702fa49282a3b8
st_glsl_to_tgsi: rewrite rename registers to use array fully.

Instead of having to search the whole array, just use the whole
thing and store a valid bit in there with the rename.

Removes this from the profile on some of the fp64 tests

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp