NvDrmRenderer broken in 32.7.1

Hello,

I’m using NvDrmRenderer on a tx2nx, when I try to run 08_video_dec_drm it gives me the error:

[ERROR] (NvDrmRenderer.cpp:723) <renderer0> FAILED TO SET PLANE 
[ERROR] (NvDrmRenderer.cpp:804) <renderer0> Error in rendering frame

nvoverlaysink in gstreamer works, as well as the boot logo so the display connection is fine.

Hi,
Do you disable Ubuntu desktop before running the sample? Since Ubuntu desktop is enabled by default, you would need to disable it first. Please refer to steps in document:
Jetson Linux API Reference: 08_video_dec_drm (Direct Rendering Manager)

Yes I’m using a custom rootfs with no desktop

Hi,
Please try on developer kit + default system image/rootfs. This is the reference setup and should work fine. And then you can refer to this setup for further check.

Nope it doesn’t work on the sample rootfs on a developer kit. Same error, even on 32.7.2.

When I install 32.6.1 on the same setup it works fine.

Any update?

Hi,
We have tested the samples on each release. A bit strange it doesn’t work on default system image and rootfs. We will set up and check again.

Hi,
We have checked this and the issue looks specific to certain TVs. Please apply this to NvDrmRenderer.cpp:

- ret = setPlane(0, fb, 0, 0, width, height, 0, 0, width, height);
+ ret = setPlane(0, 0, 0, 0, width, height, 0, 0, width, height);

And give it a try.