summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_screen.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-02-21 14:40:32 +0100
committerYounes Manton <[email protected]>2010-03-15 00:03:03 -0400
commitda5103c3b382ca08368a19a195a24278596db4cb (patch)
tree95f85774272653e81f2a23cbd13a2f6f4d9f2576 /src/gallium/drivers/nvfx/nvfx_screen.c
parent6992be543383ba0850bd813153def24ab4e28911 (diff)
nv30, nv40: unify nv[34]0_context.c
They are now almost identical, except for nv30 vs nv40 fragtex initialization.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_screen.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c
index 0c906ecb1d1..8138715cc7d 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.c
+++ b/src/gallium/drivers/nvfx/nvfx_screen.c
@@ -208,7 +208,6 @@ nvfx_screen_destroy(struct pipe_screen *pscreen)
static void nv30_screen_init(struct nvfx_screen *screen, struct nouveau_stateobj* so)
{
- screen->base.base.context_create = nv30_create;
int i;
/* TODO: perhaps we should do some of this on nv40 too? */
@@ -268,8 +267,6 @@ static void nv30_screen_init(struct nvfx_screen *screen, struct nouveau_stateobj
static void nv40_screen_init(struct nvfx_screen *screen, struct nouveau_stateobj* so)
{
- screen->base.base.context_create = nv40_create;
-
so_method(so, screen->eng3d, NV40TCL_DMA_COLOR2, 2);
so_data (so, screen->base.channel->vram->handle);
so_data (so, screen->base.channel->vram->handle);
@@ -325,6 +322,7 @@ nvfx_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
pscreen->get_param = nvfx_screen_get_param;
pscreen->get_paramf = nvfx_screen_get_paramf;
pscreen->is_format_supported = nvfx_screen_surface_format_supported;
+ pscreen->context_create = nvfx_create;
switch (dev->chipset & 0xf0) {
case 0x30: