Skip to contentSkip to conversation

nv30/nv40 Gallium drivers unification

PATCH In review Luca Barbieri 4 participants 5 messages Mar 13, 2010 – Mar 15, 2010 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nv30/nv40 Gallium drivers unification

Currently the nv30 and nv40 Gallium drivers are very similar, and contain about 5000 lines of essentially duplicate code.

I prepared a patchset (which can be found at
http://repo.or.cz/w/mesa/mesa-lb.git/shortlog/refs/heads/unification+fixes)
which gradually unifies the drivers, one file per the commit.

A new "nvfx" directory is created, and unified files are put there one by one. After all patches are applied, the nv30 and nv40 directories are removed and the only the new nvfx directory remains.

The first patches unify the engine naming (s/curie/eng3d/g; s/rankine/eng3d), and switch nv40 to use the NV34TCL_ constants. Initial versions of this work changed renouveau.xml to create a new "NVFXTCL" object, but the current version doesn't need any renouveau.xml modification at all.

The "unification+fixes" branch referenced above is the one that should be tested.
The "unification" branch contains just the unification, with no behavior changes, while "unification+fixes" also fixes swtnl and quad rendering, allowing to better test the unification. Some cleanups on top of the unfication are also included.

That same repository also contains other branches with significant improvements on top of the unification, but I'm still not proposing them for inclusion as they need more testing and some fixes.

While there are some branches in the Mesa repository that would conflict with this, such branches seem to be popping up continuously (and this is good!), so waiting until they are merged probably won't really work.

The conflicts are minimal anyway and the driver fixes can be very easily reconstructed over the unified codebase.

How about merging this?
Any objections? Any comments?

A message that is not in the archive (sent off-list or not yet received): ff13bc9a1003130929v68107b8fge54fc1a7d7e78f91-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#2 lore raw

Sounds good to me - fewer driver directories to fix up after changes...

Keith

Quoted 50 lines · Luca Barbieri

Currently the nv30 and nv40 Gallium drivers are very similar, and contain about 5000 lines of essentially duplicate code.

I prepared a patchset (which can be found at
http://repo.or.cz/w/mesa/mesa-lb.git/shortlog/refs/heads/unification+fixes)
which gradually unifies the drivers, one file per the commit.

A new "nvfx" directory is created, and unified files are put there one by one. After all patches are applied, the nv30 and nv40 directories are removed and the only the new nvfx directory remains.

The first patches unify the engine naming (s/curie/eng3d/g; s/rankine/eng3d), and switch nv40 to use the NV34TCL_ constants. Initial versions of this work changed renouveau.xml to create a new "NVFXTCL" object, but the current version doesn't need any renouveau.xml modification at all.

The "unification+fixes" branch referenced above is the one that should be tested.
The "unification" branch contains just the unification, with no behavior changes, while "unification+fixes" also fixes swtnl and quad rendering, allowing to better test the unification. Some cleanups on top of the unfication are also included.

That same repository also contains other branches with significant improvements on top of the unification, but I'm still not proposing them for inclusion as they need more testing and some fixes.

While there are some branches in the Mesa repository that would conflict with this, such branches seem to be popping up continuously (and this is good!), so waiting until they are merged probably won't really work.

The conflicts are minimal anyway and the driver fixes can be very easily reconstructed over the unified codebase.

How about merging this?
Any objections? Any comments?

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

A message that is not in the archive (sent off-list or not yet received): c524168e1003130935t603b36a7u55fbe4ae96e57358-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 2 lines · Keith Whitwell

Sounds good to me - fewer driver directories to fix up after changes...

It'd be good to get this merged sooner rather than later as I'll soon be starting on pipe_resources conversion for the nv drivers. Once I do that, there will be heaps of conflicts with your patches, but if I can merge them in before I do the conversion all will be well...

Keith

A message that is not in the archive (sent off-list or not yet received): c524168e1003141612s3b667cd1s33fcf2c8b588a0f6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw
Quoted 10 lines · Keith Whitwell
Quoted 2 lines · Keith Whitwell

Sounds good to me - fewer driver directories to fix up after changes...

It'd be good to get this merged sooner rather than later as I'll soon be starting on pipe_resources conversion for the nv drivers.  Once I do that, there will be heaps of conflicts with your patches, but if I can merge them in before I do the conversion all will be well...

I tested unification+fixes branch on nv35 with 11 games that you can see on that page :
http://nouveau.freedesktop.org/wiki/XavierChantry

No regression to report compared to mesa master.

A benefit worth mentioning is the SWTNL support which allows to run the 4 games currently broken with mesa master.

#7 lore raw
In reply to a message not in the archive
Quoted 33 lines · Luca Barbieri

Currently the nv30 and nv40 Gallium drivers are very similar, and contain about 5000 lines of essentially duplicate code.

I prepared a patchset (which can be found at
http://repo.or.cz/w/mesa/mesa-lb.git/shortlog/refs/heads/unification+fixes)
which gradually unifies the drivers, one file per the commit.

A new "nvfx" directory is created, and unified files are put there one by one. After all patches are applied, the nv30 and nv40 directories are removed and the only the new nvfx directory remains.

The first patches unify the engine naming (s/curie/eng3d/g; s/rankine/eng3d), and switch nv40 to use the NV34TCL_ constants. Initial versions of this work changed renouveau.xml to create a new "NVFXTCL" object, but the current version doesn't need any renouveau.xml modification at all.

The "unification+fixes" branch referenced above is the one that should be tested.
The "unification" branch contains just the unification, with no behavior changes, while "unification+fixes" also fixes swtnl and quad rendering, allowing to better test the unification. Some cleanups on top of the unfication are also included.

That same repository also contains other branches with significant improvements on top of the unification, but I'm still not proposing them for inclusion as they need more testing and some fixes.

While there are some branches in the Mesa repository that would conflict with this, such branches seem to be popping up continuously (and this is good!), so waiting until they are merged probably won't really work.

Quoted 5 lines

The conflicts are minimal anyway and the driver fixes can be very easily reconstructed over the unified codebase.

How about merging this?
Any objections? Any comments?

Pushed. Thanks.