From: Eric Engestrom Date: Tue, 21 May 2019 17:05:34 +0000 (+0100) Subject: anv: replace magic `| 1` with already #define'd name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a62ee262fd43f1c7f204de4e5b822d95c2ff6977;p=mesa.git anv: replace magic `| 1` with already #define'd name Signed-off-by: Eric Engestrom Reviewed-by: Jason Ekstrand Part-of: --- 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) {