spirv: Use a dereference instead of vtn_variable_resource_index
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 Oct 2017 23:33:32 +0000 (16:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 Dec 2017 04:55:37 +0000 (20:55 -0800)
commit91d91ce3e24f198f2f5b88c22e3186a22334295e
treee0033c197b9116408e3165866b0a98c76b6f3d18
parentdee936c8056aa35847258e9707028a45038eaf56
spirv: Use a dereference instead of vtn_variable_resource_index

This is equivalent and means we don't have resource index code scattered
about.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/spirv/vtn_variables.c