st_glsl_to_tgsi: replace variables tracking list with a hash table
authorDave Airlie <airlied@redhat.com>
Tue, 30 May 2017 05:52:14 +0000 (15:52 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Jun 2017 21:57:50 +0000 (07:57 +1000)
commit4453fbb02447288e21206a676a24ff70b64857b1
tree1a9e8d2ac319e0983ffccc13aaff02ad4482eccd
parent3008161d28e38336ba39aba4769a2deaf9732f55
st_glsl_to_tgsi: replace variables tracking list with a hash table

This removes the linear search which is fail when number of variables
goes up to 30000 or so.

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