mesa/st/i965: add a ProgramResourceHash for quicker resource lookup

Tapani Pälli requested to merge tpalli/mesa:hash-resources into master

Many resource APIs require searching by name, add a hash table to make this faster. Currently we traverse the whole resource list for name based queries, this change makes all these cases use the hash.

Closes: #2203 (closed) Signed-off-by: Tapani Pälli

Merge request reports