summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r700_asm.c
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2011-03-09 13:03:50 +0100
committerChristian König <deathsimple@vodafone.de>2011-03-09 14:49:03 +0100
commit8dc1dfc9f0b1c98d3bcad63c4a70a0952b865a9e (patch)
tree16008a28735e534f9b9f643fae50748cef9c3e4a /src/gallium/drivers/r600/r700_asm.c
parent830827229141c08411c521f81283d1ad62f37163 (diff)
r600g: split R600 and R700 CF generation for VTX and TEX
Reviewed-by: Henri Verbeet <hverbeet@gmail.com>
Diffstat (limited to 'src/gallium/drivers/r600/r700_asm.c')
-rw-r--r--src/gallium/drivers/r600/r700_asm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r700_asm.c b/src/gallium/drivers/r600/r700_asm.c
index a7f2f54736..b3c7d1494f 100644
--- a/src/gallium/drivers/r600/r700_asm.c
+++ b/src/gallium/drivers/r600/r700_asm.c
@@ -26,6 +26,15 @@
#include "r600_asm.h"
#include "r700_sq.h"
+void r700_bc_cf_vtx_build(uint32_t *bytecode, const struct r600_bc_cf *cf)
+{
+ unsigned count = (cf->ndw / 4) - 1;
+ *bytecode++ = S_SQ_CF_WORD0_ADDR(cf->addr >> 1);
+ *bytecode++ = S_SQ_CF_WORD1_CF_INST(cf->inst) |
+ S_SQ_CF_WORD1_BARRIER(1) |
+ S_SQ_CF_WORD1_COUNT(count) |
+ S_SQ_CF_WORD1_COUNT_3(count >> 3);
+}
int r700_bc_alu_build(struct r600_bc *bc, struct r600_bc_alu *alu, unsigned id)
{