mesa/main/readpix: Correct handling of packed floating point values
authorGert Wollny <gert.wollny@collabora.com>
Fri, 27 Apr 2018 16:04:01 +0000 (18:04 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 4 May 2018 17:47:46 +0000 (10:47 -0700)
commite695a35f40b085d524ccc9cc910dd49e1a864485
tree0219007f65b85cfbe9706af6dd7ce5bd067f6f30
parent5c075b085585b1629022d40ce7af9448c7d0e906
mesa/main/readpix: Correct handling of packed floating point values

Make sure that clamping in the pixel transfer operations is enabled/disabled
for packed floating point values just like it is done for single normal and
half precision floating point values.

This fixes a series of CTS tests with virgl that use r11f_g11f_b10f
buffers as target, and where virglrenderer reads these surfaces back
using the format GL_UNSIGNED_INT_10F_11F_11F_REV.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/readpix.c