mesa/st: Don't use 4bits for GL_UNSIGNED_BYTE_3_3_2(_REV)
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Oct 2012 14:47:12 +0000 (15:47 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Oct 2012 16:57:57 +0000 (17:57 +0100)
commit0cb0c38ccea84ab524d10447585000d41fbb8c74
treee622d054d016acbcfae8f6634c24c6bef26f0271
parent4efcdd1e7a187c3493628fe1a8067a1defe86f9d
mesa/st: Don't use 4bits for GL_UNSIGNED_BYTE_3_3_2(_REV)

4bits and 3bits quantitization values differ significantly for
values other than 0 and 1.

Fixes piglit draw-pixels for softpipe/llvmpipe.

NOTE: Probably a candidate for stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_cb_drawpixels.c