OSDN Git Service

mesa: add GL_HALF_FLOAT as supported type to readpixels
authorLin Johnson <johnson.lin@intel.com>
Mon, 26 Mar 2018 14:13:32 +0000 (22:13 +0800)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 27 Mar 2018 06:04:52 +0000 (09:04 +0300)
commit41cf30b8bc55fdf36adac3311002dc32b6715949
treec38d634f758df7a3349f4372f74aced3396c459f
parent0024b77e876017b559b76d816d40a2abbd9a0ea1
mesa: add GL_HALF_FLOAT as supported type to readpixels

EXT_color_buffer_float spec states:

  "An INVALID_OPERATION error is generated ... if the color buffer is
   a floating-point format and type is not FLOAT, HALF FLOAT, or
   UNSIGNED_INT_10F_11F_11F_REV."

This means that GL_HALF_FLOAT type should be supported when color
buffer has floating-point format.

Fixes Android CTS test android.view.cts.PixelCopyTest.

v2: remove comments of EXT_color_buffer_half_float as
    EXT_color_buffer_float can use type GL_HALF_FLOAT

Signed-off-by: Lin Johnson <johnson.lin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/readpix.c