mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
tgsi: Fix bogus loop condition in sanity.
This commit is contained in:
parent
c301fa6fc8
commit
767d1472df
1 changed files with 2 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ is_any_register_declared(
|
|||
struct cso_hash_iter iter =
|
||||
cso_hash_first_node(ctx->regs_decl);
|
||||
|
||||
while (cso_hash_iter_is_null(iter)) {
|
||||
while (!cso_hash_iter_is_null(iter)) {
|
||||
scan_register *reg = (scan_register *)cso_hash_iter_data(iter);
|
||||
if (reg->file == file)
|
||||
return TRUE;
|
||||
|
|
@ -488,7 +488,7 @@ epilog(
|
|||
struct cso_hash_iter iter =
|
||||
cso_hash_first_node(ctx->regs_decl);
|
||||
|
||||
while (cso_hash_iter_is_null(iter)) {
|
||||
while (!cso_hash_iter_is_null(iter)) {
|
||||
scan_register *reg = (scan_register *)cso_hash_iter_data(iter);
|
||||
if (!is_register_used(ctx, reg) && !is_ind_register_used(ctx, reg)) {
|
||||
report_warning( ctx, "%s[%u]: Register never used",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue