[Mesa-dev] [PATCH] mesa: fix the compressed TexSubImage size checking code

Eric Anholt eric at anholt.net
Mon Apr 29 09:42:08 PDT 2013


Brian Paul <brianp at vmware.com> writes:

> Before, we'd incorrectly generate an error if we we tried to
> replace a non-4x4 block near the edge of a NPOT compressed texture.
> For example, if the dest image was 15 texels wide and xoffset=12
> and width=3 we'd incorrectly generate GL_INVALID_OPERATION.
>
> Verified with new tests added to piglit s3tc-errors test.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- 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/20130429/797a1bef/attachment-0001.pgp>


More information about the mesa-dev mailing list