Overlay Text issue with Xorg modesetting driver
Michel Dänzer
michel at daenzer.net
Mon Jan 20 16:30:42 UTC 2020
On 2020-01-17 9:49 a.m., Shubham Kumar Jha wrote:
> Hi,
>
> I have attached an example which displays text and background rectangle When this piece of code is run with Intel as default XORG driver everything works fine both text and rectangle are being displayed,whereas when i switch to the Modesetting driver only the background rectangle is seen and text is not being displayed.
>
> I tried running XShmqueryversion with modesetting driver , it returned value of pixmap as True, so it means shared pixmaps should be supported.I have verified this behavior on Ubuntu 16.04.
>
> Kindly let me know if this is the expected behavior of modesetting driver, if not then how to go ahead with resolving this.
It could be a bug in glamor, but why are you using an SHM pixmap for
this anyway? AFAICT you're only drawing to it with Xft, not directly
with the CPU on the client side. So you could use a normal pixmap and
copy from that to the window with XCopyArea. That'll also work on setups
which actually don't support SHM pixmaps, e.g. Xwayland or Xorg with
EXA, and as a bonus should even perform better.
--
Earthling Michel Dänzer | https://redhat.com
Libre software enthusiast | Mesa and X developer
More information about the xorg-devel
mailing list