gallium: Print texture target for short dumps.

This commit is contained in:
Michal Krol 2008-02-26 20:32:42 +01:00
parent 75dac3959f
commit 36aa9cf781

View file

@ -664,6 +664,19 @@ static const char *TGSI_TEXTURES[] =
"TEXTURE_SHADOWRECT"
};
static const char *TGSI_TEXTURES_SHORT[] =
{
"UNKNOWN",
"1D",
"2D",
"3D",
"CUBE",
"RECT",
"SHADOW1D",
"SHADOW2D",
"SHADOWRECT"
};
static const char *TGSI_SRC_REGISTER_EXTS[] =
{
"SRC_REGISTER_EXT_TYPE_SWZ",
@ -1037,6 +1050,11 @@ dump_instruction_short(
first_reg = FALSE;
}
if (inst->InstructionExtTexture.Texture != TGSI_TEXTURE_UNKNOWN) {
TXT( ", " );
ENM( inst->InstructionExtTexture.Texture, TGSI_TEXTURES_SHORT );
}
switch( inst->Instruction.Opcode ) {
case TGSI_OPCODE_IF:
case TGSI_OPCODE_ELSE: