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

2013-04-29 Thread Eric Anholt
Brian Paul 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 wit

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

2013-04-26 Thread Roland Scheidegger
Am 26.04.2013 21:55, schrieb Brian Paul: > 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_OPERATI

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

2013-04-26 Thread Brian Paul
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