mesa: Remove PROGRAM_WRITE_ONLY register type.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Oct 2012 00:04:01 +0000 (17:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:35:25 +0000 (11:35 -0700)
More dead code.  I'm not sure what it was for.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vs_emit.c
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/program/prog_execute.c
src/mesa/program/prog_print.c

index 3b02fd0598c68c7aa086f50e3ee36f84e47b5728..02239b45b5010ebedac6b1f78fa6c4d69ce13c3d 100644 (file)
@@ -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();
index 20664dd0c9749a37855f7d2668df501274988f7b..b371e80a4c73f7875c8c09a32e50f76c0dcb817c 100644 (file)
@@ -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:
index 5b6a5c14927a6795c3a014688b3d37a7ef60fc47..9ee2f20145b69994c9c9d5d3cd7de540c8cea0d0 100644 (file)
@@ -183,9 +183,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()",
index 5fadb82f659b684f105540e5db1df8e56ab97f65..a83cce4e3cd88ffb0230419296ddc5a7aaf59db8 100644 (file)
@@ -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: