Adjust {Max,Min}Coords for {proj}offset texture tests with 3D texture targets
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 22 Nov 2016 10:55:44 +0000 (06:55 -0400)
committerPyry Haulos <phaulos@google.com>
Wed, 30 Nov 2016 20:53:03 +0000 (12:53 -0800)
commit8efe5254646f6bdeb3c9ea26ae37ae24a3286375
tree3af6c3bdc41f2f467d26919321e2b64e4e785834
parent46c7c2729f7941bbe8e50d3919f1b75131e34b89
Adjust {Max,Min}Coords for {proj}offset texture tests with 3D texture targets

As it is now, the computed lod ends up being ~0.962, which is very close to the
threshold that separates selection of the first two mipmap levels. At least on
Intel GPUs this leads to test failures because the miplevel selected by CTS to
produce the expected result does not match the one actually selected by the
hardware.

This patch alters the coordinates used with these tests so the comuted lod
isn't too close to a mipmap level threshold.

Affects:
dEQP-VK.glsl.texture_functions.texture{proj}offset.sampler3d*

Khronos issue: #552

Change-Id: I6ec766133905d2085cd795eea8aaf0b04e830278
external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderTextureFunctionTests.cpp