aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorTobias Jakobi2015-03-11 14:38:46 -0500
committerEmil Velikov2015-03-16 17:21:40 -0500
commit858b21f6af03c9658126fd6ec2aa35b4e5151ecb (patch)
tree1e74e37c97d667a1e1fe2c0976406cef965dc626 /exynos
parent3f12191f29c500c4adcffdcca73d74cdd93c1853 (diff)
downloadexternal-libgbm-858b21f6af03c9658126fd6ec2aa35b4e5151ecb.tar.gz
external-libgbm-858b21f6af03c9658126fd6ec2aa35b4e5151ecb.tar.xz
external-libgbm-858b21f6af03c9658126fd6ec2aa35b4e5151ecb.zip
exynos: fimg2d: follow-up fix for G2D_COEFF_MODE_GB_COLOR
Also add the register field formatting info provided by Inki Dae <inki.dae@samsung.com>. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Suggested-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/exynos_fimg2d.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/exynos/exynos_fimg2d.h b/exynos/exynos_fimg2d.h
index f76f2a9f..9db0c88b 100644
--- a/exynos/exynos_fimg2d.h
+++ b/exynos/exynos_fimg2d.h
@@ -151,6 +151,12 @@ enum e_g2d_op {
151 G2D_OP_CONJOINT_DST = 0x22, 151 G2D_OP_CONJOINT_DST = 0x22,
152}; 152};
153 153
154/*
155 * The G2D_COEFF_MODE_DST_{COLOR,ALPHA} modes both use the ALPHA_REG(0x618)
156 * register. The registers fields are as follows:
157 * bits 31:8 = color value (RGB order)
158 * bits 7:0 = alpha value
159 */
154enum e_g2d_coeff_mode { 160enum e_g2d_coeff_mode {
155 G2D_COEFF_MODE_ONE, 161 G2D_COEFF_MODE_ONE,
156 G2D_COEFF_MODE_ZERO, 162 G2D_COEFF_MODE_ZERO,
@@ -160,7 +166,7 @@ enum e_g2d_coeff_mode {
160 G2D_COEFF_MODE_DST_COLOR, 166 G2D_COEFF_MODE_DST_COLOR,
161 /* Global Alpha : Set by ALPHA_REG(0x618) */ 167 /* Global Alpha : Set by ALPHA_REG(0x618) */
162 G2D_COEFF_MODE_GB_ALPHA, 168 G2D_COEFF_MODE_GB_ALPHA,
163 /* Global Color : Set by ALPHA_REG(0x618) */ 169 /* Global Color and Alpha : Set by ALPHA_REG(0x618) */
164 G2D_COEFF_MODE_GB_COLOR, 170 G2D_COEFF_MODE_GB_COLOR,
165 /* (1-SRC alpha)/DST Alpha */ 171 /* (1-SRC alpha)/DST Alpha */
166 G2D_COEFF_MODE_DISJOINT_S, 172 G2D_COEFF_MODE_DISJOINT_S,