[Mesa-dev] [PATCH 3/3] egl/x11: Handle both depth 30 formats for eglCreateImage().

Mario Kleiner mario.kleiner.de at gmail.com
Thu Apr 12 18:25:00 UTC 2018


On 04/12/2018 07:43 PM, Ilia Mirkin wrote:
> On Thu, Apr 12, 2018 at 1:18 PM, Mario Kleiner
> <mario.kleiner.de at gmail.com> wrote:
>> X11 Prime renderoffload is another unsolved problem with nouveau depth 30.
>> Currently we get swapped red-blue with intel + nvidia. We could extend the
>> buffer creation code to convert nouveau's rgba format into the bgra format
>> wanted by intel or amd display gpu's during the blitImage call for
>> converting the tiled renderbuffer to the linear buffer, like i try for the
>> wayland+egl case. But we'd need to know what the display gpu wants. Haven't
>> looked into that.
> 
> FWIW the NVIDIA hardware is perfectly happy to render into BGR10_A2.
> Just can't display it.
> 
>    -ilia
> 

Yes, but due to one of your earlier depth 30 commits we only expose 
formats with PIPE_BIND_DISPLAY_TARGET, so that ability is hidden from 
driver independent code like the EGL platform code, GLX etc. to prevent 
exposing formats that the hw can't display.

-mario


More information about the mesa-dev mailing list