[Mesa-dev] [PATCH 4/5] texstore: Add a generic implementation of GL_ARB_clear_texture

Neil Roberts neil at linux.intel.com
Wed Jul 2 02:34:05 PDT 2014


Ilia Mirkin <imirkin at alum.mit.edu> writes:

> Not entirely sure how to interpret what the spec says, but something
> to potentially consider is MESA_ycbcr_texture (supported by swrast).
> RGBA 0 (black) != 0 in ycbcr... all 0's there are a green color.

The spec for the extension says:

“If <data> is NULL, then the pointer is ignored and the sub-range of the
texture image is filled with zeros.”

I would interpret that to mean that as long as the values of the
components are zero it doesn't matter what colour that represents.

- Neil


More information about the mesa-dev mailing list