nv30, nv40: unify nv[34]0_miptree.c
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 20 Feb 2010 18:32:29 +0000 (19:32 +0100)
committerYounes Manton <younes.m@gmail.com>
Mon, 15 Mar 2010 04:03:02 +0000 (00:03 -0400)
commit8611a31bb401fcc2bdc0b3624859fffff7236c4b
treee9e50bffbf9964dfa0ab8ea713f1361c48389f1d
parente392e0b148d6b499322e58a84f300e2e0be49e29
nv30, nv40: unify nv[34]0_miptree.c

The only difference between nv30 and nv40 is that nv30 allowed swizzling
for more texture types.

This patch preserves the existing behavior, using conditional code.

Note however that this does not make sense, since all texture types can
be swizzled on nv40 and probably on nv30 too.

However, the handling of swizzled surfaces in the current 2D code is
partially broken, so it's best not to touch this.

A whole rewrite of the 2D code will be submitted, which will solve this
problem.
src/gallium/drivers/nv30/Makefile
src/gallium/drivers/nv30/nv30_context.h
src/gallium/drivers/nv30/nv30_miptree.c [deleted file]
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv40/Makefile
src/gallium/drivers/nv40/nv40_context.h
src/gallium/drivers/nv40/nv40_miptree.c [deleted file]
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/nvfx/Makefile
src/gallium/drivers/nvfx/nvfx_miptree.c [new file with mode: 0644]