OSDN Git Service

st/mesa: fix reversed copyimage canonical format
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 13 May 2016 05:12:37 +0000 (00:12 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 17 May 2016 20:28:38 +0000 (15:28 -0500)
commit4ac555e9e53f47b1fdeb5a3c3a13f7d3dccb91df
tree402089156fa960bf869fe57b95cc80e3c5e1272a
parent6c9f35bb73ca69b75cb40fc96c41717806fc74da
st/mesa: fix reversed copyimage canonical format

The format_desc swizzle describes where in the array each color channel
comes from - but the existing code was written as if each entry in the
swizzle described the meaning of an array element.

Fixes piglit's arb_copy_image-format-swizzle.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_copyimage.c