Lines Matching refs:reference
114 bool comparePixelRGBA8 (const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& resu… in comparePixelRGBA8() argument
122 const deUint32 x2 = (deUint32)de::min(x+1, reference.getWidth()-1); in comparePixelRGBA8()
125 const deUint32 y2 = (deUint32)de::min(y+1, reference.getHeight()-1); in comparePixelRGBA8()
127 if (compareThreshold(resPix, readRGBA8(reference, x1, y1), threshold) || in comparePixelRGBA8()
128 compareThreshold(resPix, readRGBA8(reference, x0, y1), threshold) || in comparePixelRGBA8()
129 compareThreshold(resPix, readRGBA8(reference, x2, y1), threshold) || in comparePixelRGBA8()
130 compareThreshold(resPix, readRGBA8(reference, x0, y0), threshold) || in comparePixelRGBA8()
131 compareThreshold(resPix, readRGBA8(reference, x1, y0), threshold) || in comparePixelRGBA8()
132 compareThreshold(resPix, readRGBA8(reference, x2, y0), threshold) || in comparePixelRGBA8()
133 compareThreshold(resPix, readRGBA8(reference, x0, y2), threshold) || in comparePixelRGBA8()
134 compareThreshold(resPix, readRGBA8(reference, x1, y2), threshold) || in comparePixelRGBA8()
135 compareThreshold(resPix, readRGBA8(reference, x2, y2), threshold)) in comparePixelRGBA8()
179 if (!de::inBounds(u, 0, (reference.getWidth()-1)<<NUM_SUBPIXEL_BITS) || in comparePixelRGBA8()
180 !de::inBounds(v, 0, (reference.getHeight()-1)<<NUM_SUBPIXEL_BITS)) in comparePixelRGBA8()
183 … if (compareThreshold(resPix, bilinearSampleRGBA8(reference, (deUint32)u, (deUint32)v), threshold)) in comparePixelRGBA8()
191 bool bilinearCompareRGBA8 (const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& r… in bilinearCompareRGBA8() argument
193 DE_ASSERT(reference.getFormat() == TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8) && in bilinearCompareRGBA8()
201 for (int y = 0; y < reference.getHeight(); y++) in bilinearCompareRGBA8()
203 for (int x = 0; x < reference.getWidth(); x++) in bilinearCompareRGBA8()
205 if (!comparePixelRGBA8(reference, result, threshold, x, y) && in bilinearCompareRGBA8()
206 !comparePixelRGBA8(result, reference, threshold, x, y)) in bilinearCompareRGBA8()
219 bool bilinearCompare (const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result… in bilinearCompare() argument
221 DE_ASSERT(reference.getWidth() == result.getWidth() && in bilinearCompare()
222 reference.getHeight() == result.getHeight() && in bilinearCompare()
223 reference.getDepth() == result.getDepth() && in bilinearCompare()
224 reference.getFormat() == result.getFormat()); in bilinearCompare()
225 DE_ASSERT(reference.getWidth() == errorMask.getWidth() && in bilinearCompare()
226 reference.getHeight() == errorMask.getHeight() && in bilinearCompare()
227 reference.getDepth() == errorMask.getDepth()); in bilinearCompare()
229 if (reference.getFormat() == TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in bilinearCompare()
230 return bilinearCompareRGBA8(reference, result, errorMask, threshold); in bilinearCompare()