intel/disasm: Rework SEND decoding to use descriptors
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Nov 2018 20:49:25 +0000 (14:49 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 29 Jan 2019 18:43:55 +0000 (18:43 +0000)
commite46fb33143c20132e8a56e20a6ea4c768886bc79
tree416ae837bdcd01bdfb9063397063eb638bf01f0b
parent13a6fabc628505f3a940c47a179db23f5ea91652
intel/disasm: Rework SEND decoding to use descriptors

Instead of fetching the information out of the instruction directly,
fetch the descriptor and then pluck the information out of the
descriptor.  The current scheme works ok for SEND but with SENDS, it all
falls to pieces because the descriptor is completely shuffled around.

This commit doesn't actually convert everything.  One notable exception
is URB messages which don't even use descriptors in emit_urb_WRITE yet.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_disasm.c