[Mesa-dev] [PATCH 17/23] readpix: for implentation format/type, ignore int vs. non-int check

Eric Anholt eric at anholt.net
Wed Jan 9 11:02:18 PST 2013


Jordan Justen <jordan.l.justen at intel.com> writes:

> In ES or GL+GL_ARB_ES2_compatibility, the usage of
> format = IMPLEMENTATION_COLOR_READ_FORMAT +
> type = IMPLEMENTATION_COLOR_READ_TYPE
> can function, even if the src/dst int vs. non-int types
> differ.

This seems bogus -- why should you get to read to formats that ought to
be invalid?  I bet what we're missing is an implementation of this bit
of spec: "The implementation-chosen format may vary depending on the
format of the selected read buffer of the currently bound read
framebuffer." (section 4.3 of the gles3 spec) which lets us actually
specify a format that makes sense for an int framebuffer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130109/9c715fce/attachment.pgp>


More information about the mesa-dev mailing list