drm/i915: Add OACONTROL to the command parser register whitelist.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Mar 2014 05:52:03 +0000 (22:52 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Apr 2014 20:58:16 +0000 (22:58 +0200)
commit180b813ced1d1341c07f25e5195228100921d327
tree8fc2143e31c198caba3eb9beea276b5c13fa31b9
parent5c411bb18da78021e87cc192c5ed7ec0500f70ef
drm/i915: Add OACONTROL to the command parser register whitelist.

Mesa needs to be able to write OACONTROL in order to expose the
Observability Architecture's performance counters via OpenGL.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
[danvet: Add comment that this is just a temporary work-around and
that we need to check more things before we can allow OACONTROL writes
for real everywhere.]
[danvet 2: Squash in fixup to avoid a DRM_ERROR due to unsorted reg
list, spotted by Jani.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_reg.h