Re: SIGBUS with gbm_bo_map() and Intel ARC

2024-06-20 Thread Pierre Ossman
On 6/20/24 16:29, Pierre Ossman wrote: On 6/19/24 11:36, Pierre Ossman wrote: Is there something special I need to pay attention to when doing cross GPU stuff? I would have assumed that gbm_bo_import() would have complained if this was an incompatible setup. It does indeed look like some

Re: SIGBUS with gbm_bo_map() and Intel ARC

2024-06-20 Thread Pierre Ossman
On 6/19/24 11:36, Pierre Ossman wrote: Is there something special I need to pay attention to when doing cross GPU stuff? I would have assumed that gbm_bo_import() would have complained if this was an incompatible setup. It does indeed look like some step is missing. If I examine /proc

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-20 Thread Pierre Ossman
On 6/20/24 15:59, Pierre Ossman wrote: We recently identified that it has an issue[2] with synchronization on the server side when after glFlush() in the client side the command list takes too much (several seconds) to finish the rendering. [2] https://gitlab.freedesktop.org/mesa/mesa

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-20 Thread Pierre Ossman
BUS crash I opened a separate thread about, and getting glvnd to choose correctly when the Nvidia driver is used. Regards -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Linköpinghttps://f

Re: SIGBUS with gbm_bo_map() and Intel ARC

2024-06-19 Thread Pierre Ossman
On 19/06/2024 11:36, Pierre Ossman wrote: Hi, More gbm_bo_map() issues from me that could use some expert insight. When I mix GPU access in my GBM adventures, one combination results in a SIGBUS when reading the memory given from gbm_bo_map(). I'm unsure if this is a bug in the driver,

SIGBUS with gbm_bo_map() and Intel ARC

2024-06-19 Thread Pierre Ossman
sumed that gbm_bo_import() would have complained if this was an incompatible setup. Regards -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Linköpinghttps://facebook.com/ThinLinc Phone: +

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-18 Thread Pierre Ossman
On 17/06/2024 19:18, Pierre Ossman wrote: Hmm... The source of the blit is CopyWindow being called as a result of the window moving. But I would have expected that to be inhibited by the fact that a compositor is active. It's also surprising that this only happens if DRI3 is involved

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-17 Thread Pierre Ossman
On 17/06/2024 20:18, Christian König wrote: Am 17.06.24 um 19:18 schrieb Pierre Ossman: On 17/06/2024 18:09, Michel Dänzer wrote: Can I know whether it is needed or not? Or should I be cautious and always do it? Assuming GBM in the X server uses the GPU HW driver, I'd say it shouldn

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-17 Thread Pierre Ossman
ibited by the fact that a compositor is active. It's also surprising that this only happens if DRI3 is involved. I would also have expected something similar with software rendering. Albeit with a PutImage instead of PresentPixmap for the correct data. But everything works there. I will ne

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-17 Thread Pierre Ossman
On 17/06/2024 16:50, Michel Dänzer wrote: On 2024-06-17 12:29, Pierre Ossman wrote: Just to avoid any uncertainty, are both of these things done implicitly by gbm_bo_map()/gbm_bo_unmap()? I did test adding those steps just in case, but unfortunately did not see an improvement. My order was

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-17 Thread Pierre Ossman
the X client tries to draw using that GBM backed pixmap (e.g. using PresentPixmap). So far, we've only tested Intel GPUs, but we are setting up Nvidia and AMD GPUs at the moment. It will be interesting to see if the issue remains on those or not. Regards -- Pierre Ossman So

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-17 Thread Pierre Ossman
nt. Which would make sense if the commands are still sitting in an application buffer somewhere, rather than with the GPU. Regards -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Li

Re: Does gbm_bo_map() implicitly synchronise?

2024-06-15 Thread Pierre Ossman
was accessing the data using gbm_bo_map(), rather than using OpenGL, I was missing out on some synchronisation step and getting data before the GPU had finished any queued rendering. Regards -- Pierre Ossman Software Development Cendio AB http://cendio.com Teknikringen 8

Does gbm_bo_map() implicitly synchronise?

2024-06-14 Thread Pierre Ossman
ht on what's needed for stable synchronisation? Regards, -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Linköpinghttps://facebook.com/ThinLinc Phone: +46-13-214600 A: Because it messes up the

Re: [Mesa-dev] [PATCHv2 0/9] drisw/glx: use XShm if possible

2016-04-01 Thread Pierre Ossman
k what happened to this patch series? It would be very beneficial for our users as they generally will be using software rendering. Rgds -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Link