[Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

Chia-I Wu olvaffe at gmail.com
Tue Apr 16 12:58:15 PDT 2013


Hi Matt,

On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner <mattst88 at gmail.com> wrote:

> On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu <olvaffe at gmail.com> wrote:
> > If there is no objection, I'd like to merge it in a day or two.
>
> My only objection is over adding a driver that is explicitly a toy,
> the confusion it will cause users, and the developer time it will
> waste. It wasn't uncommon for a user to waste a nontrivial amount of
> someone's time in #intel-gfx only to discover that they were trying to
> use the (old) i965g driver that no one maintained.
>
I think there are two concerns here: the driver is a toy and the driver can
be confusing.  And I agree with both.

But being a toy has its advantages.  For example, if someone sends me a
patch to incorporate beignet backend and hook the driver up with clover
OpenCL state tracker, I will be happy to take the patch.  It might have
loose ends or known issues, but as long as the developer is committed to
fix them, they will be resolved over time.  Same if someone wants to work
on video decoding and etc.

While being a toy, the driver is developed seriously and is always kept in
a usable state.  This is mainly thanks to piglit, to which your team
contribute a lot.  After making changes, I run piglit to make sure there is
no regression.  I even have a spreadsheet documenting why each of the
current 429 failures fails.  There were like ~650 failures last December.
I've fixed quite some, and I plan to keep going.  That is why I haven't
started looking at the performance.

As you can see, I have to reorganize the commits to have a clean history
before attempting to merge it to master.  If I had to wait until the driver
is no longer a toy to merge it, it would lose more of its history by the
time it is finally merged.

I started the driver because I wanted to play with gallium and I did not
have any radeon/nvidia card.  There could be other potential developers who
are in the same situation.  I believe having the driver in master allows
them to get started more easily.

If you could agree with me, then, technically, we need to make the new
driver less confusing.  The driver is disabled by default, of course.  It
can be enabled with --with-gallium-drivers=i965 now.  Would it help if I
change it to something like --enable-gallium-drivers=i965-UNOFFICIAL?  Or
do you have any suggestion, given your experiences dealing with i915g or
the old i965g bug reports?


> I think everything Marek said was correct. If you could extend Gallium
> to consume GLSL IR it might actually be an interesting project.
>
Yes, it is.  I do want to make pipe drivers be able to express the
preferred IR and make the mesa state tracker generate it.  I had LLVM IR in
mind, but GLSL IR could be a much less intrusive choice.  I will check that
out.

-- 
olv at LunarG.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130417/20856e67/attachment.html>


More information about the mesa-dev mailing list