]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add the predicate source registers to the register whitelist
authorNeil Roberts <neil@linux.intel.com>
Fri, 7 Nov 2014 19:00:26 +0000 (19:00 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Nov 2014 09:29:24 +0000 (10:29 +0100)
commitae4019eab4d509771d33f7779453504c08d6a2d8
treebcb3273a8a206b9f5e7c88bbb6d2587812a87778
parent7e9f2e9d8805449f1cfd77d3634b98e59fd8c80a
drm/i915: Add the predicate source registers to the register whitelist

The predicate source registers are needed to implement conditional
rendering without stalling. The two source registers are used to load
the previous values of the PS_DEPTH_COUNT register saved from
PIPE_CONTROL commands. These can then be compared and used to set the
predicate enable bit via the MI_PREDICATE command.

The command parser version number is increased to 2 to make it easier
to detect the new functionality in user space.

Signed-off-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_reg.h