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)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:41 +0000 (18:38 +0100)
commit738d1ae3b59b073605c7fb58ec6f0a85a185ffd3
treef78ed75519aa59e1bde77fa663d8f885cd441e11
parent3479fdef2f0fe4f98828a84d0b44df5fd66e702c
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>
(cherry picked from commit 0cb0c38ccea84ab524d10447585000d41fbb8c74)
src/mesa/state_tracker/st_cb_drawpixels.c