Home
last modified time | relevance | path

Searched refs:depthValues (Results 1 – 25 of 25) sorted by relevance

/third_party/vk-gl-cts/framework/referencerenderer/
DrrRasterizer.cpp537 …erizeSingleSample (FragmentPacket* const fragmentPackets, float* const depthValues, const int maxF… in rasterizeSingleSample() argument
611 if (depthValues) in rasterizeSingleSample()
617 depthValues[packetNdx*4+0] = z0[0]*za + z1[0]*zb + zc; in rasterizeSingleSample()
618 depthValues[packetNdx*4+1] = z0[1]*za + z1[1]*zb + zc; in rasterizeSingleSample()
619 depthValues[packetNdx*4+2] = z0[2]*za + z1[2]*zb + zc; in rasterizeSingleSample()
620 depthValues[packetNdx*4+3] = z0[3]*za + z1[3]*zb + zc; in rasterizeSingleSample()
694 …terizeMultiSample (FragmentPacket* const fragmentPackets, float* const depthValues, const int maxF… in rasterizeMultiSample() argument
786 if (depthValues) in rasterizeMultiSample()
799 depthValues[(packetNdx*4+0)*NumSamples + sampleNdx] = z0[0]*za + z1[0]*zb + zc; in rasterizeMultiSample()
800 depthValues[(packetNdx*4+1)*NumSamples + sampleNdx] = z0[1]*za + z1[1]*zb + zc; in rasterizeMultiSample()
[all …]
DrrRasterizer.hpp135 …void rasterize (FragmentPacket* const fragmentPackets, float* const depthValues, const int …
138 …void rasterizeSingleSample (FragmentPacket* const fragmentPackets, float* const depthValues, c…
141 …void rasterizeMultiSample (FragmentPacket* const fragmentPackets, float* const depthValues, co…
187 …void rasterize (FragmentPacket* const fragmentPackets, float* const depthValues, const i…
234 …void rasterize (FragmentPacket* const fragmentPackets, float* const depthValues, const in…
DrrRenderer.cpp1037 const float* depthValues, in writeFragmentPackets() argument
1063 …fragment.sampleDepths = (depthValues) ? (&depthValues[(packetNdx*4 + yo*2 + xo)*numSamples]) : (DE… in writeFragmentPackets()
1309 std::vector<float> depthValues (0); in rasterize() local
1317 depthValues.resize(maxFragmentPackets*4*numSamples); in rasterize()
1318 depthBufferPointer = &depthValues[0]; in rasterize()
/third_party/mesa3d/src/mesa/main/
Dpixeltransfer.c132 GLfloat depthValues[]) in _mesa_scale_and_bias_depth() argument
138 GLfloat d = depthValues[i] * scale + bias; in _mesa_scale_and_bias_depth()
139 depthValues[i] = CLAMP(d, 0.0F, 1.0F); in _mesa_scale_and_bias_depth()
146 GLuint depthValues[]) in _mesa_scale_and_bias_depth_uint() argument
153 GLdouble d = (GLdouble) depthValues[i] * scale + bias; in _mesa_scale_and_bias_depth_uint()
155 depthValues[i] = (GLuint) d; in _mesa_scale_and_bias_depth_uint()
Dpixeltransfer.h53 GLfloat depthValues[]);
57 GLuint depthValues[]);
Dpack.c755 depthValues[i] = GLTYPE2FLOAT(value); \
775 GLfloat *depthTemp = NULL, *depthValues; in _mesa_unpack_depth_span() local
822 depthValues = (GLfloat *) dest; in _mesa_unpack_depth_span()
831 depthValues = depthTemp; in _mesa_unpack_depth_span()
886 depthValues[i] = (value >> 8) * scale; in _mesa_unpack_depth_span()
899 depthValues[i] = value; in _mesa_unpack_depth_span()
918 depthValues[i] = _mesa_half_to_float(value); in _mesa_unpack_depth_span()
936 depthValues[i] = depthValues[i] * scale + bias; in _mesa_unpack_depth_span()
946 depthValues[i] = CLAMP(depthValues[i], 0.0F, 1.0F); in _mesa_unpack_depth_span()
959 zValues[i] = (GLuint) (depthValues[i] * (GLfloat) depthMax); in _mesa_unpack_depth_span()
[all …]
Dreadpix.c336 GLfloat *depthValues; in read_depth_pixels() local
363 depthValues = malloc(width * sizeof(GLfloat)); in read_depth_pixels()
365 if (depthValues) { in read_depth_pixels()
368 _mesa_unpack_float_z_row(rb->Format, width, map, depthValues); in read_depth_pixels()
369 _mesa_pack_depth_span(ctx, width, dst, type, depthValues, packing); in read_depth_pixels()
379 free(depthValues); in read_depth_pixels()
/third_party/vk-gl-cts/modules/glshared/
DglsInteractionTestUtil.cpp225 static const float depthValues[] = { 0.0f, 0.2f, 0.4f, 0.5f, 0.51f, 0.6f, 0.8f, 0.95f }; in computeRandomQuad() local
243 float depth = rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues)); in computeRandomQuad()
DglsFragOpInteractionCase.cpp213 static const float depthValues[] = { 0.0f, 0.2f, 0.4f, 0.5f, 0.51f, 0.6f, 0.8f, 0.95f }; in getRandomDepth() local
214 return rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues)); in getRandomDepth()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
DvktDrawInvertedDepthRangesTests.cpp382 std::array<float, 3> depthValues; in generateReferenceImage() local
386 DE_ASSERT(depthValues.size() == kVertices.size()); in generateReferenceImage()
387 …std::transform(begin(kVertices), end(kVertices), begin(depthValues), [](const Vec4& coord) { retur… in generateReferenceImage()
435 const float depth = a * depthValues[0] + b * depthValues[1] + c * depthValues[2]; in generateReferenceImage()
DvktDrawDepthClampTests.cpp739 std::string depthValues = ""; in initPrograms() local
741 depthValues += std::to_string(vd.depthValue) + ", "; in initPrograms()
752 " const float depthValues[] = { " + depthValues + " 0.0 };\n" in initPrograms()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawInvertedDepthRangesTests.cpp382 std::array<float, 3> depthValues; in generateReferenceImage() local
386 DE_ASSERT(depthValues.size() == kVertices.size()); in generateReferenceImage()
387 …std::transform(begin(kVertices), end(kVertices), begin(depthValues), [](const Vec4& coord) { retur… in generateReferenceImage()
435 const float depth = a * depthValues[0] + b * depthValues[1] + c * depthValues[2]; in generateReferenceImage()
DvktDrawDepthClampTests.cpp739 std::string depthValues = ""; in initPrograms() local
741 depthValues += std::to_string(vd.depthValue) + ", "; in initPrograms()
752 " const float depthValues[] = { " + depthValues + " 0.0 };\n" in initPrograms()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fDepthStencilTests.cpp260 float depthValues[numL1CellsX*numL1CellsY]; in generateBaseClearAndDepthCommands() local
273 int numValues = DE_LENGTH_OF_ARRAY(depthValues); in generateBaseClearAndDepthCommands()
277 depthValues[ndx] = -1.0f + depthStep*(float)ndx; in generateBaseClearAndDepthCommands()
298 renderCmd.params.depth = depthValues[y1*numL1CellsX + x1]; in generateBaseClearAndDepthCommands()
753 …static const float depthValues[] = { -1.0f, -0.8f, -0.6f, -0.4f, -0.2f, 0.0f, 0.2f, 0.4f, 0.6f, 0.… in randomDepthStencilState() local
776 params.depth = rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues)); in randomDepthStencilState()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fDepthStencilTests.cpp260 float depthValues[numL1CellsX*numL1CellsY]; in generateBaseClearAndDepthCommands() local
273 int numValues = DE_LENGTH_OF_ARRAY(depthValues); in generateBaseClearAndDepthCommands()
277 depthValues[ndx] = -1.0f + depthStep*(float)ndx; in generateBaseClearAndDepthCommands()
298 renderCmd.params.depth = depthValues[y1*numL1CellsX + x1]; in generateBaseClearAndDepthCommands()
753 …static const float depthValues[] = { -1.0f, -0.8f, -0.6f, -0.4f, -0.2f, 0.0f, 0.2f, 0.4f, 0.6f, 0.… in randomDepthStencilState() local
776 params.depth = rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues)); in randomDepthStencilState()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassTests.cpp792 depthValues.push_back(shuffledDepthValues[0]); in TestConfig()
793 depthValues.push_back(shuffledDepthValues[1]); in TestConfig()
809 DepthValuesArray depthValues; member
1391 …hment& attachment, de::Random& rng, deBool useFormatCompCount, const DepthValuesArray& depthValues) in randomClearValue() argument
1409 clearValue.depthStencil.depth = float(depthValues[rng.getBool() ? 1 : 0]) / 255.0f; in randomClearValue()
3452 const DepthValuesArray& depthValues) in clearValueToPixelValue() argument
3463 if (value.depthStencil.depth == float(depthValues[1]) / 255.0f) in clearValueToPixelValue()
3465 else if (value.depthStencil.depth == float(depthValues[0]) / 255.0f) in clearValueToPixelValue()
3552 const DepthValuesArray& depthValues) in renderReferenceValues() argument
3568 …tSize, BVec4(true), clearValueToPixelValue(*imageClearValues[attachmentNdx], format, depthValues)); in renderReferenceValues()
[all …]
DvktRenderPassDitheringTests.cpp1110 const float depthValues[] = { *oneUlpLessPtr, *oneUlpMorePtr, *basePtr }; in createRenderPassDitheringTests() local
1111 const deUint32 depthValuesCount = sizeof(depthValues) / sizeof(depthValues[0]); in createRenderPassDitheringTests()
1127 testParams.depthClearValue = depthValues[k]; in createRenderPassDitheringTests()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
DvktRenderPassTests.cpp792 depthValues.push_back(shuffledDepthValues[0]); in TestConfig()
793 depthValues.push_back(shuffledDepthValues[1]); in TestConfig()
809 DepthValuesArray depthValues; member
1391 …hment& attachment, de::Random& rng, deBool useFormatCompCount, const DepthValuesArray& depthValues) in randomClearValue() argument
1409 clearValue.depthStencil.depth = float(depthValues[rng.getBool() ? 1 : 0]) / 255.0f; in randomClearValue()
3452 const DepthValuesArray& depthValues) in clearValueToPixelValue() argument
3463 if (value.depthStencil.depth == float(depthValues[1]) / 255.0f) in clearValueToPixelValue()
3465 else if (value.depthStencil.depth == float(depthValues[0]) / 255.0f) in clearValueToPixelValue()
3552 const DepthValuesArray& depthValues) in renderReferenceValues() argument
3568 …tSize, BVec4(true), clearValueToPixelValue(*imageClearValues[attachmentNdx], format, depthValues)); in renderReferenceValues()
[all …]
DvktRenderPassDitheringTests.cpp1110 const float depthValues[] = { *oneUlpLessPtr, *oneUlpMorePtr, *basePtr }; in createRenderPassDitheringTests() local
1111 const deUint32 depthValuesCount = sizeof(depthValues) / sizeof(depthValues[0]); in createRenderPassDitheringTests()
1127 testParams.depthClearValue = depthValues[k]; in createRenderPassDitheringTests()
/third_party/skia/third_party/externals/tint/test/bug/tint/
D949.wgsl.expected.glsl40 vec2 depthValues;
D949.wgsl31 depthValues : vec2<f32>;
D949.wgsl.expected.wgsl30 depthValues : vec2<f32>;
D949.wgsl.expected.msl38 /* 0x0050 */ float2 depthValues;
D949.wgsl.expected.spvasm46 OpMemberName %Light0 6 "depthValues"
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkImageUtil.cpp4972 const float depthValues[] = { depthValue0, depthValue1 }; in initDepthStencilImageChessboardPattern() local
5061 access.setPixDepth(depthValues[bufferIdx], x, y, 0); in initDepthStencilImageChessboardPattern()
5068 ((float*)depthPtr)[i] = depthValues[bufferIdx]; in initDepthStencilImageChessboardPattern()