On 07.04.2013 13:31, Christoph Bumiller wrote:
> From: Christoph Bumiller <[email protected]>
>
> ---
>  tests/all.tests                   |    1 +
>  tests/texturing/CMakeLists.gl.txt |    1 +
>  tests/texturing/tex-max-level.c   |  150 
> +++++++++++++++++++++++++++++++++++++
>  3 files changed, 152 insertions(+), 0 deletions(-)
>  create mode 100644 tests/texturing/tex-max-level.c
> +
> +/** @file tex-max-level.c
> + *
> + * Tests that GL_TEXTURE_MAX_LEVEL works properly, that is without cheating
> + * by merging it with the sampler's min/max_lod.
> + */
> +

Sorry, not so reliably as it turns out this relies on undefined
behaviour; most operations return 0 for out-of-bounds access but here it
seems it's undefined.

Need to find something else to distinguish the texture state MaxLevel
and the sampler state MaxLod ... if that's even possible.
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to