From 776fcccabf643d2128e6d63c435daf5f051985b1 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 18 Aug 2017 21:14:01 +0200 Subject: gallium/radeon: clean up EOP_DATA_SEL magic numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/amd/common/r600d_common.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/amd') 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 -- cgit v1.2.3