From a62ee262fd43f1c7f204de4e5b822d95c2ff6977 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 21 May 2019 18:05:34 +0100 Subject: [PATCH] anv: replace magic `| 1` with already #define'd name Signed-off-by: Eric Engestrom Reviewed-by: Jason Ekstrand Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 8004b0fbc5b..fe87c233d15 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -4448,7 +4448,7 @@ VkResult anv_GetCalibratedTimestampsEXT( for (d = 0; d < timestampCount; d++) { switch (pTimestampInfos[d].timeDomain) { case VK_TIME_DOMAIN_DEVICE_EXT: - ret = anv_gem_reg_read(device->fd, TIMESTAMP | 1, + ret = anv_gem_reg_read(device->fd, TIMESTAMP | I915_REG_READ_8B_WA, &pTimestamps[d]); if (ret != 0) { -- 2.30.2