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/nvfx/nvfx_resource.c | |
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/nvfx/nvfx_resource.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_resource.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_resource.c b/src/gallium/drivers/nvfx/nvfx_resource.c deleted file mode 100644 index 42e77c53621..00000000000 --- a/src/gallium/drivers/nvfx/nvfx_resource.c +++ /dev/null @@ -1,66 +0,0 @@ - -#include "pipe/p_context.h" -#include "util/u_staging.h" -#include "nvfx_resource.h" -#include "nouveau/nouveau_screen.h" - - -static struct pipe_resource * -nvfx_resource_create(struct pipe_screen *screen, - const struct pipe_resource *template) -{ - if (template->target == PIPE_BUFFER) - return nvfx_buffer_create(screen, template); - else - return nvfx_miptree_create(screen, template); -} - -static void -nvfx_resource_destroy(struct pipe_screen *screen, struct pipe_resource *pr) -{ - if (pr->target == PIPE_BUFFER) - return nvfx_buffer_destroy(screen, pr); - else - return nvfx_miptree_destroy(screen, pr); -} - -static struct pipe_resource * -nvfx_resource_from_handle(struct pipe_screen * screen, - const struct pipe_resource *template, - struct winsys_handle *whandle) -{ - if (template->target == PIPE_BUFFER) - return NULL; - else - return nvfx_miptree_from_handle(screen, template, whandle); -} - -static boolean -nvfx_resource_get_handle(struct pipe_screen *pscreen, - struct pipe_resource *pr, - struct winsys_handle *whandle) -{ - struct nvfx_resource* res = (struct nvfx_resource*)pr; - - if (!res || !res->bo) - return FALSE; - - return nouveau_screen_bo_get_handle(pscreen, res->bo, nvfx_subresource_pitch(pr, 0), whandle); -} - -void -nvfx_init_resource_functions(struct pipe_context *pipe) -{ - pipe->create_surface = nvfx_miptree_surface_new; - pipe->surface_destroy = nvfx_miptree_surface_del; -} - -void -nvfx_screen_init_resource_functions(struct pipe_screen *pscreen) -{ - pscreen->resource_create = nvfx_resource_create; - pscreen->resource_from_handle = nvfx_resource_from_handle; - pscreen->resource_get_handle = nvfx_resource_get_handle; - pscreen->resource_destroy = nvfx_resource_destroy; - pscreen->user_buffer_create = nvfx_user_buffer_create; -} |