diff options
author | Marek Olšák <[email protected]> | 2012-02-14 15:12:49 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-02-14 15:49:23 +0100 |
commit | 9a20130e5f703e9e9279965183993b95907c7d6b (patch) | |
tree | f364a2e30b5acf35ab21275ebdd1278390f1e0b1 /src/gallium/drivers/r600/evergreen_state.c | |
parent | 39b0da9f8d04315c698f8611304d1a66e8505c6c (diff) |
r600g: consolidate some translate functions
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_state.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index b8825163161..1d13547f4de 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -173,48 +173,6 @@ static uint32_t r600_translate_blend_factor(int blend_fact) return 0; } -static uint32_t r600_translate_stencil_op(int s_op) -{ - switch (s_op) { - case PIPE_STENCIL_OP_KEEP: - return V_028800_STENCIL_KEEP; - case PIPE_STENCIL_OP_ZERO: - return V_028800_STENCIL_ZERO; - case PIPE_STENCIL_OP_REPLACE: - return V_028800_STENCIL_REPLACE; - case PIPE_STENCIL_OP_INCR: - return V_028800_STENCIL_INCR; - case PIPE_STENCIL_OP_DECR: - return V_028800_STENCIL_DECR; - case PIPE_STENCIL_OP_INCR_WRAP: - return V_028800_STENCIL_INCR_WRAP; - case PIPE_STENCIL_OP_DECR_WRAP: - return V_028800_STENCIL_DECR_WRAP; - case PIPE_STENCIL_OP_INVERT: - return V_028800_STENCIL_INVERT; - default: - R600_ERR("Unknown stencil op %d", s_op); - assert(0); - break; - } - return 0; -} - -static uint32_t r600_translate_fill(uint32_t func) -{ - switch(func) { - case PIPE_POLYGON_MODE_FILL: - return 2; - case PIPE_POLYGON_MODE_LINE: - return 1; - case PIPE_POLYGON_MODE_POINT: - return 0; - default: - assert(0); - return 0; - } -} - /* translates straight */ static uint32_t r600_translate_ds_func(int func) { |