Lines Matching refs:regSampleNdx
79 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeScissorTest() local
81 if (m_sampleRegister[regSampleNdx].isAlive) in executeScissorTest()
83 int fragNdx = fragNdxOffset + regSampleNdx/numSamplesPerFragment; in executeScissorTest()
86 m_sampleRegister[regSampleNdx].isAlive = false; in executeScissorTest()
94 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeStencilCompare()
96 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeStencilCompare()
98 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; \ in executeStencilCompare()
99 …const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; … in executeStencilCompare()
106 m_sampleRegister[regSampleNdx].stencilPassed = (COMPARE_EXPRESSION); \ in executeStencilCompare()
132 …for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) … in executeStencilSFail()
134 …if (m_sampleRegister[regSampleNdx].isAlive && !m_sampleRegister[regSampleNdx].stencilPassed) … in executeStencilSFail()
136 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; \ in executeStencilSFail()
137 …const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; … in executeStencilSFail()
141 m_sampleRegister[regSampleNdx].isAlive = false; \ in executeStencilSFail()
167 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeDepthCompare()
169 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeDepthCompare()
171 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; \ in executeDepthCompare()
172 …const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; … in executeDepthCompare()
177 m_sampleRegister[regSampleNdx].depthPassed = (COMPARE_EXPRESSION); \ in executeDepthCompare()
185 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeDepthCompare()
187 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeDepthCompare()
189 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; \ in executeDepthCompare()
190 …const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; … in executeDepthCompare()
204 m_sampleRegister[regSampleNdx].depthPassed = (COMPARE_EXPRESSION); \ in executeDepthCompare()
252 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeDepthWrite() local
254 if (m_sampleRegister[regSampleNdx].isAlive && m_sampleRegister[regSampleNdx].depthPassed) in executeDepthWrite()
256 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in executeDepthWrite()
257 const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; in executeDepthWrite()
268 …for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) … in executeStencilDpFailAndPass()
270 if (m_sampleRegister[regSampleNdx].isAlive && (CONDITION)) \ in executeStencilDpFailAndPass()
272 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; \ in executeStencilDpFailAndPass()
273 …const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; … in executeStencilDpFailAndPass()
297 SWITCH_DPFAIL_OR_DPPASS(dpFail, !m_sampleRegister[regSampleNdx].depthPassed) in executeStencilDpFailAndPass()
298 SWITCH_DPFAIL_OR_DPPASS(dpPass, m_sampleRegister[regSampleNdx].depthPassed) in executeStencilDpFailAndPass()
307 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeBlendFactorComputeRGB()
309 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeBlendFactorComputeRGB()
311 const Vec4& src = m_sampleRegister[regSampleNdx].clampedBlendSrcColor; \ in executeBlendFactorComputeRGB()
312 const Vec4& src1 = m_sampleRegister[regSampleNdx].clampedBlendSrc1Color; \ in executeBlendFactorComputeRGB()
313 const Vec4& dst = m_sampleRegister[regSampleNdx].clampedBlendDstColor; \ in executeBlendFactorComputeRGB()
318 … m_sampleRegister[regSampleNdx].FACTOR_NAME = clamp((FACTOR_EXPRESSION), Vec3(0.0f), Vec3(1.0f)); \ in executeBlendFactorComputeRGB()
358 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeBlendFactorComputeA()
360 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeBlendFactorComputeA()
362 const Vec4& src = m_sampleRegister[regSampleNdx].clampedBlendSrcColor; \ in executeBlendFactorComputeA()
363 const Vec4& src1 = m_sampleRegister[regSampleNdx].clampedBlendSrc1Color; \ in executeBlendFactorComputeA()
364 const Vec4& dst = m_sampleRegister[regSampleNdx].clampedBlendDstColor; \ in executeBlendFactorComputeA()
369 m_sampleRegister[regSampleNdx].FACTOR_NAME = clamp((FACTOR_EXPRESSION), 0.0f, 1.0f); \ in executeBlendFactorComputeA()
409 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeBlend()
411 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeBlend()
413 SampleData& sample = m_sampleRegister[regSampleNdx]; \ in executeBlend()
560 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeAdvancedBlend()
562 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeAdvancedBlend()
564 SampleData& sample = m_sampleRegister[regSampleNdx]; \ in executeAdvancedBlend()
578 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) \ in executeAdvancedBlend()
580 if (m_sampleRegister[regSampleNdx].isAlive) \ in executeAdvancedBlend()
582 SampleData& sample = m_sampleRegister[regSampleNdx]; \ in executeAdvancedBlend()
594 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeAdvancedBlend() local
596 if (m_sampleRegister[regSampleNdx].isAlive) in executeAdvancedBlend()
598 SampleData& sample = m_sampleRegister[regSampleNdx]; in executeAdvancedBlend()
643 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeColorWrite() local
645 if (m_sampleRegister[regSampleNdx].isAlive) in executeColorWrite()
647 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in executeColorWrite()
648 const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; in executeColorWrite()
651 combinedColor.xyz() = m_sampleRegister[regSampleNdx].blendedRGB; in executeColorWrite()
652 combinedColor.w() = m_sampleRegister[regSampleNdx].blendedA; in executeColorWrite()
669 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeRGBA8ColorWrite() local
671 if (m_sampleRegister[regSampleNdx].isAlive) in executeRGBA8ColorWrite()
673 const int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in executeRGBA8ColorWrite()
674 const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; in executeRGBA8ColorWrite()
677 dstPtr[0] = tcu::floatToU8(m_sampleRegister[regSampleNdx].blendedRGB.x()); in executeRGBA8ColorWrite()
678 dstPtr[1] = tcu::floatToU8(m_sampleRegister[regSampleNdx].blendedRGB.y()); in executeRGBA8ColorWrite()
679 dstPtr[2] = tcu::floatToU8(m_sampleRegister[regSampleNdx].blendedRGB.z()); in executeRGBA8ColorWrite()
680 dstPtr[3] = tcu::floatToU8(m_sampleRegister[regSampleNdx].blendedA); in executeRGBA8ColorWrite()
687 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeMaskedColorWrite() local
689 if (m_sampleRegister[regSampleNdx].isAlive) in executeMaskedColorWrite()
691 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in executeMaskedColorWrite()
692 const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; in executeMaskedColorWrite()
696 newColor.xyz() = m_sampleRegister[regSampleNdx].blendedRGB; in executeMaskedColorWrite()
697 newColor.w() = m_sampleRegister[regSampleNdx].blendedA; in executeMaskedColorWrite()
711 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeSignedValueWrite() local
713 if (m_sampleRegister[regSampleNdx].isAlive) in executeSignedValueWrite()
715 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in executeSignedValueWrite()
716 const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; in executeSignedValueWrite()
719 …colorBuffer.setPixel(tcu::select(m_sampleRegister[regSampleNdx].signedValue, originalValue, colorM… in executeSignedValueWrite()
726 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in executeUnsignedValueWrite() local
728 if (m_sampleRegister[regSampleNdx].isAlive) in executeUnsignedValueWrite()
730 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in executeUnsignedValueWrite()
731 const Fragment& frag = inputFragments[fragNdxOffset + regSampleNdx/numSamplesPerFragment]; in executeUnsignedValueWrite()
734 …colorBuffer.setPixel(tcu::select(m_sampleRegister[regSampleNdx].unsignedValue, originalValue, colo… in executeUnsignedValueWrite()
786 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
788 int fragNdx = groupFirstFragNdx + regSampleNdx/numSamplesPerFragment; in render()
789 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in render()
793 …m_sampleRegister[regSampleNdx].isAlive = (inputFragments[fragNdx].coverage & (1u << fragSampleNdx… in render()
794 …m_sampleRegister[regSampleNdx].depthPassed = true; // \note This will stay true if depth test is d… in render()
797 m_sampleRegister[regSampleNdx].isAlive = false; in render()
833 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
834 …m_sampleRegister[regSampleNdx].isAlive = m_sampleRegister[regSampleNdx].isAlive && m_sampleRegiste… in render()
846 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
848 if (m_sampleRegister[regSampleNdx].isAlive) in render()
850 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in render()
851 … const Fragment& frag = inputFragments[groupFirstFragNdx + regSampleNdx/numSamplesPerFragment]; in render()
854 …m_sampleRegister[regSampleNdx].clampedBlendSrcColor = clamp(frag.value.get<float>(), Vec4(0.0f), … in render()
855 …m_sampleRegister[regSampleNdx].clampedBlendSrc1Color = clamp(frag.value1.get<float>(), Vec4(0.0f),… in render()
856 …m_sampleRegister[regSampleNdx].clampedBlendDstColor = clamp(sRGBTarget ? tcu::sRGBToLinear(dstCol… in render()
871 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
873 if (m_sampleRegister[regSampleNdx].isAlive) in render()
875 int fragSampleNdx = regSampleNdx % numSamplesPerFragment; in render()
876 … const Fragment& frag = inputFragments[groupFirstFragNdx + regSampleNdx/numSamplesPerFragment]; in render()
880 …m_sampleRegister[regSampleNdx].clampedBlendSrcColor = unpremultiply(clamp(srcColor, Vec4(0.0f), V… in render()
881 …m_sampleRegister[regSampleNdx].clampedBlendDstColor = unpremultiply(clamp(sRGBTarget ? tcu::sRGBT… in render()
892 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
894 if (m_sampleRegister[regSampleNdx].isAlive) in render()
896 … const Fragment& frag = inputFragments[groupFirstFragNdx + regSampleNdx/numSamplesPerFragment]; in render()
898 m_sampleRegister[regSampleNdx].blendedRGB = frag.value.get<float>().xyz(); in render()
899 m_sampleRegister[regSampleNdx].blendedA = frag.value.get<float>().w(); in render()
919 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
921 if (m_sampleRegister[regSampleNdx].isAlive) in render()
923 const Fragment& frag = inputFragments[groupFirstFragNdx + regSampleNdx/numSamplesPerFragment]; in render()
925 m_sampleRegister[regSampleNdx].signedValue = frag.value.get<deInt32>(); in render()
935 for (int regSampleNdx = 0; regSampleNdx < SAMPLE_REGISTER_SIZE; regSampleNdx++) in render() local
937 if (m_sampleRegister[regSampleNdx].isAlive) in render()
939 const Fragment& frag = inputFragments[groupFirstFragNdx + regSampleNdx/numSamplesPerFragment]; in render()
941 m_sampleRegister[regSampleNdx].unsignedValue = frag.value.get<deUint32>(); in render()