[Mesa-dev] nouveau -> dmabuf -> intel seems to requires linear layout

Julien Isorce julien.isorce at gmail.com
Mon Nov 23 01:29:36 PST 2015


Hi,

I tried zero-copy decoding with the following scheme:
"nouveau" HW decoding -> dmabuf -> intel GL
but it showed garbage. Colors looked okish but not pixel positions.

(note that nouveau dec -> dmabuf -> nouveau GL and  intel dec -> dmabuf ->
intel GL are both working)

So I was thinking a problem with the layout. So the hack from attached
patch made it work :)
EGL_EXT_image_dma_buf_import does not mention anything about layout, only
some hints for YUVs.

I would appreciate any feedback on this. Thx

Infos:
Linux 4.4
Mesa latest master
GPU1: GeForce GT 750M
GPU2: Haswell

Cheers
Julien

PS: Note that in all cases, there is an extra step to convert NV12 to RGBX
which is done in HW (through VA-API - Post Processing)
Indeed vaAcquireBufferHandle only allow to export contiguous memory which
is not the case for nouveau (templ.target = PIPE_TEXTURE_2D_ARRAY)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151123/39dd6de9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-WIP-force-linear-layout-for-RGBA-RGBX.patch
Type: text/x-patch
Size: 2445 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151123/39dd6de9/attachment-0001.bin>


More information about the mesa-dev mailing list