[PATCH v2] modetest: initialize handles/pitches in set_plane()
Tobias Jakobi
tjakobi at math.uni-bielefeld.de
Thu Apr 23 06:39:05 PDT 2015
Hello Ilia,
On 2015-04-21 21:15, Ilia Mirkin wrote:
> I know it was immensely useful to me when I was adding YUV plane
> support to nouveau. Seemed to work as advertised at the time (1.5y
> ago) for YUYV, UYVY, and NV12.
>
> -ilia
maybe you can help me with that question.
Let's consider a user of the DRM interface that wants to feed NV12 data
to it. NV12 is bi-planar, so the user should provide two
handles/pitches/offsets describing chroma and luma plane respectively.
But most of the time chroma and luma is contiguous in memory, with
nothing in between.
I was wondering if it is an allowed setup to request NV12 as
pixelformat, but only to provide _one_ handle/pitch/offset? (implying
that we are in the contiguous setting)
With best wishes,
Tobias
More information about the dri-devel
mailing list