On Wed, Jun 20, 2018 at 08:55:39PM +0200, Mark Kettenis wrote:
> This diff adds DRI3/prime support to the OpenBSD kernel.  The whole
> idea behind this is to allow graphics buffers to be exchanged between
> processes (typically X client and X server) by passing file
> descriptors.  The curremt (DRI2) method of exchanging graphics buffers
> uses guessable 32-bit integers.  That means that it is fairly easy for
> other applications running on the machine to snoop the contents of a
> graphics buffer.  Apart from the improved security, this also gets us
> to execute the code paths in X, Mesa, etc. that Linux uses.  Hopefully
> that makes us less susceptible to bugs in the abandoned codepaths.
> 
> This diff explicitly does not enable sharing of graphics buffers
> between graphics cards.  That aspect of DRI3 needs more work.  It
> would be pretty pointless at this point anyway since this only enables
> the feature for inteldrm(4).
> 
> To actually use this, a xenocara patch is needed as well.  I'll post
> that one in a separate message.
> 
> I've used this quite extensively now on my own laptop for a while.  It
> works fine with pledged Chrome and pledged Firefox.  Now this collides
> heavily with the file descriptor unlocking work that mpi@ is doing.
> Still, I'd like to get this in soonish such that this can be widely
> tested and won't ruin g2k18.

Together with enabling the bits in xenocara this also works for me on
my X240. I'm seeing videos causing firefox tabs to crash, but I'm not
sure if its related to dri3 or firefox's pleges or something else.

Videos play fine in chrome and with the gld river  in mplayer.

Thanks,
-- 
Matthieu Herrb

Reply via email to