tgsi: store opcode mnemonics in a separate table
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 1 Aug 2017 21:09:48 +0000 (23:09 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 23 Aug 2017 11:54:57 +0000 (13:54 +0200)
commit26996ec3b8d84b981b7e55d4d0982cb9df444728
tree11000572189e75dbef41ad17022f9e8392298be0
parent438177aa190d4ee99e2230f1fcc5df1df59e21f4
tgsi: store opcode mnemonics in a separate table

They are only used for debug info.

Together with making tgsi_opcode_info::opcode a bitfield, this reduces
the size of tgsi_opcode_info on 64-bit systems from 24 bytes to 4 bytes,
and makes the whole data structure a bit more linker friendly.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_info.c
src/gallium/auxiliary/tgsi/tgsi_info.h