Skip to content

Commit

Permalink
drm/i915/cnl: Allow the reg_read ioctl to read the RCS TIMESTAMP regi…
Browse files Browse the repository at this point in the history
…ster

This enables the Mesa driver to advertise support for ARB_timer_query, and
thus an OpenGL version higher than 3.2.

Suggested-by: Ben Widawsky <ben@bwidawsk.net>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170905184507.30046-1-nanley.g.chery@intel.com
  • Loading branch information
Nanley Chery authored and Rodrigo Vivi committed Sep 6, 2017
1 parent 5d95c24 commit f129458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_uncore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ static const struct register_whitelist {
} whitelist[] = {
{ .offset_ldw = RING_TIMESTAMP(RENDER_RING_BASE),
.offset_udw = RING_TIMESTAMP_UDW(RENDER_RING_BASE),
.size = 8, .gen_bitmask = GEN_RANGE(4, 9) },
.size = 8, .gen_bitmask = GEN_RANGE(4, 10) },
};

int i915_reg_read_ioctl(struct drm_device *dev,
Expand Down

0 comments on commit f129458

Please sign in to comment.