On 21/03/18 06:57, Lin Johnson wrote:
> 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
> #TestWindowProducerCopyToRGBA16F
>
> Signed-off-by: Lin Johnson <johnson....@intel.com>
> ---
>  src/mesa/main/readpix.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
> index 6ce340ddf9bb..51331dd095ab 100644
> --- a/src/mesa/main/readpix.c
> +++ b/src/mesa/main/readpix.c
> @@ -920,6 +920,8 @@ read_pixels_es3_error_check(GLenum format, GLenum type,
>     case GL_RGBA:
>        if (type == GL_FLOAT && data_type == GL_FLOAT)
>           return GL_NO_ERROR; /* EXT_color_buffer_float */
> +      if (type == GL_HALF_FLOAT && data_type == GL_FLOAT)
> +         return GL_NO_ERROR; /* EXT_color_buffer_half_float */

If this combination is allowed thanks to that extension, what would
happen if that extension is not supported? shouldn't include a extension
check? Or that is checked in a different place?

>        if (type == GL_UNSIGNED_BYTE && data_type == GL_UNSIGNED_NORMALIZED)
>           return GL_NO_ERROR;
>        if (internalFormat == GL_RGB10_A2 &&


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to