[Mesa-dev] [PATCH 5/9] i965: remove unused context

Thomas Hindoe Paaboel Andersen phomes at gmail.com
Tue Apr 11 22:04:03 UTC 2017


---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 --
 src/mesa/drivers/dri/i965/intel_pixel_draw.c  | 2 --
 2 files changed, 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 81e2d6e..5d5c77f 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2593,8 +2593,6 @@ intel_miptree_unmap_blit(struct brw_context *brw,
 			 unsigned int level,
 			 unsigned int slice)
 {
-   struct gl_context *ctx = &brw->ctx;
-
    intel_miptree_unmap_raw(map->linear_mt);
 
    if (map->mode & GL_MAP_WRITE_BIT) {
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_draw.c b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
index e84e473..a435800 100644
--- a/src/mesa/drivers/dri/i965/intel_pixel_draw.c
+++ b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
@@ -151,8 +151,6 @@ intelDrawPixels(struct gl_context * ctx,
                 const struct gl_pixelstore_attrib *unpack,
                 const GLvoid * pixels)
 {
-   struct brw_context *brw = brw_context(ctx);
-
    if (!_mesa_check_conditional_render(ctx))
       return;
 
-- 
2.9.3



More information about the mesa-dev mailing list