[Mesa-dev] [PATCH 7/8] intel: Drop little bits of dead code.
Eric Anholt
eric at anholt.net
Fri Jun 21 10:57:31 PDT 2013
I noticed these while building the fork-i915 branch.
---
src/mesa/drivers/dri/i915/intel_tris.c | 2 --
src/mesa/drivers/dri/intel/intel_context.h | 3 ---
src/mesa/drivers/dri/intel/intel_fbo.h | 1 -
src/mesa/drivers/dri/intel/intel_screen.h | 5 -----
src/mesa/drivers/dri/intel/intel_tex_obj.h | 4 ----
5 files changed, 15 deletions(-)
diff --git a/src/mesa/drivers/dri/i915/intel_tris.c b/src/mesa/drivers/dri/i915/intel_tris.c
index 126094b..02b225b 100644
--- a/src/mesa/drivers/dri/i915/intel_tris.c
+++ b/src/mesa/drivers/dri/i915/intel_tris.c
@@ -94,8 +94,6 @@ static void intel_start_inline(struct intel_context *intel, uint32_t prim)
intel->no_batch_wrap = true;
- /*printf("%s *", __progname);*/
-
/* Emit a slot which will be filled with the inline primitive
* command later.
*/
diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index 0f1a0c7..84452b9 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -359,9 +359,6 @@ struct intel_context
driOptionCache optionCache;
};
-extern char *__progname;
-
-
#define SUBPIXEL_X 0.125
#define SUBPIXEL_Y 0.125
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.h b/src/mesa/drivers/dri/intel/intel_fbo.h
index e1b4df5..5f40d35 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.h
+++ b/src/mesa/drivers/dri/intel/intel_fbo.h
@@ -51,7 +51,6 @@ struct intel_renderbuffer
{
struct swrast_renderbuffer Base;
struct intel_mipmap_tree *mt; /**< The renderbuffer storage. */
- drm_intel_bo *map_bo;
/**
* \name Miptree view
diff --git a/src/mesa/drivers/dri/intel/intel_screen.h b/src/mesa/drivers/dri/intel/intel_screen.h
index 4833937..188e2c0 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.h
+++ b/src/mesa/drivers/dri/intel/intel_screen.h
@@ -45,12 +45,9 @@ struct intel_screen
int max_gl_es1_version;
int max_gl_es2_version;
- int logTextureGranularity;
-
__DRIscreen *driScrnPriv;
bool no_hw;
- GLuint relaxed_relocations;
/*
* The hardware hiz and separate stencil fields are needed in intel_screen,
@@ -77,8 +74,6 @@ struct intel_screen
driOptionCache optionCache;
};
-extern bool intelMapScreenRegions(__DRIscreen * sPriv);
-
extern void intelDestroyContext(__DRIcontext * driContextPriv);
extern GLboolean intelUnbindContext(__DRIcontext * driContextPriv);
diff --git a/src/mesa/drivers/dri/intel/intel_tex_obj.h b/src/mesa/drivers/dri/intel/intel_tex_obj.h
index 8c166b4..e30dd8a 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_obj.h
+++ b/src/mesa/drivers/dri/intel/intel_tex_obj.h
@@ -41,10 +41,6 @@ struct intel_texture_object
*/
unsigned int _MaxLevel;
- /* Offset for firstLevel image:
- */
- GLuint textureOffset;
-
/* On validation any active images held in main memory or in other
* regions will be copied to this region and the old storage freed.
*/
--
1.8.3.rc0
More information about the mesa-dev
mailing list