/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | StorageTextureTests.cpp | 482 wgpu::Buffer CreateEmptyBufferForTextureCopy(uint32_t texelSize, uint32_t sliceCount = 1) { in CreateEmptyBufferForTextureCopy() argument 483 ASSERT(kWidth * texelSize <= kTextureBytesPerRowAlignment); in CreateEmptyBufferForTextureCopy() 485 kTextureBytesPerRowAlignment * (kHeight * sliceCount - 1) + kWidth * texelSize; in CreateEmptyBufferForTextureCopy() 496 uint32_t texelSize = utils::GetTexelBlockSizeInBytes(format); in CreateTextureWithTestData() local 497 ASSERT(kWidth * texelSize <= kTextureBytesPerRowAlignment); in CreateTextureWithTestData() 499 const uint32_t bytesPerTextureRow = texelSize * kWidth; in CreateTextureWithTestData() 501 static_cast<uint32_t>(initialTextureData.size() / texelSize / (kWidth * kHeight)); in CreateTextureWithTestData() 699 const uint32_t texelSize = utils::GetTexelBlockSizeInBytes(format); in CheckOutputStorageTexture() local 701 CheckOutputStorageTexture(writeonlyStorageTexture, texelSize, expectedData); in CheckOutputStorageTexture() 705 uint32_t texelSize, in CheckOutputStorageTexture() 704 CheckOutputStorageTexture(wgpu::Texture writeonlyStorageTexture, uint32_t texelSize, const std::vector<uint8_t>& expectedData) CheckOutputStorageTexture() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderImage.cpp | 619 const int texelSize = imageFormat.bytes(); in GetTexelAddress() local 633 SIMD::Int ptrOffset = u * SIMD::Int(texelSize); in GetTexelAddress() 758 const int texelSize = imageFormat.bytes(); in EmitImageRead() local 763 if(texelSize == 4 || texelSize == 8 || texelSize == 16) in EmitImageRead() 765 for(auto i = 0; i < texelSize / 4; i++) in EmitImageRead() 771 else if(texelSize == 2) in EmitImageRead() 784 else if(texelSize == 1) in EmitImageRead() 798 UNREACHABLE("texelSize in EmitImageRead() 1362 const int texelSize = imageFormat.bytes(); WriteImage() local [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | vk_format_utils.cpp | 311 // We need lcm(4, texelSize) (lcm = least common multiplier). For compressed images, in GetImageCopyBufferAlignment() 312 // |texelSize| would contain the block size. Since 4 is constant, this can be calculated as: in GetImageCopyBufferAlignment() 314 // | texelSize texelSize % 4 == 0 in GetImageCopyBufferAlignment() 315 // | 4 * texelSize texelSize % 4 == 1 in GetImageCopyBufferAlignment() 316 // lcm(4, texelSize) = < in GetImageCopyBufferAlignment() 317 // | 2 * texelSize texelSize % 4 == 2 in GetImageCopyBufferAlignment() 318 // | 4 * texelSize texelSiz in GetImageCopyBufferAlignment() 329 const size_t texelSize = actualFormat.pixelBytes; GetImageCopyBufferAlignment() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageHostImageCopyTests.cpp | 247 void copyMemoryToImage (const std::vector<deUint8> testData, vk::VkImage image, deUint32 texelSize, const vk::VkImageSubresourceLayers subresourceLayers, deInt32 xOffset, deInt32 yOffset, deUint32 width, deUint32 height); 284 void HostImageCopyTestInstance::copyMemoryToImage (const std::vector<deUint8> testData, vk::VkImage image, deUint32 texelSize, const vk::VkImageSubresourceLayers subresourceLayers, deInt32 xOffset, deInt32 yOffset, deUint32 width, deUint32 height) in copyMemoryToImage() argument 288 std::vector<deUint8> data (texelSize * width * height); in copyMemoryToImage() 291 memcpy(&data[i * width * texelSize], &testData[((yOffset + i) * imageWidth + xOffset) * texelSize], width * texelSize); in copyMemoryToImage() 307 deUint32 dataOffset = width * (height / regionsCount * i) * texelSize; in copyMemoryToImage()
|
H A D | vktImageLoadStoreTests.cpp | 857 VkDeviceSize texelSize = formatHasThreeComponents(format) ? tcu::getChannelSize(vk::mapVkFormat(format).type) : tcu::getPixelSize(vk::mapVkFormat(format)); in getViewOffset() local 860 align = de::min(align, texelSize); in getViewOffset()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/d3d12/ |
H A D | CopySplitTests.cpp | 480 for (uint32_t texelSize : {4, 8, 16, 32, 64}) { in TEST_P() 481 textureSpec.texelBlockSizeInBytes = texelSize; in TEST_P()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/ |
H A D | vktRobustnessBufferAccessTests.cpp | 484 const deUint32 texelSize = mapVkFormat(bufferFormat).getPixelSize(); in genTexelBufferShaderAccess() local 526 bufferUse << " for (int i = 0; i < " << (s_numberOfBytesAccessed / texelSize) << "; i++)\n" in genTexelBufferShaderAccess()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/ |
H A D | vktRobustnessBufferAccessTests.cpp | 532 const deUint32 texelSize = mapVkFormat(bufferFormat).getPixelSize(); in genTexelBufferShaderAccess() local 574 bufferUse << " for (int i = 0; i < " << (s_numberOfBytesAccessed / texelSize) << "; i++)\n" in genTexelBufferShaderAccess()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageLoadStoreTests.cpp | 850 VkDeviceSize texelSize = formatHasThreeComponents(format) ? tcu::getChannelSize(vk::mapVkFormat(format).type) : tcu::getPixelSize(vk::mapVkFormat(format)); in getViewOffset() local 853 align = de::min(align, texelSize); in getViewOffset()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiCopiesAndBlittingTests.cpp | 2583 const int texelSize = src.getFormat().getPixelSize(); in copyRegionToTextureLevel() local 2586 const int texelOffset = (int) region.bufferImageCopy.bufferOffset / texelSize; in copyRegionToTextureLevel() 3074 const int texelSize = dst.getFormat().getPixelSize(); in copyRegionToTextureLevel() local 3077 const int texelOffset = (int) region.bufferImageCopy.bufferOffset / texelSize; in copyRegionToTextureLevel() 3123 const int texelSize = dst.getFormat().getPixelSize(); in copyRegionToTextureLevel() local 3126 const int texelOffset = (int)region.bufferImageCopy.bufferOffset / texelSize; in copyRegionToTextureLevel() 3176 glw::GLuint texelSize = m_textureFormat.getPixelSize(); in CopyBufferToDepthStencil() local 3177 if (texelSize > sizeof(float)) in CopyBufferToDepthStencil() 3181 texelSize = sizeof(float); in CopyBufferToDepthStencil() 3183 m_bufferSize += static_cast<VkDeviceSize>(m_params.dst.image.extent.width) * static_cast<VkDeviceSize>(m_params.dst.image.extent.height) * static_cast<VkDeviceSize>(texelSize); in CopyBufferToDepthStencil() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiCopiesAndBlittingTests.cpp | 2397 const int texelSize = src.getFormat().getPixelSize(); in copyRegionToTextureLevel() local 2400 const int texelOffset = (int) region.bufferImageCopy.bufferOffset / texelSize; in copyRegionToTextureLevel() 2631 const int texelSize = dst.getFormat().getPixelSize(); in copyRegionToTextureLevel() local 2634 const int texelOffset = (int) region.bufferImageCopy.bufferOffset / texelSize; in copyRegionToTextureLevel() 2680 const int texelSize = dst.getFormat().getPixelSize(); in copyRegionToTextureLevel() local 2683 const int texelOffset = (int)region.bufferImageCopy.bufferOffset / texelSize; in copyRegionToTextureLevel() 2733 glw::GLuint texelSize = m_textureFormat.getPixelSize(); in CopyBufferToDepthStencil() local 2734 if (texelSize > sizeof(float)) in CopyBufferToDepthStencil() 2738 texelSize = sizeof(float); in CopyBufferToDepthStencil() 2740 m_bufferSize += static_cast<VkDeviceSize>(m_params.dst.image.extent.width) * static_cast<VkDeviceSize>(m_params.dst.image.extent.height) * static_cast<VkDeviceSize>(texelSize); in CopyBufferToDepthStencil() [all...] |