summaryrefslogtreecommitdiff
path: root/src/i915_hwmc.h
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-06-27 09:39:02 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-06-28 19:15:57 +0800
commit989ec9e8a69f909cb64f17e4465982613b4b054d (patch)
treee788ad721cfe1020e581654aec98153bb393ba04 /src/i915_hwmc.h
parent550082070a3fdb951e3cf08974dc56276c0a739c (diff)
xvmc: Don't copy on xvmc surface in PutImage
As xvmc rendering result has already been in fb, we shouldn't do extra copy on it. Although special care is required for i915 xvmc surface pitch alignment, which must be at least 1KB aligned. So video display function should take it into acount instead of always setting Y pitch to be double of U/V pitch.
Diffstat (limited to 'src/i915_hwmc.h')
-rw-r--r--src/i915_hwmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i915_hwmc.h b/src/i915_hwmc.h
index 7d90afcc..8f6557da 100644
--- a/src/i915_hwmc.h
+++ b/src/i915_hwmc.h
@@ -29,6 +29,7 @@
#include "i830_hwmc.h"
+/* i915 hw requires surface to be at least 1KB aligned */
#define STRIDE(w) (((w) + 0x3ff) & ~0x3ff)
#define SIZE_Y420(w, h) (h * STRIDE(w))
#define SIZE_UV420(w, h) ((h >> 1) * STRIDE(w >> 1))