diff options
author | Rob Clark <[email protected]> | 2014-05-21 16:51:12 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-05-21 17:29:13 -0400 |
commit | a4d229b0992806f759ab4c71fc5712e8ab2e1c9d (patch) | |
tree | a65b45859ad9a57435bf2978b87f737edea6160b /src/gallium/drivers/freedreno/freedreno_util.c | |
parent | 5a40a0008961ff3172f78d1a61bf3516680100e1 (diff) |
freedreno/a3xx: fix blend opcode
Seems the opcodes are slightly different from a2xx. Resync headers and
move blend_func() helper into hw generation specific code.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_util.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_util.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.c b/src/gallium/drivers/freedreno/freedreno_util.c index 7056edd2c15..9892b05c37e 100644 --- a/src/gallium/drivers/freedreno/freedreno_util.c +++ b/src/gallium/drivers/freedreno/freedreno_util.c @@ -111,26 +111,6 @@ fd_blend_factor(unsigned factor) } } -enum adreno_rb_blend_opcode -fd_blend_func(unsigned func) -{ - switch (func) { - case PIPE_BLEND_ADD: - return BLEND_DST_PLUS_SRC; - case PIPE_BLEND_MIN: - return BLEND_MIN_DST_SRC; - case PIPE_BLEND_MAX: - return BLEND_MAX_DST_SRC; - case PIPE_BLEND_SUBTRACT: - return BLEND_SRC_MINUS_DST; - case PIPE_BLEND_REVERSE_SUBTRACT: - return BLEND_DST_MINUS_SRC; - default: - DBG("invalid blend func: %x", func); - return 0; - } -} - enum adreno_pa_su_sc_draw fd_polygon_mode(unsigned mode) { |