intel/compiler: validate region restrictions for half-float conversions
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 1 Feb 2019 10:41:33 +0000 (11:41 +0100)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 18 Apr 2019 09:05:18 +0000 (11:05 +0200)
commit7376d57a9c6ae69bc47bbbfe5d3b1a0ed0639227
treea5741455436867d3e82bdab21ee2bad4f458491b
parent6ff52f0628a1d3401a3a18eb576158e4de66d044
intel/compiler: validate region restrictions for half-float conversions

v2:
 - Consider implicit conversions in 2-src instructions too (Curro)
 - For restrictions that involve destination stride requirements
   only validate them for Align1, since Align16 always requires
   packed data.
 - Skip general rule for the dst/execution type size ratio for
   mixed float instructions on CHV and SKL+, these have their own
   set of rules that we'll be validated separately.

v3 (Curro):
 - Do not check src1 type in single-source instructions.
 - Check restriction on src1.
 - Remove invalid test.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_eu_validate.c
src/intel/compiler/test_eu_validate.cpp