Fix derivate offset in cube map verification code
authorPyry Haulos <phaulos@google.com>
Thu, 29 Jan 2015 21:47:02 +0000 (13:47 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 29 Jan 2015 22:02:47 +0000 (22:02 +0000)
To accomodate implementations that use same derivative for a 2x2 pixel
quad when computing LOD, cube map verification code samples derivatives
in 3x3 neighborhood and computes bounds based on that.

This change fixes a typo that prevented the code from considering
(+1, +1) offset.

Bug: 19170879
Change-Id: I2de7aa422fc2fa3ff4432e802bb98c90aedeb548

modules/glshared/glsTextureTestUtil.cpp

index 5f8abacbd3934b1af5eb403061986848774f92af..9cf6258b890da69d8d064b5091971226b4d7caac 100644 (file)
@@ -2653,7 +2653,7 @@ int computeTextureLookupDiff (const tcu::ConstPixelBufferAccess&  result,
                tcu::Vec2(-1, -1),
                tcu::Vec2(-1, +1),
                tcu::Vec2(+1, -1),
-               tcu::Vec2(+1, -1),
+               tcu::Vec2(+1, +1),
        };
 
        tcu::clear(errorMask, tcu::RGBA::green.toVec());