Mesa (master): i965: drop dead scalar handling in GLSL.

Eric Anholt anholt at kemper.freedesktop.org
Wed Aug 12 20:20:51 UTC 2009


Module: Mesa
Branch: master
Commit: 63fa5fd319c0d0114085f47f028a36f63c1f7295
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=63fa5fd319c0d0114085f47f028a36f63c1f7295

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Aug 12 13:00:23 2009 -0700

i965: drop dead scalar handling in GLSL.

---

 src/mesa/drivers/dri/i965/brw_wm.h      |    1 -
 src/mesa/drivers/dri/i965/brw_wm_glsl.c |   13 -------------
 2 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h
index 972c257..ae98b54 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.h
+++ b/src/mesa/drivers/dri/i965/brw_wm.h
@@ -298,7 +298,6 @@ void brw_wm_lookup_iz( GLuint line_aa,
 
 GLboolean brw_wm_is_glsl(const struct gl_fragment_program *fp);
 void brw_wm_glsl_emit(struct brw_context *brw, struct brw_wm_compile *c);
-int brw_num_wm_src_regs(gl_inst_opcode op);
 
 
 #endif
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
index f480609..26fe40c 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
@@ -131,19 +131,6 @@ static void set_reg(struct brw_wm_compile *c, int file, int index,
     c->wm_regs[file][index][component].inited = GL_TRUE;
 }
 
-/**
- * Examine instruction's write mask to find index of first component
- * enabled for writing.
- */
-static int get_scalar_dst_index(const struct prog_instruction *inst)
-{
-    int i;
-    for (i = 0; i < 4; i++)
-	if (inst->DstReg.WriteMask & (1<<i))
-	    break;
-    return i;
-}
-
 static struct brw_reg alloc_tmp(struct brw_wm_compile *c)
 {
     struct brw_reg reg;




More information about the mesa-commit mailing list