summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600d_common.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-02 10:26:51 +1000
committerDave Airlie <[email protected]>2017-11-10 08:39:36 +1000
commit06993e4ee350b9c2ab1e3ee7686878add3900d39 (patch)
tree354a8654e8f0ef19dd201b469b922f937e0f8085 /src/gallium/drivers/r600/r600d_common.h
parent9e62654d4b47adfd5bdd60389dee17fdd17dba73 (diff)
r600: add support for hw atomic counters. (v3)
This adds support for the evergreen/cayman atomic counters. These are implemented using GDS append/consume counters. The values for each counter are loaded before drawing and saved after each draw using special CP packets. v2: move hw atomic assignment into driver. v3: fix messing up caps (Gert Wollny), only store ranges in driver, drop buffers. Signed-off-by: Dave Airlie <[email protected]> Acked-by: Nicolai Hähnle <[email protected]> Tested-By: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600d_common.h')
-rw-r--r--src/gallium/drivers/r600/r600d_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600d_common.h b/src/gallium/drivers/r600/r600d_common.h
index ed1d46076c0..b06f90f8edd 100644
--- a/src/gallium/drivers/r600/r600d_common.h
+++ b/src/gallium/drivers/r600/r600d_common.h
@@ -51,6 +51,8 @@
#define STRMOUT_SELECT_BUFFER(x) (((unsigned)(x) & 0x3) << 8)
#define PKT3_WAIT_REG_MEM 0x3C
#define WAIT_REG_MEM_EQUAL 3
+#define WAIT_REG_MEM_GEQUAL 5
+#define WAIT_REG_MEM_MEMORY (1 << 4)
#define WAIT_REG_MEM_MEM_SPACE(x) (((unsigned)(x) & 0x3) << 4)
#define PKT3_COPY_DATA 0x40
#define COPY_DATA_SRC_SEL(x) ((x) & 0xf)