From: Kenneth Graunke Date: Mon, 15 Oct 2012 00:04:01 +0000 (-0700) Subject: mesa: Remove PROGRAM_WRITE_ONLY register type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2e0293213dcff24e26a4968a19262bfe7a781b9;p=mesa.git mesa: Remove PROGRAM_WRITE_ONLY register type. More dead code. I'm not sure what it was for. Reviewed-by: Brian Paul Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index 3b02fd0598c..02239b45b50 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 20664dd0c97..b371e80a4c7 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 5b6a5c14927..9ee2f20145b 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -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()", diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index 5fadb82f659..a83cce4e3cd 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: