nvc0: don't fold loads from local memory
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 20 Feb 2011 12:13:11 +0000 (13:13 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 24 Feb 2011 16:35:36 +0000 (17:35 +0100)
src/gallium/drivers/nvc0/nvc0_pc.c

index 3a3a00f27bef932e0bb124a267cab39bab0da6cc..f51d289e8cdf3662477fd906bcfe3085870c0af2 100644 (file)
@@ -44,6 +44,11 @@ nvc0_insn_can_load(struct nv_instruction *nvi, int s,
    if (ld->indirect >= 0)
       return FALSE;
 
+   /* a few ops can use g[] sources directly, but we don't support g[] yet */
+   if (ld->src[0]->value->reg.file == NV_FILE_MEM_L ||
+       ld->src[0]->value->reg.file == NV_FILE_MEM_G)
+      return FALSE;
+
    for (i = 0; i < 3 && nvi->src[i]; ++i)
       if (nvi->src[i]->value->reg.file == NV_FILE_IMM)
          return FALSE;