[Nouveau] [PATCH 1/1] '! x & y' priority mistake in nvsDumpInstruction(), nouveau_shader.c
Roel Kluin
12o3l at tiscali.nl
Wed Jan 23 11:05:07 PST 2008
'!' has a higher priority than '&': bitanding has no effect.
Signed-off-by: Roel Kluin <12o3l at tiscali.nl>
---
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_shader.c b/src/mesa/drivers/dri/nouveau/nouveau_shader.c
index b6837c5..1118fdb 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_shader.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_shader.c
@@ -554,7 +554,7 @@ nvsDumpInstruction(nvsInstruction * inst, int slot, int lvl)
nvsDumpIndent(lvl);
printf("%s ", opr->name);
- if (!opr->flags & NODS) {
+ if (!(opr->flags & NODS)) {
switch (inst->dest.file) {
case NVS_FILE_RESULT:
printf("result.%s", SFR_STRING(inst->dest.index));
More information about the Nouveau
mailing list