const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams.bias : 0.0f);
- const float posEps = 1.0f / float((1<<MIN_SUBPIXEL_BITS) + 1);
+ const float posEps = 1.0f / float(1<<MIN_SUBPIXEL_BITS);
int numFailed = 0;
const float nx = wx / dstW;
const float ny = wy / dstH;
- const bool tri0 = nx + ny - posEps <= 1.0f;
- const bool tri1 = nx + ny + posEps >= 1.0f;
+ const bool tri0 = (wx-posEps)/dstW + (wy-posEps)/dstH <= 1.0f;
+ const bool tri1 = (wx+posEps)/dstW + (wy+posEps)/dstH >= 1.0f;
bool isOk = false;
const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams.bias : 0.0f);
- const float posEps = 1.0f / float((1<<MIN_SUBPIXEL_BITS) + 1);
+ const float posEps = 1.0f / float(1<<MIN_SUBPIXEL_BITS);
int numFailed = 0;
const float nx = wx / dstW;
const float ny = wy / dstH;
- const bool tri0 = nx + ny - posEps <= 1.0f;
- const bool tri1 = nx + ny + posEps >= 1.0f;
+ const bool tri0 = (wx-posEps)/dstW + (wy-posEps)/dstH <= 1.0f;
+ const bool tri1 = (wx+posEps)/dstW + (wy+posEps)/dstH >= 1.0f;
bool isOk = false;