Skip to contentSkip to conversation

two typos in nouveau_shader.c

PATCH New Roel Kluin 1 participant 1 message Jan 23, 2008

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 two typos in nouveau_shader.c

There appears to be another typo in the file (this patch includes both fixes):
--
Fix two typos

---

src/mesa/drivers/dri/nouveau/nouveau_shader.c +2 -2
index b6837c5..f0196e9 100644
@@ -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));
@@ -635,7 +635,7 @@ nvsDisasmHWShaderOp(nvsFunc * shader, int merged)
 
    printf("%s", opi->name);
    if (shader->GetPrecision &&
-       (!(opi->flags & BRANCH_ALL)) && (!(opi->flags * NODS)) &&
+       (!(opi->flags & BRANCH_ALL)) && (!(opi->flags & NODS)) &&
        (op != NVS_OP_NOP))
       printf("%s", NVS_PREC_STRING(shader->GetPrecision(shader)));
    if (shader->SupportsConditional && shader->SupportsConditional(shader)) {