intel/eu: Encode and decode native instruction opcodes from/to IR opcodes.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 24 Jan 2018 03:23:20 +0000 (19:23 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 11 Oct 2019 19:24:16 +0000 (12:24 -0700)
commit057902dcf8d287f0b110b03f67ae33d338a7497c
tree0d7666abc6739224fecac2154d98833ff1bb44b5
parent25dd67099df301f09ce40b8f9c5a3bbc857e367c
intel/eu: Encode and decode native instruction opcodes from/to IR opcodes.

Change brw_inst_set_opcode() and brw_inst_opcode() to call
brw_opcode_encode/decode() transparently in order to translate between
hardware and IR opcodes, and update the EU compaction code in order to
do the same as needed, so we can eventually drop the one-to-one
correspondence between hardware and IR opcodes.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_compact.c
src/intel/compiler/brw_eu_emit.c
src/intel/compiler/brw_eu_validate.c
src/intel/compiler/brw_inst.h
src/intel/compiler/test_eu_compact.cpp
src/intel/compiler/test_eu_validate.cpp