[Intel-gfx] [PATCH 04/11] drm/i915: add SNB video sprite support

Jesse Barnes jbarnes at virtuousgeek.org
Wed Nov 2 16:58:21 CET 2011


On Wed, 2 Nov 2011 05:56:56 +0000 (UTC)
Inki Dae <daeinki at gmail.com> wrote:

> Hi, Jesse.
> 
> drm_plane structure has format_types and format_conunt that they was set at 
> booting time. but they aren't used anywhere. at intel_update_plane(), I guess 
> they could be used to check if the format type(fb->pixel_format) from setplane
> () is supported or not, comparing to plane->format_types[n]; otherwise, could 
> you please tell me about the purpose that format_types[] and format_count are 
> used?

They're supposed to be used by application/library code to negotiate a
surface format to pass to the kernel.

So for example, libva could query the available surface formats then
choose an output format that it can decode to directly if possible, to
avoid any format conversion on the CPU.

-- 
Jesse Barnes, Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20111102/644f1281/attachment.sig>


More information about the Intel-gfx mailing list