diff options
author | Ben Skeggs <[email protected]> | 2012-02-16 22:08:41 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2012-04-14 02:56:30 +1000 |
commit | 66c7dc5688bcd5ff9c596f4c410aee574ea2428a (patch) | |
tree | bf81b2190f93b4b1a9a7a8d2c41c7b6569810f59 /src/gallium/drivers/nouveau | |
parent | f3d8bd3f7b9f5c6387cd5e629a82db9ad9a1e652 (diff) |
nvfx: completely remove this driver (GeForce FX/6/7)
This driver hasn't been maintained properly for a very long time, and for
many very good reasons. It's horrible.
A new driver supporting these chipsets will appear with the commits that
port vieux/nv50/nvc0 to libdrm_nouveau-2.0.
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_video.c | 50 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_winsys.h | 3 |
2 files changed, 2 insertions, 51 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c index 06fbde46cc0..42bc102b1cf 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.c +++ b/src/gallium/drivers/nouveau/nouveau_video.c @@ -27,8 +27,6 @@ #include "nouveau_context.h" #include "nouveau_video.h" -#include "nvfx/nvfx_context.h" -#include "nvfx/nvfx_resource.h" #include "nouveau/nouveau_bo.h" #include "nouveau/nouveau_buffer.h" #include "util/u_video.h" @@ -37,15 +35,6 @@ #include "nouveau/nouveau_device.h" #include "nouveau_winsys.h" -static bool -nouveau_video_is_nvfx(struct nouveau_decoder *dec) { - if (dec->screen->device->chipset < 0x50) - return true; - if (dec->screen->device->chipset >= 0x60 && dec->screen->device->chipset < 0x70) - return true; - return false; -} - static int nouveau_vpe_init(struct nouveau_decoder *dec) { int ret; @@ -396,7 +385,8 @@ nouveau_decoder_surface_index(struct nouveau_decoder *dec, { struct nouveau_video_buffer *buf = (struct nouveau_video_buffer *)buffer; struct nouveau_channel *chan = dec->screen->channel; - struct nouveau_bo *bo_y, *bo_c; + struct nouveau_bo *bo_y = ((struct nv04_resource *)buf->resources[0])->bo; + struct nouveau_bo *bo_c = ((struct nv04_resource *)buf->resources[1])->bo; unsigned i; if (!buf) @@ -409,13 +399,6 @@ nouveau_decoder_surface_index(struct nouveau_decoder *dec, dec->surfaces[i] = buf; dec->num_surfaces++; - if (nouveau_video_is_nvfx(dec)) { - bo_y = ((struct nvfx_resource *)buf->resources[0])->bo; - bo_c = ((struct nvfx_resource *)buf->resources[1])->bo; - } else { - bo_y = ((struct nv04_resource *)buf->resources[0])->bo; - bo_c = ((struct nv04_resource *)buf->resources[1])->bo; - } MARK_RING(chan, 3, 2); BEGIN_RING(chan, dec->mpeg, NV31_MPEG_IMAGE_Y_OFFSET(i), 2); OUT_RELOCl(chan, bo_y, 0, NOUVEAU_BO_RDWR); @@ -857,35 +840,6 @@ nouveau_screen_init_vdec(struct nouveau_screen *screen) } static struct pipe_video_decoder * -nvfx_context_create_decoder(struct pipe_context *context, - enum pipe_video_profile profile, - enum pipe_video_entrypoint entrypoint, - enum pipe_video_chroma_format chroma_format, - unsigned width, unsigned height, - unsigned max_references, bool expect_chunked_decode) -{ - struct nouveau_screen *screen = &nvfx_context(context)->screen->base; - return nouveau_create_decoder(context, screen, profile, entrypoint, - chroma_format, width, height, - max_references, expect_chunked_decode); -} - -static struct pipe_video_buffer * -nvfx_context_video_buffer_create(struct pipe_context *pipe, - const struct pipe_video_buffer *templat) -{ - struct nouveau_screen *screen = &nvfx_context(pipe)->screen->base; - return nouveau_video_buffer_create(pipe, screen, templat); -} - -void -nvfx_context_init_vdec(struct nvfx_context *nv) -{ - nv->pipe.create_video_decoder = nvfx_context_create_decoder; - nv->pipe.create_video_buffer = nvfx_context_video_buffer_create; -} - -static struct pipe_video_decoder * nouveau_context_create_decoder(struct pipe_context *context, enum pipe_video_profile profile, enum pipe_video_entrypoint entrypoint, diff --git a/src/gallium/drivers/nouveau/nouveau_winsys.h b/src/gallium/drivers/nouveau/nouveau_winsys.h index 3423451748a..5c634771aff 100644 --- a/src/gallium/drivers/nouveau/nouveau_winsys.h +++ b/src/gallium/drivers/nouveau/nouveau_winsys.h @@ -42,9 +42,6 @@ nouveau_screen_transfer_flags(unsigned pipe) } extern struct pipe_screen * -nvfx_screen_create(struct nouveau_device *); - -extern struct pipe_screen * nv50_screen_create(struct nouveau_device *); extern struct pipe_screen * |