intel/tools: Don't hardcode notification register
authorMatt Turner <mattst88@gmail.com>
Thu, 16 Jul 2020 05:33:25 +0000 (22:33 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 31 Jul 2020 19:59:24 +0000 (12:59 -0700)
commit63181df09bc6fd833d2e22ce8ce80e17a5fa57d4
treed2fb45588543850e4e4b6c22dcb4534186371ee8
parent90c18ec8db8bed6e1a12ce0a5209c5d4ff1abf99
intel/tools: Don't hardcode notification register

Previously we parsed a src non-terminal but did nothing with it. Since
the WAIT instruction is kind of weird, in that you have to give it the
same notification subregister for both destination and source, and it
always has an exec size of 1, let's parse a destination instead of a
source. This way, we can parse a writemask rather than a swizzle in
align16 mode, and easily convert the writemask to a swizzle to create
the source register.

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
src/intel/tools/i965_gram.y
src/intel/tools/tests/gen8/wait.asm
src/intel/tools/tests/gen9/wait.asm