summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv30/nv30_screen.c
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-02-20 19:32:29 +0100
committerYounes Manton <younes.m@gmail.com>2010-03-15 00:03:02 -0400
commit8611a31bb401fcc2bdc0b3624859fffff7236c4b (patch)
treee9e50bffbf9964dfa0ab8ea713f1361c48389f1d /src/gallium/drivers/nv30/nv30_screen.c
parente392e0b148d6b499322e58a84f300e2e0be49e29 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_screen.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_screen.c b/src/gallium/drivers/nv30/nv30_screen.c
index 305dfa83865..3a48255c18e 100644
--- a/src/gallium/drivers/nv30/nv30_screen.c
+++ b/src/gallium/drivers/nv30/nv30_screen.c
@@ -213,7 +213,7 @@ nv30_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
pscreen->is_format_supported = nv30_screen_surface_format_supported;
pscreen->context_create = nv30_create;
- nv30_screen_init_miptree_functions(pscreen);
+ nvfx_screen_init_miptree_functions(pscreen);
/* 3D object */
switch (dev->chipset & 0xf0) {