Home
last modified time | relevance | path

Searched refs:texelSize (Results 1 - 11 of 11) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DStorageTextureTests.cpp482 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 DSpirvShaderImage.cpp619 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 Dvk_format_utils.cpp311 // 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 DvktImageHostImageCopyTests.cpp247 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 DvktImageLoadStoreTests.cpp857 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 DCopySplitTests.cpp480 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 DvktRobustnessBufferAccessTests.cpp484 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 DvktRobustnessBufferAccessTests.cpp532 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 DvktImageLoadStoreTests.cpp850 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 DvktApiCopiesAndBlittingTests.cpp2583 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 DvktApiCopiesAndBlittingTests.cpp2397 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...]

Completed in 41 milliseconds