intel/disasm: Don't rely on FALLTHROUGHTs to print unsupported SFID
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 24 Nov 2020 06:04:51 +0000 (21:04 -0900)
committerMarge Bot <eric+marge@anholt.net>
Wed, 25 Nov 2020 16:46:16 +0000 (16:46 +0000)
commitff9ea469f6b319cb07ee1ebbb687fa19c9d48e1c
tree8e6502018c0fbc032cb990e472244c637a155693
parentae27d7faae490ab7680fb059071d667d7261dca6
intel/disasm: Don't rely on FALLTHROUGHTs to print unsupported SFID

The code works but is a bit fragile if we ever add a case that has a
less strict requirement (a smaller gen) than the case above.  To avoid
having to reason about this, refactor code to use a variable to
indicate whether the SFID is supported or not.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7742>
src/intel/compiler/brw_disasm.c