summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-08-18 21:14:01 +0200
committerMarek Olšák <[email protected]>2017-08-22 13:29:47 +0200
commit776fcccabf643d2128e6d63c435daf5f051985b1 (patch)
tree8f72e720fd6ad1fd6b50e23f6265618d2013a939 /src/amd/common
parenta57f588fa9a376ee7421a612b86c9825a220775f (diff)
gallium/radeon: clean up EOP_DATA_SEL magic numbers
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/r600d_common.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/amd/common/r600d_common.h b/src/amd/common/r600d_common.h
index 0b61215f2bc..57757469e52 100644
--- a/src/amd/common/r600d_common.h
+++ b/src/amd/common/r600d_common.h
@@ -68,12 +68,10 @@
#define PKT3_EVENT_WRITE 0x46
#define PKT3_EVENT_WRITE_EOP 0x47
#define EOP_DATA_SEL(x) ((x) << 29)
- /* 0 - discard
- * 1 - send low 32bit data
- * 2 - send 64bit data
- * 3 - send 64bit GPU counter value
- * 4 - send 64bit sys counter value
- */
+#define EOP_DATA_SEL_DISCARD 0
+#define EOP_DATA_SEL_VALUE_32BIT 1
+#define EOP_DATA_SEL_VALUE_64BIT 2
+#define EOP_DATA_SEL_TIMESTAMP 3
#define PKT3_RELEASE_MEM 0x49 /* GFX9+ */
#define PKT3_SET_CONFIG_REG 0x68
#define PKT3_SET_CONTEXT_REG 0x69