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)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Jun 2017 21:56:33 +0000 (07:56 +1000)
commit3008161d28e38336ba39aba4769a2deaf9732f55
tree90b57079db04d080b09025422f7bd165720a2586
parent3bc716979300c865f8793783142f16838cd0a175
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