mesa/st/i965: add a ProgramResourceHash for quicker resource lookup
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 tapani.palli@intel.com