All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] '! x & y' priority mistake in nvsDumpInstruction(), nouveau_shader.c
@ 2008-01-23 19:05 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2008-01-23 19:05 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

'!' has a higher priority than '&': bitanding has no effect.

Signed-off-by: Roel Kluin <12o3l-IWqWACnzNjzz+pZb47iToQ@public.gmane.org>
---
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));

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-23 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 19:05 [PATCH 1/1] '! x & y' priority mistake in nvsDumpInstruction(), nouveau_shader.c Roel Kluin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.