intel/eu/validate: Look up types on demand in execution_type()
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Aug 2017 22:41:43 +0000 (15:41 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Sep 2017 22:01:00 +0000 (15:01 -0700)
commitd496780fb2c7f2cf0e32b6a79dc528e5156dfcb3
treed4c62d199a66fd4b27d50aefec8346a003d10033
parent4ba20c94738d1261c4ce687ea929efd10393b9ef
intel/eu/validate: Look up types on demand in execution_type()

We are looking up the execution type prior to checking how many sources
we have.  This leads to looking for a type for src1 on MOV instructions
which is bogus.  On BDW+, the src1 register type overlaps with the
64-bit immediate and causes us problems.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/compiler/brw_eu_validate.c