intel: Remove the last spans code!
authorEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 21:51:55 +0000 (14:51 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Apr 2013 17:40:45 +0000 (10:40 -0700)
The remaining bits happen to do nothing that
_swrast_span_render_start()/finish() don't do.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i915/Makefile.sources
src/mesa/drivers/dri/i915/i830_context.c
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i915/intel_tris.c
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_span.c [deleted file]
src/mesa/drivers/dri/intel/intel_span.h [deleted file]
src/mesa/drivers/dri/intel/intel_tex_image.c

index b14e52c5da83b0bc40759e150707303ed9b11a6b..fff27b78f0e02d2d0700114b879a0c7b88ef8fa5 100644 (file)
@@ -40,7 +40,6 @@ i915_FILES = \
        i915_vtbl.c \
        intel_context.c \
        intel_screen.c \
-       intel_span.c \
        intel_state.c \
        intel_syncobj.c \
        intel_tris.c \
index f4b351784932766b95b52bcba57463f5cedfadfa..072f8e02aab0702927e9b828aa2d394a75db835b 100644 (file)
@@ -34,7 +34,6 @@
 #include "tnl/t_vertex.h"
 #include "tnl/t_context.h"
 #include "tnl/t_pipeline.h"
-#include "intel_span.h"
 #include "intel_tris.h"
 #include "../glsl/ralloc.h"
 
@@ -87,7 +86,6 @@ i830CreateContext(int api,
    _math_matrix_ctr(&intel->ViewportMatrix);
 
    /* Initialize swrast, tnl driver tables: */
-   intelInitSpanFuncs(ctx);
    intelInitTriFuncs(ctx);
 
    /* Install the customized pipeline: */
index 65b50ea6700d2220a370065e63a7c3420a1ec258..e5635372a098b9e898102ce89de9edf1e452195a 100644 (file)
@@ -44,8 +44,6 @@
 #include "i915_reg.h"
 #include "i915_program.h"
 
-#include "intel_span.h"
-
 /***************************************
  * Mesa's Driver Functions
  ***************************************/
@@ -183,7 +181,6 @@ i915CreateContext(int api,
    _math_matrix_ctr(&intel->ViewportMatrix);
 
    /* Initialize swrast, tnl driver tables: */
-   intelInitSpanFuncs(ctx);
    intelInitTriFuncs(ctx);
 
    /* Install the customized pipeline: */
index 30eb6ac4434aa3a37303d9f2a5e48432cab274ff..7c60d8454fa86d967058878420f409b6e77c9f3b 100644 (file)
@@ -52,7 +52,6 @@
 #include "intel_batchbuffer.h"
 #include "intel_buffers.h"
 #include "intel_reg.h"
-#include "intel_span.h"
 #include "i830_context.h"
 #include "i830_reg.h"
 #include "i915_context.h"
@@ -808,9 +807,9 @@ intel_fallback_tri(struct intel_context *intel,
    _swsetup_Translate(ctx, v0, &v[0]);
    _swsetup_Translate(ctx, v1, &v[1]);
    _swsetup_Translate(ctx, v2, &v[2]);
-   intelSpanRenderStart(ctx);
+   _swrast_render_start(ctx);
    _swrast_Triangle(ctx, &v[0], &v[1], &v[2]);
-   intelSpanRenderFinish(ctx);
+   _swrast_render_finish(ctx);
 }
 
 
@@ -828,9 +827,9 @@ intel_fallback_line(struct intel_context *intel,
 
    _swsetup_Translate(ctx, v0, &v[0]);
    _swsetup_Translate(ctx, v1, &v[1]);
-   intelSpanRenderStart(ctx);
+   _swrast_render_start(ctx);
    _swrast_Line(ctx, &v[0], &v[1]);
-   intelSpanRenderFinish(ctx);
+   _swrast_render_finish(ctx);
 }
 
 static void
@@ -846,9 +845,9 @@ intel_fallback_point(struct intel_context *intel,
    INTEL_FIREVERTICES(intel);
 
    _swsetup_Translate(ctx, v0, &v[0]);
-   intelSpanRenderStart(ctx);
+   _swrast_render_start(ctx);
    _swrast_Point(ctx, &v[0]);
-   intelSpanRenderFinish(ctx);
+   _swrast_render_finish(ctx);
 }
 
 
index 251762efceba5832e6f815df8fcf559f2e3f2e91..0c7ffe2bc7b43dd9b7381e2d8c6a66cb87688788 100644 (file)
@@ -14,7 +14,6 @@ i965_FILES = \
        intel_regions.c \
        intel_resolve_map.c \
        intel_screen.c \
-       intel_span.c \
        intel_pixel.c \
        intel_pixel_bitmap.c \
        intel_pixel_copy.c \
index ce22bc3a9ef917f112580a3920c71a67a55b3e0e..46505537837c644392d6e3af5c1f0cb3879e54a3 100644 (file)
@@ -47,7 +47,6 @@
 #include "intel_fbo.h"
 #include "intel_mipmap_tree.h"
 #include "intel_regions.h"
-#include "intel_span.h"
 #include "intel_tex.h"
 #include "intel_tex_obj.h"
 
@@ -147,8 +146,6 @@ brwCreateContext(int api,
    brw_init_surface_formats(brw);
 
    /* Initialize swrast, tnl driver tables: */
-   intelInitSpanFuncs(ctx);
-
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    if (tnl)
       tnl->Driver.RunPipeline = _tnl_run_pipeline;
index 6b5e5130a366b58c46616f209bc80a91af5e7436..15d3918110cb7b50548a8c9cb9a63fc898791abe 100644 (file)
@@ -48,7 +48,6 @@
 #include "intel_mipmap_tree.h"
 #include "intel_regions.h"
 #include "intel_tex.h"
-#include "intel_span.h"
 #ifndef I915
 #include "brw_context.h"
 #endif
index 18a4d1556973e45e3930ca779106486bcb078e01..12a4a2207867259805787178e71d108a12bdee04 100644 (file)
@@ -34,7 +34,6 @@
 #include "intel_mipmap_tree.h"
 #include "intel_regions.h"
 #include "intel_resolve_map.h"
-#include "intel_span.h"
 #include "intel_tex_layout.h"
 #include "intel_tex.h"
 #include "intel_blit.h"
diff --git a/src/mesa/drivers/dri/intel/intel_span.c b/src/mesa/drivers/dri/intel/intel_span.c
deleted file mode 100644 (file)
index 940f3c2..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/**************************************************************************
- * 
- * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
- * Copyright 2011 Intel Corporation
- * All Rights Reserved.
- * 
- * 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, sub license, 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 (including the
- * next paragraph) 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 NON-INFRINGEMENT.
- * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS 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.
- * 
- * Authors:
- *     Chad Versace <chad@chad-versace.us>
- *
- **************************************************************************/
-
-#include <stdbool.h>
-#include <stdint.h>
-#include "main/glheader.h"
-#include "main/macros.h"
-#include "main/mtypes.h"
-#include "main/colormac.h"
-#include "main/renderbuffer.h"
-
-#include "intel_buffers.h"
-#include "intel_fbo.h"
-#include "intel_mipmap_tree.h"
-#include "intel_screen.h"
-#include "intel_span.h"
-#include "intel_regions.h"
-#include "intel_tex.h"
-
-#include "swrast/swrast.h"
-#include "swrast/s_renderbuffer.h"
-
-/**
- * Prepare for software rendering.  Map current read/draw framebuffers'
- * renderbuffers and all currently bound texture objects.
- */
-void
-intelSpanRenderStart(struct gl_context * ctx)
-{
-   struct intel_context *intel = intel_context(ctx);
-
-   intel_flush(ctx);
-   intel_prepare_render(intel);
-   intel_flush(ctx);
-
-   _swrast_map_textures(ctx);
-   _swrast_map_renderbuffers(ctx);
-}
-
-/**
- * Called when done software rendering.  Unmap the buffers we mapped in
- * the above function.
- */
-void
-intelSpanRenderFinish(struct gl_context * ctx)
-{
-   _swrast_flush(ctx);
-   _swrast_unmap_textures(ctx);
-   _swrast_unmap_renderbuffers(ctx);
-}
-
-
-void
-intelInitSpanFuncs(struct gl_context * ctx)
-{
-   struct swrast_device_driver *swdd = _swrast_GetDeviceDriverReference(ctx);
-   if (swdd) {
-      swdd->SpanRenderStart = intelSpanRenderStart;
-      swdd->SpanRenderFinish = intelSpanRenderFinish;
-   }
-}
diff --git a/src/mesa/drivers/dri/intel/intel_span.h b/src/mesa/drivers/dri/intel/intel_span.h
deleted file mode 100644 (file)
index ba49df9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/**************************************************************************
- * 
- * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
- * All Rights Reserved.
- * 
- * 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, sub license, 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 (including the
- * next paragraph) 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 NON-INFRINGEMENT.
- * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS 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.
- * 
- **************************************************************************/
-
-#ifndef _INTEL_SPAN_H
-#define _INTEL_SPAN_H
-
-#include "main/formats.h"
-#include <stdbool.h>
-
-extern void intelInitSpanFuncs(struct gl_context * ctx);
-
-extern void intelSpanRenderFinish(struct gl_context * ctx);
-extern void intelSpanRenderStart(struct gl_context * ctx);
-
-#endif
index bedc1fae4d4cd2d6608515a7364caba22e5f0d02..4e307f8f6c2d058834377001db0dca578858cebd 100644 (file)
@@ -21,7 +21,6 @@
 #include "intel_tex.h"
 #include "intel_blit.h"
 #include "intel_fbo.h"
-#include "intel_span.h"
 
 #ifndef I915
 #include "brw_context.h"