From 12311c7c525ce835f97571d0ec58a23feb92f876 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Fri, 5 Sep 2014 22:55:01 -0400 Subject: nv50,nvc0: get rid of draw module support This hasn't been enabled in a long time and is completely stale and unnecessary. Remove, esp since it doesn't build. Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 15 ----- src/gallium/drivers/nouveau/nvc0/nvc0_context.h | 8 --- src/gallium/drivers/nouveau/nvc0/nvc0_draw.c | 88 ------------------------- 3 files changed, 111 deletions(-) delete mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_draw.c (limited to 'src/gallium/drivers/nouveau/nvc0') diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c index 5928c994c5d..50c2058efca 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c @@ -23,10 +23,6 @@ #include "pipe/p_defines.h" #include "util/u_framebuffer.h" -#ifdef NVC0_WITH_DRAW_MODULE -#include "draw/draw_context.h" -#endif - #include "nvc0/nvc0_context.h" #include "nvc0/nvc0_screen.h" #include "nvc0/nvc0_resource.h" @@ -154,10 +150,6 @@ nvc0_destroy(struct pipe_context *pipe) nvc0_context_unreference_resources(nvc0); nvc0_blitctx_destroy(nvc0); -#ifdef NVC0_WITH_DRAW_MODULE - draw_destroy(nvc0->draw); -#endif - nouveau_context_destroy(&nvc0->base); } @@ -322,13 +314,6 @@ nvc0_create(struct pipe_screen *pscreen, void *priv) nvc0->base.invalidate_resource_storage = nvc0_invalidate_resource_storage; -#ifdef NVC0_WITH_DRAW_MODULE - /* no software fallbacks implemented */ - nvc0->draw = draw_create(pipe); - assert(nvc0->draw); - draw_set_rasterize_stage(nvc0->draw, nvc0_draw_render_stage(nvc0)); -#endif - pipe->create_video_codec = nvc0_create_decoder; pipe->create_video_buffer = nvc0_video_buffer_create; diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.h b/src/gallium/drivers/nouveau/nvc0/nvc0_context.h index 8ae78e9f328..63e73aeaed7 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.h +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.h @@ -10,10 +10,6 @@ #include "util/u_inlines.h" #include "util/u_dynarray.h" -#ifdef NVC0_WITH_DRAW_MODULE -#include "draw/draw_vertex.h" -#endif - #include "nvc0/nvc0_winsys.h" #include "nvc0/nvc0_stateobj.h" #include "nvc0/nvc0_screen.h" @@ -207,10 +203,6 @@ struct nvc0_context { uint16_t surfaces_valid[2]; struct util_dynarray global_residents; - -#ifdef NVC0_WITH_DRAW_MODULE - struct draw_context *draw; -#endif }; static INLINE struct nvc0_context * diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_draw.c b/src/gallium/drivers/nouveau/nvc0/nvc0_draw.c deleted file mode 100644 index e261d5058fc..00000000000 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_draw.c +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2008 Ben Skeggs - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - */ - -#include "draw/draw_pipe.h" - -#include "nvc0/nvc0_context.h" - -struct nvc0_render_stage { - struct draw_stage stage; - struct nvc0_context *nvc0; -}; - -static INLINE struct nvc0_render_stage * -nvc0_render_stage(struct draw_stage *stage) -{ - return (struct nvc0_render_stage *)stage; -} - -static void -nvc0_render_point(struct draw_stage *stage, struct prim_header *prim) -{ - NOUVEAU_ERR("\n"); -} - -static void -nvc0_render_line(struct draw_stage *stage, struct prim_header *prim) -{ - NOUVEAU_ERR("\n"); -} - -static void -nvc0_render_tri(struct draw_stage *stage, struct prim_header *prim) -{ - NOUVEAU_ERR("\n"); -} - -static void -nvc0_render_flush(struct draw_stage *stage, unsigned flags) -{ -} - -static void -nvc0_render_reset_stipple_counter(struct draw_stage *stage) -{ - NOUVEAU_ERR("\n"); -} - -static void -nvc0_render_destroy(struct draw_stage *stage) -{ - FREE(stage); -} - -struct draw_stage * -nvc0_draw_render_stage(struct nvc0_context *nvc0) -{ - struct nvc0_render_stage *rs = CALLOC_STRUCT(nvc0_render_stage); - - rs->nvc0 = nvc0; - rs->stage.draw = nvc0->draw; - rs->stage.destroy = nvc0_render_destroy; - rs->stage.point = nvc0_render_point; - rs->stage.line = nvc0_render_line; - rs->stage.tri = nvc0_render_tri; - rs->stage.flush = nvc0_render_flush; - rs->stage.reset_stipple_counter = nvc0_render_reset_stipple_counter; - - return &rs->stage; -} -- cgit v1.2.3