nir/search: handle explicitly sized sources in match_value
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 May 2015 15:33:01 +0000 (08:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 May 2015 00:29:14 +0000 (17:29 -0700)
commit13facfbd5b067daedc972c1a4fb2f2142fcbc190
treee925ac752c21e50196fd3554124b1ba182e0b236
parentf752effa087f29faddabac047683d16416d178d9
nir/search: handle explicitly sized sources in match_value

Previously, this case was being handled in match_expression prior to
calling match_value.  However, there is really no good reason for this
given that match_value has all of the information it needs.  Also, they
weren't being handled properly in the commutative case and putting it in
match_value gives us that for free.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_search.c