[Piglit] [PATCH] texturing: add reliable test for GL_TEXTURE_MAX_LEVEL using texelFetch
christoph.bumiller at speed.at
Sun Apr 7 09:48:12 PDT 2013
On 07.04.2013 13:31, Christoph Bumiller wrote:
> From: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
> 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.
More information about the Piglit