nvc0: don't fold loads from local memory

This commit is contained in:
Christoph Bumiller 2011-02-20 13:13:11 +01:00
parent 9612139907
commit b5f04b2008
1 changed files with 5 additions and 0 deletions

View 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;