mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
gallium: Print texture target for short dumps.
This commit is contained in:
parent
75dac3959f
commit
36aa9cf781
1 changed files with 18 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue