[Mesa-dev] [PATCH 0/6] Enable OpenGL 4.0 on Haswell

Iago Toral itoral at igalia.com
Tue Jan 3 13:02:19 UTC 2017


On Tue, 2017-01-03 at 11:14 +0000, Chris Wilson wrote:
> On Tue, Jan 03, 2017 at 11:42:50AM +0100, Iago Toral Quiroga wrote:
> > 
> > Enabling GL 4.0 in gen7 requires a bit of work because some
> > hardware and kernel
> > combinations may not support all the features. Specifically, we
> > need to know
> > if the kernel can do pipelined register writes. Unfortunately, this
> > requires
> > that we emit batches at screen creation time when we don't have a
> > brw_context
> > available (all our current batch emission infrastructure relies on
> > this).
> > See [1] and [2] for more details.
> Emitting a batch is trivial:
> 
> https://lists.freedesktop.org/archives/mesa-dev/2015-August/091077.ht
> ml

Oh, thanks, I did not know you had done this before. It seems that
patch got an Rb from Martin when it was sent in 2015 but it never
landed, right? was there any other issue holding it back?

> But we do want to share the bufmgr between screens, and you do want
> to
> deprecate the current intel_batchbuffer.c due to the very large
> overhead
> it imposes.

It seems that Curro and Ken were more interested in trying to reuse a
bit more of the intel_batchbuffer.c for this rather than the other way
around, but then again that might have only been because my original
implementation was very focused on porting code from that file... your
patch gets this done without using a batchbuffer object at all and I
think it is quite clean. If Ken and Curro also like it and there are no
other concerns I'll be happy to adapt/rebase your patch instead.

Ken was also saying that he was planning some rework of the batch
emission code, so I don't know what strategy fits his plans better.

Iago

> -Chris
> 


More information about the mesa-dev mailing list