On Fri, 18 Nov 2011 08:53:30 +0800
Lan, Hai hai@intel.com wrote:
+ /*
+* We can take a larger source and scale it down, but
+* only so much... 16x is the max on SNB.
+*/
+ if (((src_w * src_h) / (crtc_w * crtc_h)) intel_plane-max_downscale)
+ return
+ /*
+ * We can take a larger source and scale it down, but
+ * only so much... 16x is the max on SNB.
+ */
+ if (((src_w * src_h) / (crtc_w * crtc_h)) intel_plane-max_downscale)
+ return -EINVAL;
+
[Lan, Hai] if crtc_w or crtc_h = 0, the drm driver will
On Mon, Nov 14, 2011 at 21:22, Jesse Barnes jbar...@virtuousgeek.org wrote:
The video sprites support various video surface formats natively and can
handle scaling as well. So add support for them using the new DRM core
sprite support functions.
v2: use drm specific fourcc header and defines
The video sprites support various video surface formats natively and can
handle scaling as well. So add support for them using the new DRM core
sprite support functions.
v2: use drm specific fourcc header and defines
v3: address Daniel's comments:
- don't take struct mutex around register
The video sprites support various video surface formats natively and can
handle scaling as well. So add support for them using the new DRM core
sprite support functions.
v2: use drm specific fourcc header and defines
v3: address Daniel's comments:
- don't take struct mutex around register