[Mesa-dev] [PATCH v3] mesa: readpixels add support for GL_HALF_FLOAT
Eric Anholt
eric at anholt.net
Fri Mar 30 20:25:27 UTC 2018
Lin Johnson <johnson.lin at intel.com> writes:
> Ext_color_buffer_half_float is using type GL_HALF_FLOAT
> and data_type GL_FLOAT. This fix Android CTS test
> android.view.cts.PixelCopyTest
> v2: remove commtens of Ext_color_buffer_half_float.
> As Ext_color_buffer__float can use type GL_HALF_FLOAT
>
> Reviewed-by: Palli, Tapani <tapani.palli at intel.com>
> Signed-off-by: Lin Johnson <johnson.lin at intel.com>
I've been looking into CTS issues on VC5, and I think this patch should
be reverted.
The issue is that the text above that in the spec disallows this case.
From GLES 3.0.2:
Only two combinations of format and type are accepted in most
cases. The first varies depending on the format of the currently
bound rendering surface. For normalized fixed-point rendering
surfaces, the combination format RGBA and type UNSIGNED_BYTE is
accepted. For signed integer rendering surfaces, the combina- tion
format RGBA_INTEGER and type INT is accepted. For unsigned integer
rendering surfaces, the combination format RGBA_INTEGER and type
UNSIGNED_INT is accepted.
[...]
ReadPixels generates an INVALID_OPERATION error if the combination
of format and type is unsupported.
and this spec adds on to that first paragraph:
For floating-point rendering surfaces, the combination
format RGBA and type FLOAT is accepted.
The second allowed combo is:
The second is an implementation-chosen format from among those
defined in table 3.2, excluding formats DEPTH_COMPONENT and
DEPTH_STENCIL . The values of format and type for this format may be
determined by calling Get- Integerv with the symbolic constants
IMPLEMENTATION_COLOR_READ_FORMAT and IMPLEMENTATION_COLOR_READ_TYPE
, respectively.
The failing cases are in the CTS's packed_pixels testsuite, such as:
KHR-GLES3.packed_pixels.pbo_rectangle.r11f_g11f_b10f
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180330/c3e85fe7/attachment.sig>
More information about the mesa-dev
mailing list