[Mesa-dev] classic driver cleanup: ChooseTexFormat

Corbin Simpson mostawesomedude at gmail.com
Sat Sep 25 11:26:40 PDT 2010

On Sat, Sep 25, 2010 at 6:31 AM, Jerome Glisse <j.glisse at gmail.com> wrote:
> On Fri, Sep 24, 2010 at 8:08 PM, Eric Anholt <eric at anholt.net> wrote:
>> One of the uglier bits of the classic drivers, in my opinion, is the
>> ChooseTexFormat hook.  Most drivers are trying to get to a similar set
>> of formats, and using similar fallbacks for unavailable formats.
>> Worse, they need to cleverly choose formats based on the incoming
>> type/format to avoid having to munge the data on the way in if
>> possible, and everyone needs to work those out.  So, rather than
>> having each driver have these smarts, move it to the core.
>> There are still some rough edges.  There are not enough fallbacks yet
>> to cover everything (see i810 for example), so drivers with a more
>> restricted set of supported formats may need to add more lines to
>> _mesa_choose_tex_format.  Also, the endianness-dependent choice of
>> formats in texmem.c and radeon's texturing isn't merged -- I knew I'd
>> mess it up somehow if I did it on my own, so I'm leaving radeon for
>> someone with big-endian to finish off.
>> Any complaints, or should I go ahead and merge this?
> Do we care about all those old GPU ? r128, sis .. ? To me it seems
> like we pretend they work but my feeling is that no one use them.
> I think only radeon, nouveau & intel classic driver are still in use.
> For the others i wouldn't mind stop pretending supporting them and
> removing them from the tree.

I'll support tdfx, mga, and (when I can get the damn thing POSTing)
r128. I have an sis VGA-USB thingy as well, but that'll take some
hacking and probably can't do 3D, so whatever.

When the facts change, I change my mind. What do you do, sir? ~ Keynes

Corbin Simpson
<MostAwesomeDude at gmail.com>

More information about the mesa-dev mailing list