swr/rast: remove extra pixel center adjustment in BinPostSetupPoints
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 24 May 2017 18:36:00 +0000 (13:36 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 30 May 2017 22:19:51 +0000 (17:19 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/binner.cpp

index 4c6a5b1e409e51433bb57cc4ff7f1047eef74d1b..61b3b665103b33002d4eaf20afdb9dde59bec51c 100644 (file)
@@ -1528,11 +1528,6 @@ void BinPostSetupPoints(
     PFN_PROCESS_ATTRIBUTES pfnProcessAttribs = GetProcessAttributesFunc(1,
         state.backendState.swizzleEnable, state.backendState.constantInterpolationMask);
 
-    // adjust for pixel center location
-    simdscalar offset = g_pixelOffsets[rastState.pixelLocation];
-    primVerts.x = _simd_add_ps(primVerts.x, offset);
-    primVerts.y = _simd_add_ps(primVerts.y, offset);
-
     // convert to fixed point
     simdscalari vXi, vYi;
     vXi = fpToFixedPointVertical(primVerts.x);