Re: drmfb console switching problems/questions

2020-10-09 Thread stsp
09.10.2020 16:31, Thomas Zimmermann пишет: I can't say for sure. IIRC SDL2 can use DRM directly. Yes, that was a great hint indeed, thanks. It didn't work for me in the past (a year ago or so), so I added SDL1 support. But now I re-tried, and it indeed works! And, as far as I can tell, the

Re: drmfb console switching problems/questions

2020-10-09 Thread Thomas Zimmermann
Hi Am 09.10.20 um 15:19 schrieb stsp: > 09.10.2020 15:58, Thomas Zimmermann пишет: >> Hi >> >> Am 09.10.20 um 14:16 schrieb stsp: >>> 09.10.2020 14:59, Thomas Zimmermann пишет: Fbdev exposes the video ram (or a shadow buffer of it) to all applications. Only one can draw at the same

Re: drmfb console switching problems/questions

2020-10-09 Thread stsp
09.10.2020 15:58, Thomas Zimmermann пишет: Hi Am 09.10.20 um 14:16 schrieb stsp: 09.10.2020 14:59, Thomas Zimmermann пишет: Fbdev exposes the video ram (or a shadow buffer of it) to all applications. Only one can draw at the same time. It's a limitation of the design. To fix this, your

Re: drmfb console switching problems/questions

2020-10-09 Thread Thomas Zimmermann
Hi Am 09.10.20 um 14:16 schrieb stsp: > 09.10.2020 14:59, Thomas Zimmermann пишет: >> Fbdev exposes the video ram (or a shadow buffer of it) to all >> applications. Only one can draw at the same time. It's a limitation of >> the design. To fix this, your application has to stop drawing when you

Re: drmfb console switching problems/questions

2020-10-09 Thread stsp
09.10.2020 14:59, Thomas Zimmermann пишет: Fbdev exposes the video ram (or a shadow buffer of it) to all applications. Only one can draw at the same time. It's a limitation of the design. To fix this, your application has to stop drawing when you switch consoles. OK, thanks for info. Quite a

Re: drmfb console switching problems/questions

2020-10-09 Thread Thomas Zimmermann
Hi Am 09.10.20 um 12:50 schrieb stsp: > Hi! > > I am trying to run my sdl1-based app > under linux kms framebuffer (amdgpudrmfb > in my case). > The app itself works perfectly, but > console switching is not. > > If I switch the console while the app > is drawing, then it will corrupt the > VC

drmfb console switching problems/questions

2020-10-09 Thread stsp
Hi! I am trying to run my sdl1-based app under linux kms framebuffer (amdgpudrmfb in my case). The app itself works perfectly, but console switching is not. If I switch the console while the app is drawing, then it will corrupt the VC I switched to. It will just draw on top of the VC's content.