summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-06-05 13:58:56 +0200
committerGert Wollny <[email protected]>2018-06-20 11:08:28 +0200
commit94f40d3ac06d481b66cc0f0cd21ef7bbfedd936d (patch)
tree24b1df4df7097c03f7158ecd2770f2ea93fd251a /src/gallium/auxiliary
parentdc46b2aa990b85f47794a604141ec8239ffe868a (diff)
gallium/aux/tgsi_build.c: Remove now unused variable
Removing the unused prev_tocken from the function calls made this local variable also unused. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_build.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
index 2bb4a9dd7db..3f244231253 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_build.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
@@ -1061,7 +1061,6 @@ tgsi_build_full_instruction(
unsigned size = 0;
unsigned i;
struct tgsi_instruction *instruction;
- struct tgsi_token *prev_token;
if( maxsize <= size )
return 0;
@@ -1074,7 +1073,6 @@ tgsi_build_full_instruction(
full_inst->Instruction.NumDstRegs,
full_inst->Instruction.NumSrcRegs,
header);
- prev_token = (struct tgsi_token *) instruction;
if (full_inst->Instruction.Label) {
struct tgsi_instruction_label *instruction_label;
@@ -1088,8 +1086,7 @@ tgsi_build_full_instruction(
*instruction_label = tgsi_build_instruction_label(
full_inst->Label.Label,
instruction,
- header );
- prev_token = (struct tgsi_token *) instruction_label;
+ header );
}
if (full_inst->Instruction.Texture) {
@@ -1107,7 +1104,6 @@ tgsi_build_full_instruction(
full_inst->Texture.ReturnType,
instruction,
header );
- prev_token = (struct tgsi_token *) instruction_texture;
for (i = 0; i < full_inst->Texture.NumOffsets; i++) {
struct tgsi_texture_offset *texture_offset;
@@ -1124,7 +1120,6 @@ tgsi_build_full_instruction(
full_inst->TexOffsets[i].SwizzleZ,
instruction,
header);
- prev_token = (struct tgsi_token *) texture_offset;
}
}
@@ -1143,7 +1138,6 @@ tgsi_build_full_instruction(
full_inst->Memory.Format,
instruction,
header );
- prev_token = (struct tgsi_token *) instruction_memory;
}
for( i = 0; i < full_inst->Instruction.NumDstRegs; i++ ) {