/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.cpp | 53 vk::VkDeviceSize rowPitch = rowPitchOrZero; in pack() local 56 if (rowPitch == 0) in pack() 57 rowPitch = width * pixelSize; in pack() 60 depthPitch = rowPitch * height; in pack() 71 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) && in pack() 72 depthPitch == static_cast<vk::VkDeviceSize>(rowPitch * height)) in pack() 88 deMemcpy(dstRow, srcRow, static_cast<size_t>(rowPitch)); in pack() 90 dstRow += rowPitch; in pack() 105 vk::VkDeviceSize rowPitch = rowPitchOrZero; in unpack() local 108 if (rowPitch in unpack() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.cpp | 53 vk::VkDeviceSize rowPitch = rowPitchOrZero; in pack() local 56 if (rowPitch == 0) in pack() 57 rowPitch = width * pixelSize; in pack() 60 depthPitch = rowPitch * height; in pack() 71 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) && in pack() 72 depthPitch == static_cast<vk::VkDeviceSize>(rowPitch * height)) in pack() 88 deMemcpy(dstRow, srcRow, static_cast<size_t>(rowPitch)); in pack() 90 dstRow += rowPitch; in pack() 105 vk::VkDeviceSize rowPitch = rowPitchOrZero; in unpack() local 108 if (rowPitch in unpack() [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fTextureSpecificationTests.cpp | 434 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() local 436 int slicePitch = imageHeight*rowPitch; in createTexture() 451 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, m_size, m_size, m_depth, rowPitch, slicePitch, &data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, colorA, colorB); in createTexture() 537 int rowPitch = deAlign32(pixelSize*m_size, 4); in createTexture() local 538 int slicePitch = rowPitch*m_size; in createTexture() 541 tcu::fillWithComponentGradients(tcu::PixelBufferAccess(m_texFormat, m_size, m_size, m_depth, rowPitch, slicePitch, &data[0]), m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); in createTexture() 549 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() local 551 int slicePitch = imageHeight*rowPitch; in createTexture() 558 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, m_subW, m_subH, m_subD, rowPitch, slicePitc in createTexture() 728 int rowPitch = deAlign32(rowLength*pixelSize, alignment); createTexture() local [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fTextureSpecificationTests.cpp | 989 int rowPitch = deAlign32(levelW*m_texFormat.getPixelSize(), m_alignment); in createTexture() local 992 data.resize(rowPitch*levelH); in createTexture() 993 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, levelW, levelH, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 1043 int rowPitch = deAlign32(m_texFormat.getPixelSize()*levelSize, m_alignment); in createTexture() local 1048 data.resize(rowPitch*levelSize); in createTexture() 1049 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, levelSize, levelSize, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 1082 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() local 1089 data.resize(pixelSize * m_skipPixels + rowPitch * (m_height + m_skipRows)); in createTexture() 1096 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, m_width, m_height, 1, rowPitch, 0, &data[0] + m_skipRows*rowPitch in createTexture() 1150 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 1397 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 1671 int rowPitch = deAlign32(m_texFormat.getPixelSize()*m_subW, m_alignment); createTexture() local 1740 int rowPitch = deAlign32(m_texFormat.getPixelSize()*m_subW, m_alignment); createTexture() local 1814 int rowPitch = deAlign32(pixelSize*m_width, 4); createTexture() local 1826 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2318 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2392 const int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2472 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2554 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2655 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2754 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 2848 int rowPitch = deAlign32(pixelSize*m_width, 4); createTexture() local 2860 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 3076 int rowPitch = deAlign32(pixelSize*m_width, 4); createTexture() local 3088 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); createTexture() local 3387 int rowPitch = deAlign32(rowLength*pixelSize, alignment); createTexture() local 3448 int rowPitch = deAlign32(rowLength*pixelSize, alignment); createTexture() local [all...] |
H A D | es3fReadPixelsTests.cpp | 314 const int rowPitch = m_alignment * deCeilFloatToInt32(float(pixelSize * rowWidth) / (float)m_alignment); in clearColor() local 316 pixelData.resize(rowPitch * (m_height + m_skipRows), 0); in clearColor() 356 const int rowPitch = m_alignment * deCeilFloatToInt32((float)(pixelSize * rowWidth) / (float)m_alignment); in iterate() local 357 const tcu::ConstPixelBufferAccess resultAccess = tcu::ConstPixelBufferAccess(format, m_width, m_height, 1, rowPitch, 0, &(pixelData[pixelSize * m_skipPixels + m_skipRows * rowPitch])); in iterate()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fReadPixelsTests.cpp | 208 const int rowPitch = m_alignment * deCeilFloatToInt32(float(pixelSize * width) / (float)m_alignment); in iterate() local 210 pixelData.resize(rowPitch * height, 0); in iterate() 231 tcu::copy(resultRGBA8.getLevel(0), tcu::PixelBufferAccess(format, width, height, 1, rowPitch, 0, &(pixelData[0]))); in iterate() 247 if (tcu::floatThresholdCompare(m_testCtx.getLog(), "Result", "Result", reference.getLevel(0), tcu::PixelBufferAccess(format, width, height, 1, rowPitch, 0, &(pixelData[0])), tcu::Vec4(redThreshold, greenThreshold, blueThreshold, alphaThreshold), tcu::COMPARE_LOG_RESULT)) in iterate()
|
H A D | es2fTextureSpecificationTests.cpp | 862 int rowPitch = getRowPitch(fmt, levelW, m_alignment); in createTexture() local 865 data.resize(rowPitch*levelH); in createTexture() 866 tcu::fillWithGrid(tcu::PixelBufferAccess(fmt, levelW, levelH, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 910 int rowPitch = getRowPitch(fmt, levelW, m_alignment); in createTexture() local 915 data.resize(rowPitch*levelH); in createTexture() 916 tcu::fillWithGrid(tcu::PixelBufferAccess(fmt, levelW, levelH, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 1226 int rowPitch = getRowPitch(fmt, m_subW, m_alignment); in createTexture() local 1227 data.resize(rowPitch*m_subH); in createTexture() 1228 tcu::fillWithGrid(tcu::PixelBufferAccess(fmt, m_subW, m_subH, 1, rowPitch, 0, &data[0]), 4, Vec4(1.0f, 0.0f, 0.0f, 1.0f), Vec4(0.0f, 1.0f, 0.0f, 1.0f)); in createTexture() 1283 int rowPitch in createTexture() local [all...] |
/third_party/skia/tools/gpu/vk/ |
H A D | VkYcbcrSamplerHelper.cpp | 142 bufferData[y * yLayout.rowPitch + x] = GetExpectedY(x, y, width, height); in createBackendTexture() 155 bufferData[y * uvLayout.rowPitch + x * 2] = u; in createBackendTexture() 156 bufferData[y * uvLayout.rowPitch + x * 2 + 1] = v; in createBackendTexture()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | CLImage.cpp | 53 copyValue = &mDesc.rowPitch; in getInfo() 54 copySize = sizeof(mDesc.rowPitch); in getInfo()
|
H A D | validationCL.cpp | 265 size_t rowPitch, in ValidateBufferRect() 281 if (rowPitch == 0u) in ValidateBufferRect() 283 rowPitch = region[0]; in ValidateBufferRect() 285 else if (rowPitch < region[0]) in ValidateBufferRect() 294 slicePitch = region[1] * rowPitch; in ValidateBufferRect() 296 else if (slicePitch < region[1] * rowPitch || (slicePitch % rowPitch) != 0u) in ValidateBufferRect() 304 origin[2] * slicePitch + origin[1] * rowPitch + origin[0], in ValidateBufferRect() 305 (region[2] - 1u) * slicePitch + (region[1] - 1u) * rowPitch + region[0])) in ValidateBufferRect() 455 size_t rowPitch, in ValidateHostRegionForImage() 262 ValidateBufferRect(const Buffer &buffer, const size_t *origin, const size_t *region, size_t rowPitch, size_t slicePitch) ValidateBufferRect() argument 453 ValidateHostRegionForImage(const Image &image, const size_t region[3], size_t rowPitch, size_t slicePitch, const void *ptr) ValidateHostRegionForImage() argument 2730 const size_t rowPitch = image_desc->image_row_pitch != 0u ? image_desc->image_row_pitch ValidateCreateImage() local [all...] |
H A D | CLContext.cpp | 151 size_t rowPitch, in createImage2D() 156 MemObjectType::Image2D, width, height, 0u, 0u, rowPitch, 0u, 0u, 0u}; in createImage2D() 166 size_t rowPitch, in createImage3D() 172 MemObjectType::Image3D, width, height, depth, 0u, rowPitch, slicePitch, 0u, 0u}; in createImage3D() 147 createImage2D(MemFlags flags, const cl_image_format *format, size_t width, size_t height, size_t rowPitch, void *hostPtr, cl_int &errorCode) createImage2D() argument 161 createImage3D(MemFlags flags, const cl_image_format *format, size_t width, size_t height, size_t depth, size_t rowPitch, size_t slicePitch, void *hostPtr, cl_int &errorCode) createImage3D() argument
|
H A D | CLContext.h | 53 size_t rowPitch, 62 size_t rowPitch,
|
H A D | CLtypes.h | 80 size_t rowPitch; member
|
H A D | formatutils.h | 153 GLuint rowPitch, 168 GLuint rowPitch,
|
H A D | formatutils.cpp | 1677 GLuint rowPitch, in computeDepthPitch() 1696 CheckedNumeric<GLuint> checkedRowPitch(rowPitch); in computeDepthPitch() 1709 GLuint rowPitch = 0; in computeDepthPitch() local 1710 if (!computeRowPitch(formatType, width, alignment, rowLength, &rowPitch)) in computeDepthPitch() 1714 return computeDepthPitch(height, imageHeight, rowPitch, resultOut); in computeDepthPitch() 1770 GLuint rowPitch, in computeSkipBytes() 1776 CheckedNumeric<GLuint> checkedRowPitch(rowPitch); in computeSkipBytes() 1798 GLuint rowPitch = 0; in computePackUnpackEndByte() local 1799 if (!computeRowPitch(formatType, size.width, state.alignment, state.rowLength, &rowPitch)) in computePackUnpackEndByte() 1805 if (is3D && !computeDepthPitch(size.height, state.imageHeight, rowPitch, in computePackUnpackEndByte() 1675 computeDepthPitch(GLsizei height, GLint imageHeight, GLuint rowPitch, GLuint *resultOut) const computeDepthPitch() argument 1769 computeSkipBytes(GLenum formatType, GLuint rowPitch, GLuint depthPitch, const PixelStoreStateBase &state, bool is3D, GLuint *resultOut) const computeSkipBytes() argument [all...] |
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglAndroidUtil.cpp | 314 const int rowPitch = texFormat.getPixelSize() * desc.stride; 315 const int slicePitch = rowPitch * desc.height; 316 PixelBufferAccess nativeBuffer (texFormat, desc.width, desc.height, 1, rowPitch, slicePitch, bufferData);
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_misc_opcodes.h | 88 uint32 rowPitch = 1, in dng_area_spec() 94 , fRowPitch (rowPitch) in dng_area_spec()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/cl/ |
H A D | CLContextCL.cpp | 146 desc.rowPitch, desc.slicePitch, desc.numMipLevels, desc.numSamples, {nativeParent}}; in createImage() 166 mNative, flags.get(), &format, desc.width, desc.height, desc.rowPitch, hostPtr, in createImage() 172 desc.rowPitch, desc.slicePitch, hostPtr, &errorCode); in createImage()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
H A D | UtilsD3D12.h | 41 const uint32_t rowPitch,
|
H A D | UtilsD3D12.cpp | 88 const uint32_t rowPitch, in ComputeBufferLocationForCopyTextureRegion() 99 bufferLocation.PlacedFootprint.Footprint.RowPitch = rowPitch; in ComputeBufferLocationForCopyTextureRegion() 83 ComputeBufferLocationForCopyTextureRegion( const Texture* texture, ID3D12Resource* bufferResource, const Extent3D& bufferSize, const uint64_t offset, const uint32_t rowPitch, Aspect aspect) ComputeBufferLocationForCopyTextureRegion() argument
|
/third_party/mesa3d/src/vulkan/wsi/ |
H A D | wsi_common_drm.c | 539 image->row_pitches[p] = image_layout.rowPitch; in wsi_create_native_image_mem() 555 image->row_pitches[0] = image_layout.rowPitch; in wsi_create_native_image_mem()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageSubresourceLayoutTests.cpp | 563 // Note: if subresourceHeight is <= 1u, rowPitch can be zero. in iterateAspect() 564 if (subresourceHeight > 1u && subresourceLayout.rowPitch < pixelSize * subresourceWidth) in iterateAspect() 570 << " reports row pitch of " << subresourceLayout.rowPitch in iterateAspect() 614 const auto imagePixelOffset = z * subresourceLayout.depthPitch + y * subresourceLayout.rowPitch + x * pixelSize; in iterateAspect()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_image.c | 1685 if (mod_info->pPlaneLayouts[plane].rowPitch % image->planes[plane].surface.bpe || in radv_image_create_layout() 1686 !mod_info->pPlaneLayouts[plane].rowPitch) in radv_image_create_layout() 1690 stride = mod_info->pPlaneLayouts[plane].rowPitch / image->planes[plane].surface.bpe; in radv_image_create_layout() 2421 pLayout->rowPitch = ac_surface_get_plane_stride(device->physical_device->rad_info.gfx_level, in radv_GetImageSubresourceLayout() 2439 pLayout->rowPitch = surface->u.gfx9.surf_pitch * surface->bpe / 3; in radv_GetImageSubresourceLayout() 2445 pLayout->rowPitch = pitch * surface->bpe; in radv_GetImageSubresourceLayout() 2456 pLayout->rowPitch = surface->u.legacy.level[level].nblk_x * surface->bpe; in radv_GetImageSubresourceLayout()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTextureUtil.cpp | 338 const int rowPitch = access.getRowPitch(); 339 const int offsetToLast = rowPitch*(access.getHeight()-1); 340 const tcu::IVec3 pitch (access.getPixelPitch(), -rowPitch, access.getSlicePitch()); 352 const int rowPitch = access.getRowPitch(); 353 const int offsetToLast = rowPitch*(access.getHeight()-1); 354 const tcu::IVec3 pitch (access.getPixelPitch(), -rowPitch, access.getSlicePitch());
|
/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_image.c | 250 pLayout->rowPitch = slice_layout->row_stride; in panvk_GetImageSubresourceLayout()
|