Home
last modified time | relevance | path

Searched refs:mipSize (Results 1 - 24 of 24) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DDepthStencilLoadOpTests.cpp95 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 * mipSiz in CheckMipLevel()
[all...]
H A DNonzeroTextureCreationTests.cpp149 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, mipSiz in Run()
[all...]
H A DCopyTextureForBrowserTests.cpp77 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 &copyLayout.mipSize); in CreateAndInitTexture()
H A DTextureZeroInitTests.cpp216 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, mipSiz in TEST_P()
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DIncompleteTextureTest.cpp162 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()
H A DReadPixelsTest.cpp873 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()
H A DTextureTest.cpp489 size_t mipSize = std::max<size_t>(1u, mip0Size >> mip); in getMipDataSize() local
490 return mipSize * mipSize; in getMipDataSize()
/third_party/skia/third_party/externals/dawn/src/utils/
H A DTestUtils.cpp45 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()
H A DTestUtils.h30 wgpu::Extent3D mipSize; member
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommandValidation.cpp305 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, &copySize, texture, textureCopy.mipLevel, &mipSize); in ValidateTextureCopyRange() local
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DTextureGL.cpp354 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/vulkan/pipeline/
H A DvktPipelineRenderToImageTests.cpp1322 const IVec4& mipSize, in drawToMipLevel()
1371 mipSize.swizzle(0, 1), VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, static_cast<deUint32>(subpassNdx), useDepth, useStencil); in drawToMipLevel()
1390 static_cast<deUint32>(mipSize.x()), static_cast<deUint32>(mipSize.y())); in drawToMipLevel()
1405 renderPass.begin(vk, *cmdBuffer, makeRect2D(0, 0, mipSize.x(), mipSize.y()), (deUint32)clearValues.size(), &clearValues[0]); in drawToMipLevel()
1568 const IVec4& mipSize = mipLevelSizes[mipLevel]; in testRenderToMipMaps() local
1569 const int levelSlices = maxLayersOrDepth(mipSize); in testRenderToMipMaps()
1571 drawToMipLevel (context, caseDef, mipLevel, mipSize, levelSlices, *colorImage, *depthStencilImage, *vertexBuffer, pipelineLayout, in testRenderToMipMaps()
1669 const IVec4& mipSize in testRenderToMipMaps() local
1319 drawToMipLevel(const Context& context, const CaseDef& caseDef, const int mipLevel, const IVec4& mipSize, const int numSlices, const VkImage colorImage, const VkImage depthStencilImage, const VkBuffer vertexBuffer, const PipelineLayoutWrapper& pipelineLayout, const ShaderWrapper vertexModule, const ShaderWrapper fragmentModule) drawToMipLevel() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineRenderToImageTests.cpp1201 const IVec4& mipSize, in drawToMipLevel()
1246 mipSize.swizzle(0, 1), VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, static_cast<deUint32>(subpassNdx), useDepth, useStencil); 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()), (deUint32)clearValues.size(), &clearValues[0]); 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, *vertexBuffer, *pipelineLayout, in testRenderToMipMaps()
1542 const IVec4& mipSize in testRenderToMipMaps() local
1198 drawToMipLevel(const Context& context, const CaseDef& caseDef, const int mipLevel, const IVec4& mipSize, const int numSlices, const VkImage colorImage, const VkImage depthStencilImage, const VkBuffer vertexBuffer, const VkPipelineLayout pipelineLayout, const VkShaderModule vertexModule, const VkShaderModule fragmentModule) drawToMipLevel() argument
[all...]
/third_party/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmw_screen_ioctl.c168 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 in vmw_ioctl_surface_create()
[all...]
/third_party/skia/src/gpu/ops/
H A DSmallPathRenderer.cpp258 SkScalar mipSize = mipScale*SkScalarAbs(maxDim); variable
264 if (mipSize < kIdealMinMIP) {
265 SkScalar newMipSize = mipSize;
269 while (newMipSize > 4 * mipSize) {
272 mipSize = newMipSize;
275 SkScalar desiredDimension = std::min(mipSize, kMaxMIP);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/
H A DvktDescriptorSetsIndexingTestsUtils.cpp162 deUint32 mipSize = extent.width * extent.height * extent.depth * vk::mapVkFormat(format).getPixelSize(); 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_no_buildgn/vulkan/descriptor_indexing/
H A DvktDescriptorSetsIndexingTestsUtils.cpp162 deUint32 mipSize = extent.width * extent.height * extent.depth * vk::mapVkFormat(format).getPixelSize(); 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/
H A Daddrlib2.cpp1292 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/
H A Dsvga3d_surfacedefs.h1290 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/
H A DSkMipmap.cpp558 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/gfx11/
H A Dgfx11addrlib.cpp3180 UINT_64 mipSize[MaxMipLevels];
3210 mipSize[i] = sliceSize * depth;
3251 offset += mipSize[i];
/third_party/mesa3d/src/amd/addrlib/src/gfx9/
H A Dgfx9addrlib.cpp4445 UINT_32 mipSize;
4449 mipSize = mipPitch * mipHeight * mipDepth * (bpp >> 3);
4453 mipSize = mipPitch * mipHeight * (bpp >> 3);
4456 if (mipSize <= 256)
/third_party/mesa3d/src/amd/addrlib/src/gfx10/
H A Dgfx10addrlib.cpp3697 UINT_64 mipSize[MaxMipLevels];
3727 mipSize[i] = sliceSize * depth;
3768 offset += mipSize[i];
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DTextureD3D.cpp2038 GLsizei mipSize = std::max(1, size.width >> level);
2042 gl::Extents(mipSize, mipSize, 1), true);

Completed in 63 milliseconds