[Mesa-dev] [PATCH 23/23] mesa: Remove PROGRAM_WRITE_ONLY register type.

Kenneth Graunke kenneth at whitecape.org
Sun Oct 14 17:43:23 PDT 2012


More dead code.  I'm not sure what it was for.
---
 src/mesa/drivers/dri/i965/brw_vs_emit.c   | 1 -
 src/mesa/drivers/dri/r200/r200_vertprog.c | 1 -
 src/mesa/program/prog_execute.c           | 3 ---
 src/mesa/program/prog_print.c             | 2 --
 4 files changed, 7 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index 3b02fd0..02239b4 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c
@@ -1010,7 +1010,6 @@ static struct brw_reg get_reg( struct brw_vs_compile *c,
 
    case PROGRAM_LOCAL_PARAM: 
    case PROGRAM_ENV_PARAM: 
-   case PROGRAM_WRITE_ONLY:
    default:
       assert(0);
       return brw_null_reg();
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c
index 20664dd..b371e80 100644
--- a/src/mesa/drivers/dri/r200/r200_vertprog.c
+++ b/src/mesa/drivers/dri/r200/r200_vertprog.c
@@ -218,7 +218,6 @@ static unsigned long t_src_class(gl_register_file file)
       return VSF_IN_CLASS_PARAM;
    /*
    case PROGRAM_OUTPUT:
-   case PROGRAM_WRITE_ONLY:
    case PROGRAM_ADDRESS:
    */
    default:
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c
index b32e72a..cffca9e 100644
--- a/src/mesa/program/prog_execute.c
+++ b/src/mesa/program/prog_execute.c
@@ -200,9 +200,6 @@ get_dst_register_pointer(const struct prog_dst_register *dest,
          return dummyReg;
       return machine->Outputs[reg];
 
-   case PROGRAM_WRITE_ONLY:
-      return dummyReg;
-
    default:
       _mesa_problem(NULL,
          "Invalid dest register file %d in get_dst_register_pointer()",
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c
index 5fadb82..a83cce4 100644
--- a/src/mesa/program/prog_print.c
+++ b/src/mesa/program/prog_print.c
@@ -64,8 +64,6 @@ _mesa_register_file_name(gl_register_file f)
       return "CONST";
    case PROGRAM_UNIFORM:
       return "UNIFORM";
-   case PROGRAM_WRITE_ONLY:
-      return "WRITE_ONLY";
    case PROGRAM_ADDRESS:
       return "ADDR";
    case PROGRAM_SAMPLER:
-- 
1.7.12.2



More information about the mesa-dev mailing list