anv: replace magic `| 1` with already #define'd name
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 21 May 2019 17:05:34 +0000 (18:05 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 21:49:10 +0000 (21:49 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2797>

src/intel/vulkan/anv_device.c

index 8004b0fbc5b345b2d618946c8ce73c4fa2496579..fe87c233d15747168b47ab165843b37cf0d3e95d 100644 (file)
@@ -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) {