/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | DepthStencilLoadOpTests.cpp | 95 uint32_t mipSize = std::max(kRTSize >> mipLevel, 1u); in CheckMipLevel() local 99 std::vector<float> expectedDepth(mipSize * mipSize, kDepthValues[mipLevel]); in CheckMipLevel() 100 ExpectSampledDepthData(texture, mipSize, mipSize, 0, mipLevel, in CheckMipLevel() 109 std::vector<uint16_t> expectedDepth(mipSize * mipSize, in CheckMipLevel() 111 EXPECT_TEXTURE_EQ(expectedDepth.data(), texture, {0, 0}, {mipSize, mipSize}, in CheckMipLevel() 115 std::vector<float> expectedDepth(mipSize * mipSize, kDepthValues[mipLevel]); in CheckMipLevel() 116 EXPECT_TEXTURE_EQ(expectedDepth.data(), texture, {0, 0}, {mipSize, mipSize}, in CheckMipLevel() 125 std::vector<uint8_t> expectedStencil(mipSize * mipSize, in CheckMipLevel() 127 EXPECT_TEXTURE_EQ(expectedStencil.data(), texture, {0, 0}, {mipSize, mipSize}, in CheckMipLevel() 134 std::vector<float> expectedDepth(mipSize * mipSize, kDepthValues[mipLevel]); in CheckMipLevel() [all …]
|
D | NonzeroTextureCreationTests.cpp | 149 uint32_t mipSize = std::max(kSize >> mip, 1u); in Run() local 156 ExpectMultisampledFloatData(texture, mipSize, mipSize, 1, in Run() 161 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run() 167 ExpectMultisampledFloatData(texture, mipSize, mipSize, 2, in Run() 172 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run() 179 ExpectMultisampledFloatData(texture, mipSize, mipSize, 4, in Run() 184 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run() 190 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run() 198 ExpectSampledDepthData(texture, mipSize, mipSize, arrayLayer, mip, in Run() 205 uint32_t texelCount = mipSize * mipSize * depthOrArrayLayers; in Run() [all …]
|
D | TextureZeroInitTests.cpp | 216 uint32_t mipSize = kSize >> 2; in TEST_P() local 217 std::vector<RGBA8> expected(mipSize * mipSize, {0, 0, 0, 0}); in TEST_P() 219 EXPECT_TEXTURE_EQ(expected.data(), renderPass.color, {0, 0, baseArrayLayer}, {mipSize, mipSize}, in TEST_P() 1284 uint32_t mipSize = kSize >> 1; in TEST_P() local 1285 std::vector<uint8_t> data(kFormatBlockByteSize * mipSize * mipSize, 2); in TEST_P() 1289 utils::CreateImageCopyBuffer(stagingBuffer, 0, mipSize * kFormatBlockByteSize); in TEST_P() 1292 wgpu::Extent3D copySize = {mipSize, mipSize, 1}; in TEST_P() 1337 std::vector<RGBA8> expectedWithTwos(mipSize * mipSize, {2, 2, 2, 2}); in TEST_P() 1339 {mipSize, mipSize}, 1)); in TEST_P()
|
D | CopyTextureForBrowserTests.cpp | 77 for (uint32_t layer = 0; layer < layout.mipSize.depthOrArrayLayers; ++layer) { in GetTextureData() 79 for (uint32_t y = 0; y < layout.mipSize.height; ++y) { in GetTextureData() 81 for (uint32_t x = 0; x < layout.mipSize.width; ++x) { in GetTextureData() 315 ©Layout.mipSize); in CreateAndInitTexture()
|
D | QueueTests.cpp | 281 wgpu::Extent3D mipSize = {textureSpec.textureSize.width >> textureSpec.level, in DoTest() local 286 bytesPerRow = mipSize.width * bytesPerTexel; in DoTest() 290 dataSpec.rowsPerImage > 0 ? dataSpec.rowsPerImage : mipSize.height; in DoTest() 297 (alignedBytesPerRow / bytesPerTexel) * (mipSize.height - 1) + mipSize.width; in DoTest()
|
D | CopyTests.cpp | 49 for (uint32_t layer = 0; layer < layout.mipSize.depthOrArrayLayers; ++layer) { in GetExpectedTextureData() 51 for (uint32_t y = 0; y < layout.mipSize.height; ++y) { in GetExpectedTextureData() 52 for (uint32_t x = 0; x < layout.mipSize.width * bytesPerTexelBlock; ++x) { in GetExpectedTextureData() 67 for (uint32_t layer = 0; layer < layout.mipSize.depthOrArrayLayers; ++layer) { in GetExpectedTextureDataRGBA8() 69 for (uint32_t y = 0; y < layout.mipSize.height; ++y) { in GetExpectedTextureDataRGBA8() 70 for (uint32_t x = 0; x < layout.mipSize.width; ++x) { in GetExpectedTextureDataRGBA8() 165 &textureDataLayout, ©Layout.mipSize); in DoTest() 296 const uint32_t texelCountPerLayer = copyDepth * (copyLayout.mipSize.width / blockWidth) * in DoTest() 297 (copyLayout.mipSize.height / blockHeight) * in DoTest() 414 &srcDataCopyLayout.mipSize); in DoTest() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/ |
D | gen_mipmap.metal | 49 ushort3 mipSize = ushort3(dstMip1.get_width(), dstMip1.get_height(), dstMip1.get_depth()); 50 bool validThread = gIndices.x < mipSize.x && gIndices.y < mipSize.y && gIndices.z < mipSize.z; 66 float3 texCoords = (float3(gIndices) + float3(0.5, 0.5, 0.5)) / float3(mipSize); 97 bool3 atEdge = gIndices == (mipSize - ushort3(1)); 139 mipSize = max(mipSize >> 1, ushort3(1)); 140 bool3 atEdge = (gIndices >> 1) == (mipSize - ushort3(1)); 185 mipSize = max(mipSize >> 1, ushort3(1)); 186 bool3 atEdge = (gIndices >> 2) == (mipSize - ushort3(1)); 228 ushort2 mipSize = 230 bool validThread = gIndices.x < mipSize.x && gIndices.y < mipSize.y; [all …]
|
D | mtl_default_shaders_src_autogen.inc | 955 ushort3 mipSize = ushort3(dstMip1.get_width(), dstMip1.get_height(), dstMip1.get_depth()); 956 bool validThread = gIndices.x < mipSize.x && gIndices.y < mipSize.y && gIndices.z < mipSize.z; 972 float3 texCoords = (float3(gIndices) + float3(0.5, 0.5, 0.5)) / float3(mipSize); 1003 bool3 atEdge = gIndices == (mipSize - ushort3(1)); 1045 mipSize = max(mipSize >> 1, ushort3(1)); 1046 bool3 atEdge = (gIndices >> 1) == (mipSize - ushort3(1)); 1091 mipSize = max(mipSize >> 1, ushort3(1)); 1092 bool3 atEdge = (gIndices >> 2) == (mipSize - ushort3(1)); 1134 ushort2 mipSize = 1136 bool validThread = gIndices.x < mipSize.x && gIndices.y < mipSize.y; [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | IncompleteTextureTest.cpp | 162 const GLsizei mipSize = redTextureSize >> mip; in TEST_P() local 164 glTexImage2D(GL_TEXTURE_2D, mip, GL_RGBA, mipSize, mipSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 179 const GLsizei mipSize = greenTextureSize >> mip; in TEST_P() local 181 glTexSubImage2D(GL_TEXTURE_2D, mip, mipSize, mipSize, mipSize, mipSize, GL_RGBA, in TEST_P()
|
D | ReadPixelsTest.cpp | 873 GLint mipSize = 4 >> level; in initializeTextureData() local 874 GLint layers = (textureTarget == GL_TEXTURE_3D ? mipSize : 4); in initializeTextureData() 876 size_t layerSize = mipSize * mipSize; in initializeTextureData() 887 glTexSubImage3D(textureTarget, level, 0, 0, 0, mipSize, mipSize, layers, GL_RGBA, in initializeTextureData()
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
D | TestUtils.cpp | 45 layout.mipSize = {std::max(textureSizeAtLevel0.width >> mipmapLevel, 1u), in GetTextureDataCopyLayoutForTextureAtLevel() 50 layout.mipSize.depthOrArrayLayers = in GetTextureDataCopyLayoutForTextureAtLevel() 54 layout.bytesPerRow = GetMinimumBytesPerRow(format, layout.mipSize.width); in GetTextureDataCopyLayoutForTextureAtLevel() 57 rowsPerImage = layout.mipSize.height; in GetTextureDataCopyLayoutForTextureAtLevel() 61 uint32_t appliedRowsPerImage = rowsPerImage > 0 ? rowsPerImage : layout.mipSize.height; in GetTextureDataCopyLayoutForTextureAtLevel() 65 RequiredBytesInCopy(layout.bytesPerRow, appliedRowsPerImage, layout.mipSize, format); in GetTextureDataCopyLayoutForTextureAtLevel()
|
D | TestUtils.h | 30 wgpu::Extent3D mipSize; member
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandValidation.cpp | 305 Extent3D mipSize = texture->GetMipLevelPhysicalSize(textureCopy.mipLevel); in ValidateTextureCopyRange() local 309 mipSize.depthOrArrayLayers = texture->GetArrayLayers(); in ValidateTextureCopyRange() 315 static_cast<uint64_t>(mipSize.width) || in ValidateTextureCopyRange() 318 static_cast<uint64_t>(mipSize.height) || in ValidateTextureCopyRange() 321 static_cast<uint64_t>(mipSize.depthOrArrayLayers), in ValidateTextureCopyRange() 324 &textureCopy.origin, ©Size, texture, textureCopy.mipLevel, &mipSize); in ValidateTextureCopyRange()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | TextureGL.cpp | 354 Extent3D mipSize = GetMipLevelPhysicalSize(level); in ClearTexture() local 365 static_cast<GLint>(layer), mipSize.width, in ClearTexture() 366 mipSize.height, mipSize.depthOrArrayLayers, in ClearTexture() 498 Extent3D mipSize = GetMipLevelPhysicalSize(level); in ClearTexture() local 510 DoTexSubImage(ToBackend(GetDevice())->gl, textureCopy, 0, dataLayout, mipSize); in ClearTexture()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
D | vktPipelineRenderToImageTests.cpp | 1201 const IVec4& mipSize, in drawToMipLevel() argument 1246 …mipSize.swizzle(0, 1), VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, static_cast<deUint32>(subpassNdx), us… in drawToMipLevel() 1263 static_cast<deUint32>(mipSize.x()), static_cast<deUint32>(mipSize.y()))); in drawToMipLevel() 1278 …beginRenderPass(vk, *cmdBuffer, *renderPass, *framebuffer, makeRect2D(0, 0, mipSize.x(), mipSize.y… in drawToMipLevel() 1441 const IVec4& mipSize = mipLevelSizes[mipLevel]; in testRenderToMipMaps() local 1442 const int levelSlices = maxLayersOrDepth(mipSize); in testRenderToMipMaps() 1444 …drawToMipLevel (context, caseDef, mipLevel, mipSize, levelSlices, *colorImage, *depthStencilImage,… in testRenderToMipMaps() 1542 const IVec4& mipSize = mipLevelSizes[mipLevel]; in testRenderToMipMaps() local 1544 const int levelDepth = maxLayersOrDepth(mipSize); in testRenderToMipMaps() 1545 …const tcu::ConstPixelBufferAccess resultImage (format, mipSize.x(), mipSize.y(), levelDepth, pLev… in testRenderToMipMaps() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineRenderToImageTests.cpp | 1201 const IVec4& mipSize, in drawToMipLevel() argument 1246 …mipSize.swizzle(0, 1), VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, static_cast<deUint32>(subpassNdx), us… in drawToMipLevel() 1263 static_cast<deUint32>(mipSize.x()), static_cast<deUint32>(mipSize.y()))); in drawToMipLevel() 1278 …beginRenderPass(vk, *cmdBuffer, *renderPass, *framebuffer, makeRect2D(0, 0, mipSize.x(), mipSize.y… in drawToMipLevel() 1441 const IVec4& mipSize = mipLevelSizes[mipLevel]; in testRenderToMipMaps() local 1442 const int levelSlices = maxLayersOrDepth(mipSize); in testRenderToMipMaps() 1444 …drawToMipLevel (context, caseDef, mipLevel, mipSize, levelSlices, *colorImage, *depthStencilImage,… in testRenderToMipMaps() 1542 const IVec4& mipSize = mipLevelSizes[mipLevel]; in testRenderToMipMaps() local 1544 const int levelDepth = maxLayersOrDepth(mipSize); in testRenderToMipMaps() 1545 …const tcu::ConstPixelBufferAccess resultImage (format, mipSize.x(), mipSize.y(), levelDepth, pLev… in testRenderToMipMaps() [all …]
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_ioctl.c | 168 SVGA3dSize mipSize = size; in vmw_ioctl_surface_create() local 172 cur_size->width = mipSize.width; in vmw_ioctl_surface_create() 173 cur_size->height = mipSize.height; in vmw_ioctl_surface_create() 174 cur_size->depth = mipSize.depth; in vmw_ioctl_surface_create() 175 mipSize.width = MAX2(mipSize.width >> 1, 1); in vmw_ioctl_surface_create() 176 mipSize.height = MAX2(mipSize.height >> 1, 1); in vmw_ioctl_surface_create() 177 mipSize.depth = MAX2(mipSize.depth >> 1, 1); in vmw_ioctl_surface_create()
|
/third_party/skia/src/gpu/ops/ |
D | SmallPathRenderer.cpp | 258 SkScalar mipSize = mipScale*SkScalarAbs(maxDim); in onPrepareDraws() local 264 if (mipSize < kIdealMinMIP) { in onPrepareDraws() 265 SkScalar newMipSize = mipSize; in onPrepareDraws() 269 while (newMipSize > 4 * mipSize) { in onPrepareDraws() 272 mipSize = newMipSize; in onPrepareDraws() 275 SkScalar desiredDimension = std::min(mipSize, kMaxMIP); in onPrepareDraws()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/descriptor_indexing/ |
D | vktDescriptorSetsIndexingTestsUtils.cpp | 162 …deUint32 mipSize = extent.width * extent.height * extent.depth * vk::mapVkFormat(format).getPixelS… in computeImageSize() local 181 mipSize += tmpSize; in computeImageSize() 185 mipSize = tmpSize; in computeImageSize() 190 return mipSize; in computeImageSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/ |
D | vktDescriptorSetsIndexingTestsUtils.cpp | 162 …deUint32 mipSize = extent.width * extent.height * extent.depth * vk::mapVkFormat(format).getPixelS… in computeImageSize() local 181 mipSize += tmpSize; in computeImageSize() 185 mipSize = tmpSize; in computeImageSize() 190 return mipSize; in computeImageSize()
|
/third_party/mesa3d/src/amd/addrlib/src/core/ |
D | addrlib2.cpp | 1292 UINT_32 mipSize = 0; in ComputeSurfaceCoordFromAddrLinear() local 1298 mipSize = localOut.pitch * elementBytes; in ComputeSurfaceCoordFromAddrLinear() 1303 mipSize = currentMipHeight * localOut.pitch * elementBytes; in ComputeSurfaceCoordFromAddrLinear() 1306 if (mipSize == 0) in ComputeSurfaceCoordFromAddrLinear() 1311 else if ((mipSize + mipOffsetInSlice) > offsetInSlice) in ComputeSurfaceCoordFromAddrLinear() 1317 mipOffsetInSlice += mipSize; in ComputeSurfaceCoordFromAddrLinear()
|
/third_party/mesa3d/src/gallium/drivers/svga/include/ |
D | svga3d_surfacedefs.h | 1290 SVGA3dSize mipSize; in svga3dsurface_get_image_offset() local 1298 mipSize = svga3dsurface_get_mip_size(baseLevelSize, i); in svga3dsurface_get_image_offset() 1299 bytes = svga3dsurface_get_image_buffer_size(desc, &mipSize, 0); in svga3dsurface_get_image_offset()
|
/third_party/skia/src/core/ |
D | SkMipmap.cpp | 558 SkISize mipSize = ComputeLevelSize(src.width(), src.height(), currentMipLevel); in Build() local 559 size += SkColorTypeMinRowBytes(ct, mipSize.fWidth) * mipSize.fHeight; in Build()
|
/third_party/mesa3d/src/amd/addrlib/src/gfx9/ |
D | gfx9addrlib.cpp | 4445 UINT_32 mipSize; in GetMipChainInfo() local 4449 mipSize = mipPitch * mipHeight * mipDepth * (bpp >> 3); in GetMipChainInfo() 4453 mipSize = mipPitch * mipHeight * (bpp >> 3); in GetMipChainInfo() 4456 if (mipSize <= 256) in GetMipChainInfo()
|
/third_party/mesa3d/src/amd/addrlib/src/gfx11/ |
D | gfx11addrlib.cpp | 3180 UINT_64 mipSize[MaxMipLevels]; in ComputeSurfaceInfoMacroTiled() local 3210 mipSize[i] = sliceSize * depth; in ComputeSurfaceInfoMacroTiled() 3251 offset += mipSize[i]; in ComputeSurfaceInfoMacroTiled()
|