aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-02-13 14:23:44 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-17 17:29:51 -0400
commita4001f1b75cdb06db0febd9e72d3631f73ba8171 (patch)
tree3c4db0ac56bb5b6e1480be8d275ab130b9e44b2f /drivers/gpu/drm/i915/intel_drv.h
parentff42e093e9c9c17a6e1d6aab24875a36795f926e (diff)
drm/i915: pass which operation triggered the frontbuffer tracking
We want to port FBC to the frontbuffer tracking infrastructure, but for that we need to know what caused the object invalidation so we can react accordingly: CPU mmaps need manual, GTT mmaps and flips don't need handling and ring rendering needs nukes. v2: - s/ORIGIN_RENDER/ORIGIN_CS/ (Daniel, Rodrigo) - Fix copy/pasted wrong documentation - Rebase v3: - Rebase v4: - Don't pass the operation to flushes (Daniel). Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 773f19bcd498..61a40ab61d6b 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -873,7 +873,8 @@ void intel_ddi_set_vc_payload_alloc(struct drm_crtc *crtc, bool state);
873 873
874/* intel_frontbuffer.c */ 874/* intel_frontbuffer.c */
875void intel_fb_obj_invalidate(struct drm_i915_gem_object *obj, 875void intel_fb_obj_invalidate(struct drm_i915_gem_object *obj,
876 struct intel_engine_cs *ring); 876 struct intel_engine_cs *ring,
877 enum fb_op_origin origin);
877void intel_frontbuffer_flip_prepare(struct drm_device *dev, 878void intel_frontbuffer_flip_prepare(struct drm_device *dev,
878 unsigned frontbuffer_bits); 879 unsigned frontbuffer_bits);
879void intel_frontbuffer_flip_complete(struct drm_device *dev, 880void intel_frontbuffer_flip_complete(struct drm_device *dev,