intel/compiler: Avoid false positive assertions
authorMatt Turner <mattst88@gmail.com>
Mon, 10 Dec 2018 19:42:44 +0000 (11:42 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 10 Jan 2019 00:42:41 +0000 (16:42 -0800)
commit3b967e172456ccb876974fb17aae39d0c6c743e0
treed4ef862e0ff560b8bd23fc9606953b26c36a6826
parent8534742404a7cec87b5c01011b68dd9ca6f2493e
intel/compiler: Avoid false positive assertions

A follow on patch will move the 'nr' field to the union containing the
immediate field, so prepare by checking that we're only testing these
assertions if the .file is correct.

The assertions with != ARF were kind of silly to begin with because the
<128 check is specifically only for things in the GRF.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_eu_emit.c