Skip to content

Commit

Permalink
anv: Disable VK_EXT_calibrated_timestamps
Browse files Browse the repository at this point in the history
GPU timestamp register can't be accessed from VF with DRM_IOCTL_I915_REG_READ
so disable it.

This can fix cts deqp failure dEQP-VK.pipeline.monolithic.timestamp.calibrated.*

Tracked-On: OAM-118226
Signed-off-by: Lin, Shenghua <[email protected]>
  • Loading branch information
ShenghuaLinINTEL authored and sysopenci committed May 8, 2024
1 parent ffcd2d1 commit 5bd3c53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/intel/common/i915/intel_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ i915_gem_read_render_timestamp(int fd, uint64_t *value)
int ret = intel_ioctl(fd, DRM_IOCTL_I915_REG_READ, &reg_read);
if (ret == 0)
*value = reg_read.val;
return ret == 0;

/* GPU timestamp register can't be accessed from VF, invalid value 0xffffffffffffffff
* is returned in this case, so return false.
*/
return ret == 0 && *value != 0xffffffffffffffff;
}

bool
Expand Down

0 comments on commit 5bd3c53

Please sign in to comment.