llvmpipe: Fix rendering to PIPE_FORMAT_R10G10B10A2_UNORM.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 20 Sep 2013 11:58:59 +0000 (12:58 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 20 Sep 2013 16:34:57 +0000 (17:34 +0100)
commit1569b3e536da9337a28a16d0cc6ed07043bf094b
treef560e3551282410f62dae8751393c067b715fe57
parent2ab4e1d1e6091f2170b1395b8d1bb30d42f133a7
llvmpipe: Fix rendering to PIPE_FORMAT_R10G10B10A2_UNORM.

We must take rounding in consideration when re-scaling to narrow
normalized channels, such as 2-bit normalized alpha.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_fs.c