Lines Matching full:pointer
51 …void PixelRoutine::quad(Pointer<Byte> cBuffer[RENDERTARGETS], Pointer<Byte> &zBuffer, Pointer<Byte… in quad()
76 Float4 xxxx = Float4(Float(x)) + *Pointer<Float4>(primitive + OFFSET(Primitive,xQuad), 16); in quad()
86 x -= *Pointer<Float4>(constants + OFFSET(Constants,X) + q * sizeof(float4)); in quad()
109 Float4 yyyy = Float4(Float(y)) + *Pointer<Float4>(primitive + OFFSET(Primitive,yQuad), 16); in quad()
121 XXXX += *Pointer<Float4>(constants + OFFSET(Constants,sampleX[q]) + 16 * cMask[q]); in quad()
122 YYYY += *Pointer<Float4>(constants + OFFSET(Constants,sampleY[q]) + 16 * cMask[q]); in quad()
123 WWWW += *Pointer<Float4>(constants + OFFSET(Constants,weight) + 16 * cMask[q]); in quad()
247 …occlusion += *Pointer<UInt>(constants + OFFSET(Constants,occlusionCount) + 4 * (zMask[q] & sMask[q… in quad()
255 AddAtomic(Pointer<Long>(&profiler.ropOperations), 4); in quad()
281 …Float4 PixelRoutine::interpolateCentroid(Float4 &x, Float4 &y, Float4 &rhw, Pointer<Byte> planeEqu… in interpolateCentroid()
283 Float4 interpolant = *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation,C), 16); in interpolateCentroid()
287 interpolant += x * *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation,A), 16) + in interpolateCentroid()
288 y * *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation,B), 16); in interpolateCentroid()
299 void PixelRoutine::stencilTest(Pointer<Byte> &sBuffer, int q, Int &x, Int &sMask, Int &cMask) in stencilTest()
308 Pointer<Byte> buffer = sBuffer + 2 * x; in stencilTest()
312 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in stencilTest()
315 Byte8 value = *Pointer<Byte8>(buffer); in stencilTest()
320 value &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].testMaskQ)); in stencilTest()
329 valueCCW &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].testMaskQ)); in stencilTest()
334 value &= *Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)); in stencilTest()
335 valueCCW &= *Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)); in stencilTest()
356 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
359 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
362 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
367 equal = CmpEQ(equal, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
369 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
373 equal = *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedSignedQ)); in stencilTest()
380 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
388 …Bool PixelRoutine::depthTest(Pointer<Byte> &zBuffer, int q, Int &x, Float4 &z, Int &sMask, Int &zM… in depthTest()
409 Pointer<Byte> buffer; in depthTest()
415 pitch = *Pointer<Int>(data + OFFSET(DrawData,depthPitchB)); in depthTest()
424 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,depthSliceB)); in depthTest()
434 zValue.xy = *Pointer<Float4>(buffer); in depthTest()
435 zValue.zw = *Pointer<Float4>(buffer + pitch - 8); in depthTest()
439 zValue = *Pointer<Float4>(buffer, 16); in depthTest()
538 cmp = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
542 …cmp = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))) ^ Short4(0xFF… in alphaTest()
546 cmp = CmpGT(*Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4)), alpha); in alphaTest()
550 equal = CmpEQ(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
551 cmp = CmpGT(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
556 …cmp = CmpGT(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))) ^ Short4(0xFF… in alphaTest()
560 cmp = CmpGT(alpha, *Pointer<Short4>(data + OFFSET(DrawData,factor.alphaReference4))); in alphaTest()
570 Int4 coverage0 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c0))); in alphaToCoverage()
571 Int4 coverage1 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c1))); in alphaToCoverage()
572 Int4 coverage2 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c2))); in alphaToCoverage()
573 Int4 coverage3 = CmpNLT(alpha, *Pointer<Float4>(data + OFFSET(DrawData,a2c3))); in alphaToCoverage()
586 void PixelRoutine::writeDepth(Pointer<Byte> &zBuffer, int q, Int &x, Float4 &z, Int &zMask) in writeDepth()
607 Pointer<Byte> buffer; in writeDepth()
613 pitch = *Pointer<Int>(data + OFFSET(DrawData,depthPitchB)); in writeDepth()
622 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,depthSliceB)); in writeDepth()
632 zValue.xy = *Pointer<Float4>(buffer); in writeDepth()
633 zValue.zw = *Pointer<Float4>(buffer + pitch - 8); in writeDepth()
637 zValue = *Pointer<Float4>(buffer, 16); in writeDepth()
641 …Z = As<Float4>(As<Int4>(Z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + zMask * 16, 16… in writeDepth()
642 …zValue = As<Float4>(As<Int4>(zValue) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + z… in writeDepth()
648 *Pointer<Float2>(buffer) = Float2(Z.xy); in writeDepth()
649 *Pointer<Float2>(buffer + pitch) = Float2(Z.zw); in writeDepth()
653 *Pointer<Float4>(buffer, 16) = Z; in writeDepth()
657 …void PixelRoutine::writeStencil(Pointer<Byte> &sBuffer, int q, Int &x, Int &sMask, Int &zMask, Int… in writeStencil()
677 Pointer<Byte> buffer = sBuffer + 2 * x; in writeStencil()
681 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in writeStencil()
684 Byte8 bufferValue = *Pointer<Byte8>(buffer); in writeStencil()
692 newValue &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].writeMaskQ)); in writeStencil()
693 maskedValue &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].invWriteMaskQ)); in writeStencil()
706 newValueCCW &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].writeMaskQ)); in writeStencil()
707 maskedValue &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].invWriteMaskQ)); in writeStencil()
711 newValue &= *Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)); in writeStencil()
712 newValueCCW &= *Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)); in writeStencil()
716 newValue &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * cMask); in writeStencil()
717 bufferValue &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * cMask); in writeStencil()
720 *Pointer<Byte4>(buffer) = Byte4(newValue); in writeStencil()
745 pass &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * zMask); in stencilOperation()
746 zFail &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * zMask); in stencilOperation()
750 pass &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * sMask); in stencilOperation()
751 fail &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * sMask); in stencilOperation()
767 output = *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceQ)); in stencilOperation()
846 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[0])); in blendFactor()
847 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[1])); in blendFactor()
848 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[2])); in blendFactor()
851 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[0])); in blendFactor()
852 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[1])); in blendFactor()
853 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[2])); in blendFactor()
856 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactor()
857 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactor()
858 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactor()
861 blendFactor.x = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactor()
862 blendFactor.y = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactor()
863 blendFactor.z = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactor()
909 blendFactor.w = *Pointer<Short4>(data + OFFSET(DrawData,factor.blendConstant4W[3])); in blendFactorAlpha()
913 blendFactor.w = *Pointer<Short4>(data + OFFSET(DrawData,factor.invBlendConstant4W[3])); in blendFactorAlpha()
925 void PixelRoutine::readPixel(int index, Pointer<Byte> &cBuffer, Int &x, Vector4s &pixel) in readPixel()
929 Pointer<Byte> buffer; in readPixel()
930 Pointer<Byte> buffer2; in readPixel()
936 buffer2 = buffer + *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
937 c01 = As<Short4>(Int2(*Pointer<Int>(buffer), *Pointer<Int>(buffer2))); in readPixel()
946 c01 = *Pointer<Short4>(buffer); in readPixel()
947 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
948 c23 = *Pointer<Short4>(buffer); in readPixel()
966 c01 = *Pointer<Short4>(buffer); in readPixel()
967 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
968 c23 = *Pointer<Short4>(buffer); in readPixel()
985 pixel.x = Insert(pixel.x, *Pointer<Short>(buffer), 0); in readPixel()
986 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
987 pixel.x = Insert(pixel.x, *Pointer<Short>(buffer), 1); in readPixel()
995 c01 = As<Short4>(Insert(As<Int2>(c01), *Pointer<Int>(buffer), 0)); in readPixel()
996 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
997 c01 = As<Short4>(Insert(As<Int2>(c01), *Pointer<Int>(buffer), 1)); in readPixel()
1005 pixel.x = *Pointer<Short4>(buffer + 8 * x); in readPixel()
1006 pixel.y = *Pointer<Short4>(buffer + 8 * x + 8); in readPixel()
1007 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1008 pixel.z = *Pointer<Short4>(buffer + 8 * x); in readPixel()
1009 pixel.w = *Pointer<Short4>(buffer + 8 * x + 8); in readPixel()
1014 pixel.x = *Pointer<Short4>(buffer + 4 * x); in readPixel()
1015 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in readPixel()
1016 pixel.y = *Pointer<Short4>(buffer + 4 * x); in readPixel()
1036 void PixelRoutine::alphaBlend(int index, Pointer<Byte> &cBuffer, Vector4s ¤t, Int &x) in alphaBlend()
1155 void PixelRoutine::logicOperation(int index, Pointer<Byte> &cBuffer, Vector4s ¤t, Int &x) in logicOperation()
1250 …void PixelRoutine::writeColor(int index, Pointer<Byte> &cBuffer, Int &x, Vector4s ¤t, Int &s… in writeColor()
1413 Pointer<Byte> buffer = cBuffer + 2 * x; in writeColor()
1414 Int value = *Pointer<Int>(buffer); in writeColor()
1421 c01 &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[bgraWriteMask & 0x7][0])); in writeColor()
1422 masked &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[~bgraWriteMask & 0x7][0])); in writeColor()
1426 c01 &= *Pointer<Int>(constants + OFFSET(Constants,maskW4Q[0][0]) + xMask * 8); in writeColor()
1427 value &= *Pointer<Int>(constants + OFFSET(Constants,invMaskW4Q[0][0]) + xMask * 8); in writeColor()
1429 *Pointer<Int>(buffer) = c01; in writeColor()
1431 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1432 value = *Pointer<Int>(buffer); in writeColor()
1439 c23 &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[bgraWriteMask & 0x7][0])); in writeColor()
1440 masked &= *Pointer<Int>(constants + OFFSET(Constants,mask565Q[~bgraWriteMask & 0x7][0])); in writeColor()
1444 c23 &= *Pointer<Int>(constants + OFFSET(Constants,maskW4Q[0][2]) + xMask * 8); in writeColor()
1445 value &= *Pointer<Int>(constants + OFFSET(Constants,invMaskW4Q[0][2]) + xMask * 8); in writeColor()
1447 *Pointer<Int>(buffer) = c23; in writeColor()
1452 Pointer<Byte> buffer = cBuffer + x * 4; in writeColor()
1453 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1458 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[bgraWriteMask][0])); in writeColor()
1459 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[bgraWriteMask][0])); in writeColor()
1463 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1464 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1466 *Pointer<Short4>(buffer) = c01; in writeColor()
1468 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1469 value = *Pointer<Short4>(buffer); in writeColor()
1474 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[bgraWriteMask][0])); in writeColor()
1475 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[bgraWriteMask][0])); in writeColor()
1479 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1480 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1482 *Pointer<Short4>(buffer) = c23; in writeColor()
1488 Pointer<Byte> buffer = cBuffer + x * 4; in writeColor()
1489 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1496 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[rgbaWriteMask][0])); in writeColor()
1497 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[rgbaWriteMask][0])); in writeColor()
1501 c01 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1502 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1504 *Pointer<Short4>(buffer) = c01; in writeColor()
1506 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1507 value = *Pointer<Short4>(buffer); in writeColor()
1512 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskB4Q[rgbaWriteMask][0])); in writeColor()
1513 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskB4Q[rgbaWriteMask][0])); in writeColor()
1517 c23 &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1518 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1520 *Pointer<Short4>(buffer) = c23; in writeColor()
1526 Pointer<Byte> buffer = cBuffer + 2 * x; in writeColor()
1528 value = Insert(value, *Pointer<Int>(buffer), 0); in writeColor()
1529 Int pitch = *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
1530 value = Insert(value, *Pointer<Int>(buffer + pitch), 1); in writeColor()
1534 UInt2 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskW4Q) + xMask * 8); in writeColor()
1537 … Int tmpMask = *Pointer<Int>(constants + OFFSET(Constants, maskB4Q[5 * (rgbaWriteMask & 0x3)][0])); in writeColor()
1544 *Pointer<UInt>(buffer) = As<UInt>(Extract(packedCol, 0)); in writeColor()
1545 *Pointer<UInt>(buffer + pitch) = As<UInt>(Extract(packedCol, 1)); in writeColor()
1551 Pointer<Byte> buffer = cBuffer + 1 * x; in writeColor()
1553 value = Insert(value, *Pointer<Short>(buffer), 0); in writeColor()
1554 Int pitch = *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
1555 value = Insert(value, *Pointer<Short>(buffer + pitch), 1); in writeColor()
1557 current.x &= *Pointer<Short4>(constants + OFFSET(Constants, maskB4Q) + 8 * xMask); in writeColor()
1558 value &= *Pointer<Short4>(constants + OFFSET(Constants, invMaskB4Q) + 8 * xMask); in writeColor()
1561 *Pointer<Short>(buffer) = Extract(current.x, 0); in writeColor()
1562 *Pointer<Short>(buffer + pitch) = Extract(current.x, 1); in writeColor()
1567 Pointer<Byte> buffer = cBuffer + 4 * x; in writeColor()
1569 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1574 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[rgbaWriteMask & 0x3][0])); in writeColor()
1575 masked &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[~rgbaWriteMask & 0x3][0])); in writeColor()
1579 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskD01Q) + xMask * 8); in writeColor()
1580 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD01Q) + xMask * 8); in writeColor()
1582 *Pointer<Short4>(buffer) = current.x; in writeColor()
1584 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1586 value = *Pointer<Short4>(buffer); in writeColor()
1591 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[rgbaWriteMask & 0x3][0])); in writeColor()
1592 masked &= *Pointer<Short4>(constants + OFFSET(Constants,maskW01Q[~rgbaWriteMask & 0x3][0])); in writeColor()
1596 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskD23Q) + xMask * 8); in writeColor()
1597 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskD23Q) + xMask * 8); in writeColor()
1599 *Pointer<Short4>(buffer) = current.y; in writeColor()
1604 Pointer<Byte> buffer = cBuffer + 8 * x; in writeColor()
1607 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1612 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1613 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1617 current.x &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ0Q) + xMask * 8); in writeColor()
1618 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ0Q) + xMask * 8); in writeColor()
1620 *Pointer<Short4>(buffer) = current.x; in writeColor()
1624 Short4 value = *Pointer<Short4>(buffer + 8); in writeColor()
1629 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1630 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1634 current.y &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ1Q) + xMask * 8); in writeColor()
1635 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ1Q) + xMask * 8); in writeColor()
1637 *Pointer<Short4>(buffer + 8) = current.y; in writeColor()
1640 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
1643 Short4 value = *Pointer<Short4>(buffer); in writeColor()
1648 current.z &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1649 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1653 current.z &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ2Q) + xMask * 8); in writeColor()
1654 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ2Q) + xMask * 8); in writeColor()
1656 *Pointer<Short4>(buffer) = current.z; in writeColor()
1660 Short4 value = *Pointer<Short4>(buffer + 8); in writeColor()
1665 current.w &= *Pointer<Short4>(constants + OFFSET(Constants,maskW4Q[rgbaWriteMask][0])); in writeColor()
1666 masked &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskW4Q[rgbaWriteMask][0])); in writeColor()
1670 current.w &= *Pointer<Short4>(constants + OFFSET(Constants,maskQ3Q) + xMask * 8); in writeColor()
1671 value &= *Pointer<Short4>(constants + OFFSET(Constants,invMaskQ3Q) + xMask * 8); in writeColor()
1673 *Pointer<Short4>(buffer + 8) = current.w; in writeColor()
1739 blendFactor.x = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[0])); in blendFactor()
1740 blendFactor.y = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[1])); in blendFactor()
1741 blendFactor.z = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[2])); in blendFactor()
1744 blendFactor.x = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[0])); in blendFactor()
1745 blendFactor.y = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[1])); in blendFactor()
1746 blendFactor.z = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[2])); in blendFactor()
1791 blendFactor.w = *Pointer<Float4>(data + OFFSET(DrawData,factor.blendConstant4F[3])); in blendFactorAlpha()
1794 blendFactor.w = *Pointer<Float4>(data + OFFSET(DrawData,factor.invBlendConstant4F[3])); in blendFactorAlpha()
1801 void PixelRoutine::alphaBlend(int index, Pointer<Byte> &cBuffer, Vector4f &oC, Int &x) in alphaBlend()
1808 Pointer<Byte> buffer; in alphaBlend()
1832 pixel.x.x = *Pointer<Float>(buffer + 4 * x + 0); in alphaBlend()
1833 pixel.x.y = *Pointer<Float>(buffer + 4 * x + 4); in alphaBlend()
1834 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in alphaBlend()
1836 pixel.x.z = *Pointer<Float>(buffer + 4 * x + 0); in alphaBlend()
1837 pixel.x.w = *Pointer<Float>(buffer + 4 * x + 4); in alphaBlend()
1844 pixel.x = *Pointer<Float4>(buffer + 8 * x, 16); in alphaBlend()
1845 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in alphaBlend()
1846 pixel.y = *Pointer<Float4>(buffer + 8 * x, 16); in alphaBlend()
1857 pixel.x = *Pointer<Float4>(buffer + 16 * x, 16); in alphaBlend()
1858 pixel.y = *Pointer<Float4>(buffer + 16 * x + 16, 16); in alphaBlend()
1859 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in alphaBlend()
1860 pixel.z = *Pointer<Float4>(buffer + 16 * x, 16); in alphaBlend()
1861 pixel.w = *Pointer<Float4>(buffer + 16 * x + 16, 16); in alphaBlend()
1985 …void PixelRoutine::writeColor(int index, Pointer<Byte> &cBuffer, Int &x, Vector4f &oC, Int &sMask,… in writeColor()
2040 Pointer<Byte> buffer; in writeColor()
2053 value.x = *Pointer<Float>(buffer + 0); in writeColor()
2054 value.y = *Pointer<Float>(buffer + 4); in writeColor()
2056 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2059 value.z = *Pointer<Float>(buffer + 0); in writeColor()
2060 value.w = *Pointer<Float>(buffer + 4); in writeColor()
2062 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + xMask * … in writeColor()
2063 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + xMa… in writeColor()
2067 *Pointer<Float>(buffer + 0) = oC.x.z; in writeColor()
2068 *Pointer<Float>(buffer + 4) = oC.x.w; in writeColor()
2070 buffer -= *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2073 *Pointer<Float>(buffer + 0) = oC.x.x; in writeColor()
2074 *Pointer<Float>(buffer + 4) = oC.x.y; in writeColor()
2084 xyzw = As<UShort4>(Insert(As<Int2>(xyzw), *Pointer<Int>(buffer), 0)); in writeColor()
2086 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2088 xyzw = As<UShort4>(Insert(As<Int2>(xyzw), *Pointer<Int>(buffer), 1)); in writeColor()
2091 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants, maskD4X) + xMask *… in writeColor()
2092 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants, invMaskD4X) + xM… in writeColor()
2098 *Pointer<Short>(buffer + 0) = Short(As<Int>(component)); in writeColor()
2100 *Pointer<Short>(buffer + 2) = Short(As<Int>(component)); in writeColor()
2102 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2105 *Pointer<Short>(buffer + 0) = Short(As<Int>(component)); in writeColor()
2107 *Pointer<Short>(buffer + 2) = Short(As<Int>(component)); in writeColor()
2112 *Pointer<UShort>(buffer + 0) = UShort(As<Int>(component)); in writeColor()
2114 *Pointer<UShort>(buffer + 2) = UShort(As<Int>(component)); in writeColor()
2116 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2119 *Pointer<UShort>(buffer + 0) = UShort(As<Int>(component)); in writeColor()
2121 *Pointer<UShort>(buffer + 2) = UShort(As<Int>(component)); in writeColor()
2133 xyzw = UInt(*Pointer<UShort>(buffer)) & 0xFFFF; in writeColor()
2134 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2135 xyzw |= UInt(*Pointer<UShort>(buffer)) << 16; in writeColor()
2148 packedCol = (packedCol & *Pointer<UInt>(constants + OFFSET(Constants, maskB4Q) + 8 * xMask)) | in writeColor()
2149 (xyzw & *Pointer<UInt>(constants + OFFSET(Constants, invMaskB4Q) + 8 * xMask)); in writeColor()
2151 *Pointer<UShort>(buffer) = UShort(packedCol >> 16); in writeColor()
2152 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2153 *Pointer<UShort>(buffer) = UShort(packedCol); in writeColor()
2161 value = *Pointer<Float4>(buffer); in writeColor()
2166 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[rgbaWriteM… in writeColor()
2167 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[~rgbaW… in writeColor()
2171 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskQ01X) + xMask *… in writeColor()
2172 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskQ01X) + xM… in writeColor()
2174 *Pointer<Float4>(buffer) = oC.x; in writeColor()
2176 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2178 value = *Pointer<Float4>(buffer); in writeColor()
2185 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[rgbaWriteM… in writeColor()
2186 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,maskD01X[~rgbaW… in writeColor()
2190 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskQ23X) + xMask *… in writeColor()
2191 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskQ23X) + xM… in writeColor()
2193 *Pointer<Float4>(buffer) = oC.y; in writeColor()
2203 UShort4 value = *Pointer<UShort4>(buffer); in writeColor()
2204 UInt2 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD01Q) + xMask * 8); in writeColor()
2207 Int tmpMask = *Pointer<Int>(constants + OFFSET(Constants, maskW4Q[rgbaWriteMask & 0x3][0])); in writeColor()
2211 … *Pointer<UInt2>(buffer) = (As<UInt2>(packedCol) & mergedMask) | (As<UInt2>(value) & ~mergedMask); in writeColor()
2213 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2216 value = *Pointer<UShort4>(buffer); in writeColor()
2217 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD23Q) + xMask * 8); in writeColor()
2222 … *Pointer<UInt2>(buffer) = (As<UInt2>(packedCol) & mergedMask) | (As<UInt2>(value) & ~mergedMask); in writeColor()
2233 xyzw = Insert(xyzw, *Pointer<Int>(buffer), 0); in writeColor()
2234 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2235 xyzw = Insert(xyzw, *Pointer<Int>(buffer), 1); in writeColor()
2246 UInt2 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskW4Q) + xMask * 8); in writeColor()
2249 … Int tmpMask = *Pointer<Int>(constants + OFFSET(Constants, maskB4Q[5 * (rgbaWriteMask & 0x3)][0])); in writeColor()
2256 *Pointer<UInt>(buffer) = As<UInt>(Extract(packedCol, 1)); in writeColor()
2257 buffer -= *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2258 *Pointer<UInt>(buffer) = As<UInt>(Extract(packedCol, 0)); in writeColor()
2267 value = *Pointer<Float4>(buffer, 16); in writeColor()
2272 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2273 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2277 …oC.x = As<Float4>(As<Int4>(oC.x) & *Pointer<Int4>(constants + OFFSET(Constants,maskX0X) + xMask * … in writeColor()
2278 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX0X) + xMa… in writeColor()
2280 *Pointer<Float4>(buffer, 16) = oC.x; in writeColor()
2284 value = *Pointer<Float4>(buffer + 16, 16); in writeColor()
2289 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2290 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2294 …oC.y = As<Float4>(As<Int4>(oC.y) & *Pointer<Int4>(constants + OFFSET(Constants,maskX1X) + xMask * … in writeColor()
2295 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX1X) + xMa… in writeColor()
2297 *Pointer<Float4>(buffer + 16, 16) = oC.y; in writeColor()
2300 buffer += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])); in writeColor()
2303 value = *Pointer<Float4>(buffer, 16); in writeColor()
2308 …oC.z = As<Float4>(As<Int4>(oC.z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2309 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2313 …oC.z = As<Float4>(As<Int4>(oC.z) & *Pointer<Int4>(constants + OFFSET(Constants,maskX2X) + xMask * … in writeColor()
2314 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX2X) + xMa… in writeColor()
2316 *Pointer<Float4>(buffer, 16) = oC.z; in writeColor()
2320 value = *Pointer<Float4>(buffer + 16, 16); in writeColor()
2325 …oC.w = As<Float4>(As<Int4>(oC.w) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X[rgbaWriteMa… in writeColor()
2326 …masked = As<Float4>(As<Int4>(masked) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X[rgba… in writeColor()
2330 …oC.w = As<Float4>(As<Int4>(oC.w) & *Pointer<Int4>(constants + OFFSET(Constants,maskX3X) + xMask * … in writeColor()
2331 …value = As<Float4>(As<Int4>(value) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskX3X) + xMa… in writeColor()
2333 *Pointer<Float4>(buffer + 16, 16) = oC.w; in writeColor()
2343 UShort8 value = *Pointer<UShort8>(buffer); in writeColor()
2345 UInt4 mergedMask = *Pointer<UInt4>(constants + OFFSET(Constants, maskQ01X) + xMask * 16); in writeColor()
2348 UInt2 tmpMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskW4Q[rgbaWriteMask][0])); in writeColor()
2352 … *Pointer<UInt4>(buffer) = (As<UInt4>(packedCol) & mergedMask) | (As<UInt4>(value) & ~mergedMask); in writeColor()
2354 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2356 value = *Pointer<UShort8>(buffer); in writeColor()
2358 mergedMask = *Pointer<UInt4>(constants + OFFSET(Constants, maskQ23X) + xMask * 16); in writeColor()
2363 … *Pointer<UInt4>(buffer) = (As<UInt4>(packedCol) & mergedMask) | (As<UInt4>(value) & ~mergedMask); in writeColor()
2382 value = *Pointer<UInt2>(buffer, 16); in writeColor()
2383 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD01Q) + xMask * 8); in writeColor()
2386 mergedMask &= *Pointer<UInt2>(constants + OFFSET(Constants, maskB4Q[rgbaWriteMask][0])); in writeColor()
2388 *Pointer<UInt2>(buffer) = (packedCol & mergedMask) | (value & ~mergedMask); in writeColor()
2390 buffer += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])); in writeColor()
2400 value = *Pointer<UInt2>(buffer, 16); in writeColor()
2401 mergedMask = *Pointer<UInt2>(constants + OFFSET(Constants, maskD23Q) + xMask * 8); in writeColor()
2404 mergedMask &= *Pointer<UInt2>(constants + OFFSET(Constants, maskB4Q[rgbaWriteMask][0])); in writeColor()
2406 *Pointer<UInt2>(buffer) = (packedCol & mergedMask) | (value & ~mergedMask); in writeColor()
2421 Pointer<Byte> LUT = constants + OFFSET(Constants,sRGBtoLinear12_16); in sRGBtoLinear16_12_16()
2427 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 0))), 0); in sRGBtoLinear16_12_16()
2428 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 1))), 1); in sRGBtoLinear16_12_16()
2429 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 2))), 2); in sRGBtoLinear16_12_16()
2430 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 3))), 3); in sRGBtoLinear16_12_16()
2432 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 0))), 0); in sRGBtoLinear16_12_16()
2433 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 1))), 1); in sRGBtoLinear16_12_16()
2434 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 2))), 2); in sRGBtoLinear16_12_16()
2435 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 3))), 3); in sRGBtoLinear16_12_16()
2437 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 0))), 0); in sRGBtoLinear16_12_16()
2438 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 1))), 1); in sRGBtoLinear16_12_16()
2439 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 2))), 2); in sRGBtoLinear16_12_16()
2440 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 3))), 3); in sRGBtoLinear16_12_16()
2454 Pointer<Byte> LUT = constants + OFFSET(Constants,linearToSRGB12_16); in linearToSRGB12_16()
2456 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 0))), 0); in linearToSRGB12_16()
2457 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 1))), 1); in linearToSRGB12_16()
2458 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 2))), 2); in linearToSRGB12_16()
2459 c.x = Insert(c.x, *Pointer<Short>(LUT + 2 * Int(Extract(c.x, 3))), 3); in linearToSRGB12_16()
2461 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 0))), 0); in linearToSRGB12_16()
2462 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 1))), 1); in linearToSRGB12_16()
2463 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 2))), 2); in linearToSRGB12_16()
2464 c.y = Insert(c.y, *Pointer<Short>(LUT + 2 * Int(Extract(c.y, 3))), 3); in linearToSRGB12_16()
2466 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 0))), 0); in linearToSRGB12_16()
2467 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 1))), 1); in linearToSRGB12_16()
2468 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 2))), 2); in linearToSRGB12_16()
2469 c.z = Insert(c.z, *Pointer<Short>(LUT + 2 * Int(Extract(c.z, 3))), 3); in linearToSRGB12_16()