[Mesa-dev] [PATCH 10/30] r600: add support for valid pixel mode on CF clauses

Dave Airlie airlied at gmail.com
Thu Mar 31 07:03:39 UTC 2016


From: Dave Airlie <airlied at redhat.com>

This just adds support to the assembler for setting the valid
pixel mode on the CF clause.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/drivers/r600/eg_asm.c   | 1 +
 src/gallium/drivers/r600/r600_asm.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/gallium/drivers/r600/eg_asm.c b/src/gallium/drivers/r600/eg_asm.c
index 46683c1..b268c10 100644
--- a/src/gallium/drivers/r600/eg_asm.c
+++ b/src/gallium/drivers/r600/eg_asm.c
@@ -73,6 +73,7 @@ int eg_bytecode_cf_build(struct r600_bytecode *bc, struct r600_bytecode_cf *cf)
 			bc->bytecode[id++] = S_SQ_CF_WORD0_ADDR(cf->addr >> 1);
 			bc->bytecode[id++] = S_SQ_CF_WORD1_CF_INST(opcode) |
 					S_SQ_CF_WORD1_BARRIER(1) |
+					S_SQ_CF_WORD1_VALID_PIXEL_MODE(cf->vpm) |
 					S_SQ_CF_WORD1_COUNT((cf->ndw / 4) - 1);
 		} else if (cfop->flags & CF_EXP) {
 			/* EXPORT instructions */
diff --git a/src/gallium/drivers/r600/r600_asm.h b/src/gallium/drivers/r600/r600_asm.h
index be83f3a..97c7e57 100644
--- a/src/gallium/drivers/r600/r600_asm.h
+++ b/src/gallium/drivers/r600/r600_asm.h
@@ -176,6 +176,7 @@ struct r600_bytecode_cf {
 	unsigned			eg_alu_extended;
 	unsigned			barrier;
 	unsigned			end_of_program;
+	unsigned                        vpm;
 	struct list_head		alu;
 	struct list_head		tex;
 	struct list_head		vtx;
-- 
2.5.0



More information about the mesa-dev mailing list