summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega
diff options
context:
space:
mode:
authorAndreas Betz <[email protected]>2012-05-11 07:29:06 -0600
committerBrian Paul <[email protected]>2012-05-11 16:13:14 -0600
commit9d6e908f140d0ed2fe8031d0f8084aaf2c3477db (patch)
tree08d956a3d2f6ed1a82e6538cf3c5baa83d5a2d1c /src/gallium/state_trackers/vega
parent93bcf7825d023d3d7108bc47a7a0929338bba6b9 (diff)
vega: fix 565 color unpacking bug
NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vega')
-rw-r--r--src/gallium/state_trackers/vega/vg_translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/vg_translate.c b/src/gallium/state_trackers/vega/vg_translate.c
index 06cc003b0b9..7b3df277c3b 100644
--- a/src/gallium/state_trackers/vega/vg_translate.c
+++ b/src/gallium/state_trackers/vega/vg_translate.c
@@ -526,8 +526,8 @@ void _vega_unpack_float_span_rgba(struct vg_context *ctx,
src += offset;
for (i = 0; i < n; ++i) {
VGfloat clr[4];
- clr[0] = ((*src >> 10) & 31)/31.;
- clr[1] = ((*src >> 5) & 95)/95.;
+ clr[0] = ((*src >> 11) & 31)/31.;
+ clr[1] = ((*src >> 5) & 63)/63.;
clr[2] = ((*src >> 0) & 31)/31.;
clr[3] = 1.f;