st/mesa: cache tgsi opcode info in the instruction
authorDave Airlie <airlied@redhat.com>
Thu, 27 Aug 2015 00:01:00 +0000 (01:01 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Aug 2015 10:26:23 +0000 (11:26 +0100)
commit46968c114003b30be335adccbc30445aca9b5dea
tree4f58510a29c5d303b4b8cd8c43bb383c41dc9543
parent03b7ec877843cd622717b01c1047e08baf34facf
st/mesa: cache tgsi opcode info in the instruction

Instead of looking this up lots, lets just cache it in the instruction
translation up front. I just noticed this function what high in a profile
of shader-db on radeonsi.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp