|
@@ -2011,25 +2011,26 @@ struct drm_i915_gem_object_ops {
|
|
|
|
|
|
/*
|
|
/*
|
|
* Frontbuffer tracking bits. Set in obj->frontbuffer_bits while a gem bo is
|
|
* Frontbuffer tracking bits. Set in obj->frontbuffer_bits while a gem bo is
|
|
- * considered to be the frontbuffer for the given plane interface-vise. This
|
|
|
|
|
|
+ * considered to be the frontbuffer for the given plane interface-wise. This
|
|
* doesn't mean that the hw necessarily already scans it out, but that any
|
|
* doesn't mean that the hw necessarily already scans it out, but that any
|
|
* rendering (by the cpu or gpu) will land in the frontbuffer eventually.
|
|
* rendering (by the cpu or gpu) will land in the frontbuffer eventually.
|
|
*
|
|
*
|
|
* We have one bit per pipe and per scanout plane type.
|
|
* We have one bit per pipe and per scanout plane type.
|
|
*/
|
|
*/
|
|
-#define INTEL_FRONTBUFFER_BITS_PER_PIPE 4
|
|
|
|
|
|
+#define INTEL_MAX_SPRITE_BITS_PER_PIPE 5
|
|
|
|
+#define INTEL_FRONTBUFFER_BITS_PER_PIPE 8
|
|
#define INTEL_FRONTBUFFER_BITS \
|
|
#define INTEL_FRONTBUFFER_BITS \
|
|
(INTEL_FRONTBUFFER_BITS_PER_PIPE * I915_MAX_PIPES)
|
|
(INTEL_FRONTBUFFER_BITS_PER_PIPE * I915_MAX_PIPES)
|
|
#define INTEL_FRONTBUFFER_PRIMARY(pipe) \
|
|
#define INTEL_FRONTBUFFER_PRIMARY(pipe) \
|
|
(1 << (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe)))
|
|
(1 << (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe)))
|
|
#define INTEL_FRONTBUFFER_CURSOR(pipe) \
|
|
#define INTEL_FRONTBUFFER_CURSOR(pipe) \
|
|
- (1 << (1 +(INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe))))
|
|
|
|
-#define INTEL_FRONTBUFFER_SPRITE(pipe) \
|
|
|
|
- (1 << (2 +(INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe))))
|
|
|
|
|
|
+ (1 << (1 + (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe))))
|
|
|
|
+#define INTEL_FRONTBUFFER_SPRITE(pipe, plane) \
|
|
|
|
+ (1 << (2 + plane + (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe))))
|
|
#define INTEL_FRONTBUFFER_OVERLAY(pipe) \
|
|
#define INTEL_FRONTBUFFER_OVERLAY(pipe) \
|
|
- (1 << (3 +(INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe))))
|
|
|
|
|
|
+ (1 << (2 + INTEL_MAX_SPRITE_BITS_PER_PIPE + (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe))))
|
|
#define INTEL_FRONTBUFFER_ALL_MASK(pipe) \
|
|
#define INTEL_FRONTBUFFER_ALL_MASK(pipe) \
|
|
- (0xf << (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe)))
|
|
|
|
|
|
+ (0xff << (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe)))
|
|
|
|
|
|
struct drm_i915_gem_object {
|
|
struct drm_i915_gem_object {
|
|
struct drm_gem_object base;
|
|
struct drm_gem_object base;
|