tgsi: Fix sanity checks for indirect registers.
This commit is contained in:
@@ -335,13 +335,13 @@ iter_instruction(
|
|||||||
fill_scan_register1d(ind_reg,
|
fill_scan_register1d(ind_reg,
|
||||||
inst->Src[i].Indirect.File,
|
inst->Src[i].Indirect.File,
|
||||||
inst->Src[i].Indirect.Index);
|
inst->Src[i].Indirect.Index);
|
||||||
if (!(reg->file == TGSI_FILE_ADDRESS || reg->file == TGSI_FILE_LOOP) ||
|
if (!(ind_reg->file == TGSI_FILE_ADDRESS || ind_reg->file == TGSI_FILE_LOOP) ||
|
||||||
reg->indices[0] != 0) {
|
ind_reg->indices[0] != 0) {
|
||||||
report_warning(ctx, "Indirect register neither ADDR[0] nor LOOP[0]");
|
report_warning(ctx, "Indirect register neither ADDR[0] nor LOOP[0]");
|
||||||
}
|
}
|
||||||
check_register_usage(
|
check_register_usage(
|
||||||
ctx,
|
ctx,
|
||||||
reg,
|
ind_reg,
|
||||||
"indirect",
|
"indirect",
|
||||||
FALSE );
|
FALSE );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user