mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
vc4: Correct typo setting 'handled_qinst_cond'
Variable was previously always set to true. Accordingly, the later
assert() served no active purpose.
Found with GCC warning and code inspection:
mesa/src/gallium/drivers/vc4/vc4_qpu_emit.c: In function'vc4_generate_code':
mesa/src/gallium/drivers/vc4/vc4_qpu_emit.c:315:22: warning: variable 'handled_qinst_cond' set but not used [-Wunused-but-set-variable]
bool handled_qinst_cond = true;
^
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
655fa0f465
commit
c75ced3623
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ vc4_generate_code(struct vc4_context *vc4, struct vc4_compile *c)
|
|||
break;
|
||||
}
|
||||
|
||||
bool handled_qinst_cond = true;
|
||||
bool handled_qinst_cond = false;
|
||||
|
||||
switch (qinst->op) {
|
||||
case QOP_RCP:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue