Mesa (master): nvc0: don't fold loads from local memory
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Thu Feb 24 16:36:25 UTC 2011
Module: Mesa
Branch: master
Commit: b5f04b20089c219f760fb6a369041bd782708247
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5f04b20089c219f760fb6a369041bd782708247
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Sun Feb 20 13:13:11 2011 +0100
nvc0: don't fold loads from local memory
---
src/gallium/drivers/nvc0/nvc0_pc.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nvc0/nvc0_pc.c b/src/gallium/drivers/nvc0/nvc0_pc.c
index 3a3a00f..f51d289 100644
--- a/src/gallium/drivers/nvc0/nvc0_pc.c
+++ b/src/gallium/drivers/nvc0/nvc0_pc.c
@@ -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;
More information about the mesa-commit
mailing list