Home
last modified time | relevance | path

Searched refs:depthValues (Results 1 – 20 of 20) 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.c333 GLfloat *depthValues; in read_depth_pixels() local
360 depthValues = malloc(width * sizeof(GLfloat)); in read_depth_pixels()
362 if (depthValues) { in read_depth_pixels()
365 _mesa_unpack_float_z_row(rb->Format, width, map, depthValues); in read_depth_pixels()
366 _mesa_pack_depth_span(ctx, width, dst, type, depthValues, packing); in read_depth_pixels()
376 free(depthValues); in read_depth_pixels()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawInvertedDepthRangesTests.cpp415 std::array<float, 3> depthValues; in generateReferenceImage() local
419 DE_ASSERT(depthValues.size() == kVertices.size()); in generateReferenceImage()
420 …std::transform(begin(kVertices), end(kVertices), begin(depthValues), [](const Vec4& coord) { retur… in generateReferenceImage()
468 const float depth = a * depthValues[0] + b * depthValues[1] + c * depthValues[2]; in generateReferenceImage()
DvktDrawDepthClampTests.cpp635 std::string depthValues = ""; in initPrograms() local
637 depthValues += std::to_string(vd.depthValue) + ", "; in initPrograms()
648 " const float depthValues[] = { " + depthValues + " 0.0 };\n" in initPrograms()
/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/vulkan/renderpass/
DvktRenderPassTests.cpp781 depthValues.push_back(shuffledDepthValues[0]); in TestConfig()
782 depthValues.push_back(shuffledDepthValues[1]); in TestConfig()
798 DepthValuesArray depthValues; member
1380 …hment& attachment, de::Random& rng, deBool useFormatCompCount, const DepthValuesArray& depthValues) in randomClearValue() argument
1398 clearValue.depthStencil.depth = float(depthValues[rng.getBool() ? 1 : 0]) / 255.0f; in randomClearValue()
3338 const DepthValuesArray& depthValues) in clearValueToPixelValue() argument
3349 if (value.depthStencil.depth == float(depthValues[1]) / 255.0f) in clearValueToPixelValue()
3351 else if (value.depthStencil.depth == float(depthValues[0]) / 255.0f) in clearValueToPixelValue()
3438 const DepthValuesArray& depthValues) in renderReferenceValues() argument
3454 …tSize, BVec4(true), clearValueToPixelValue(*imageClearValues[attachmentNdx], format, depthValues)); in renderReferenceValues()
[all …]
/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/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/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.cpp4883 const float depthValues[] = { depthValue0, depthValue1 }; in initDepthStencilImageChessboardPattern() local
4972 access.setPixDepth(depthValues[bufferIdx], x, y, 0); in initDepthStencilImageChessboardPattern()
4979 ((float*)depthPtr)[i] = depthValues[bufferIdx]; in initDepthStencilImageChessboardPattern()