diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-02-25 13:53:11 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-02-25 16:33:53 -0500 |
commit | 75b2178d83cf40308cf3a44c3dd6b8405f2606ce (patch) | |
tree | dd13d0a355ea39b3ef67b17906d85c46b9f032fb | |
parent | 52c7a5f7ab8b6f5ce50f744f13984e5df5d6ca25 (diff) |
Result of read on left hand sideshader
-rw-r--r-- | pixman/pixman-shader2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pixman/pixman-shader2.c b/pixman/pixman-shader2.c index 130199f6..f3c0c78e 100644 --- a/pixman/pixman-shader2.c +++ b/pixman/pixman-shader2.c @@ -207,7 +207,7 @@ pixman_mul (pixman_shader_t *shader, uint16_t dest, uint16_t src1, uint16_t src2 } static pixman_shader_t * -pixman_read (pixman_shader_t *shader, uint8_t image, uint16_t dest) +pixman_read (pixman_shader_t *shader, uint16_t dest, uint8_t image) { pixman_inst_t *inst; @@ -462,8 +462,8 @@ main () TMP, }; - shader = pixman_read (shader, 0, SRC_A ); /* write to src_a/r/g/b */ - shader = pixman_read (shader, 1, MASK_A ); + shader = pixman_read (shader, SRC_A, 0 ); /* write to src_a/r/g/b */ + shader = pixman_read (shader, MASK_A, 1 ); shader = pixman_mul (shader, SRC_A, SRC_A, MASK_A); shader = pixman_mul (shader, SRC_R, SRC_R, MASK_A); shader = pixman_mul (shader, SRC_G, SRC_G, MASK_A); |