[Mesa-dev] [PATCH 6/6] r600g: fixed the bug with VTX fetches in TEX clauses for evergreen
Tom Stellard
tstellar at gmail.com
Thu Apr 26 05:46:57 PDT 2012
From: Adam Rak <adam.rak at streamnovation.com>
---
src/gallium/drivers/r600/r600_asm.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index d1a0a4a..d3c46df 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2027,13 +2027,12 @@ int r600_bytecode_build(struct r600_bytecode *bc)
}
break;
case EG_V_SQ_CF_WORD1_SQ_CF_INST_TEX:
- if (bc->chip_class == CAYMAN) {
- LIST_FOR_EACH_ENTRY(vtx, &cf->vtx, list) {
- r = r600_bytecode_vtx_build(bc, vtx, addr);
- if (r)
- return r;
- addr += 4;
- }
+ LIST_FOR_EACH_ENTRY(vtx, &cf->vtx, list) {
+ assert(bc->chip_class >= EVERGREEN);
+ r = r600_bytecode_vtx_build(bc, vtx, addr);
+ if (r)
+ return r;
+ addr += 4;
}
LIST_FOR_EACH_ENTRY(tex, &cf->tex, list) {
r = r600_bytecode_tex_build(bc, tex, addr);
--
1.7.7.6
More information about the mesa-dev
mailing list