Home
last modified time | relevance | path

Searched refs:formatInfo (Results 1 - 25 of 94) sorted by relevance

1234

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DTextureFormatTests.cpp126 FormatTestInfo GetUncompressedFormatInfo(FormatTestInfo formatInfo) { in GetUncompressedFormatInfo() argument
127 switch (formatInfo.type) { in GetUncompressedFormatInfo()
129 return {wgpu::TextureFormat::RGBA32Float, 16, formatInfo.type, 4}; in GetUncompressedFormatInfo()
131 return {wgpu::TextureFormat::RGBA32Sint, 16, formatInfo.type, 4}; in GetUncompressedFormatInfo()
133 return {wgpu::TextureFormat::RGBA32Uint, 16, formatInfo.type, 4}; in GetUncompressedFormatInfo()
294 void DoFormatSamplingTest(FormatTestInfo formatInfo, in DoFormatSamplingTest() argument
298 FormatTestInfo renderFormatInfo = GetUncompressedFormatInfo(formatInfo); in DoFormatSamplingTest()
305 ExpandDataTo4Component(expectedRenderData, formatInfo.componentCount, defaultValues); in DoFormatSamplingTest()
307 DoSampleTest(formatInfo, textureData.data(), textureData.size() * sizeof(TextureData), in DoFormatSamplingTest()
313 void DoFloatFormatSamplingTest(FormatTestInfo formatInfo, in DoFloatFormatSamplingTest() argument
329 DoFormatRenderingTest(FormatTestInfo formatInfo, const std::vector<TextureData>& textureData, const std::vector<RenderData>& expectedRenderData, detail::Expectation* customExpectation = nullptr) DoFormatRenderingTest() argument
352 DoUnormTest(FormatTestInfo formatInfo) DoUnormTest() argument
366 DoSnormTest(FormatTestInfo formatInfo) DoSnormTest() argument
382 DoUintTest(FormatTestInfo formatInfo) DoUintTest() argument
396 DoSintTest(FormatTestInfo formatInfo) DoSintTest() argument
410 DoFloat32Test(FormatTestInfo formatInfo) DoFloat32Test() argument
422 DoFloat16Test(FormatTestInfo formatInfo) DoFloat16Test() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DD3D11FormatTablesTest.cpp53 const rx::d3d11::Format &formatInfo = in TEST_P() local
72 bool texSuccess = SUCCEEDED(device->CheckFormatSupport(formatInfo.texFormat, &texSupport)); in TEST_P()
79 const auto &dxgiSupport = rx::d3d11::GetDXGISupport(formatInfo.texFormat, featureLevel); in TEST_P()
89 SUCCEEDED(device->CheckFormatSupport(formatInfo.srvFormat, &filterSupport)); in TEST_P()
100 renderFormat = formatInfo.dsvFormat; in TEST_P()
102 SUCCEEDED(device->CheckFormatSupport(formatInfo.dsvFormat, &renderSupport)); in TEST_P()
107 EXPECT_NE(DXGI_FORMAT_UNKNOWN, formatInfo.dsvFormat) in TEST_P()
113 renderFormat = formatInfo.rtvFormat; in TEST_P()
115 SUCCEEDED(device->CheckFormatSupport(formatInfo.rtvFormat, &renderSupport)); in TEST_P()
119 EXPECT_NE(DXGI_FORMAT_UNKNOWN, formatInfo in TEST_P()
167 const rx::d3d11::Format &formatInfo = TEST_P() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineClearUtil.cpp42 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColor() local
43 return (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColor()
49 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColorInt() local
50 const tcu::Vec4 color = (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColorInt()
60 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColorUint() local
61 const tcu::Vec4 color = (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColorUint()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineClearUtil.cpp42 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColor() local
43 return (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColor()
49 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColorInt() local
50 const tcu::Vec4 color = (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColorInt()
60 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColorUint() local
61 const tcu::Vec4 color = (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColorUint()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/
H A DMemoryServiceZirconHandle.cpp51 VkPhysicalDeviceImageFormatInfo2 formatInfo; in SupportsImportMemory() local
52 formatInfo.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR; in SupportsImportMemory()
53 formatInfo.pNext = &externalFormatInfo; in SupportsImportMemory()
54 formatInfo.format = format; in SupportsImportMemory()
55 formatInfo.type = type; in SupportsImportMemory()
56 formatInfo.tiling = tiling; in SupportsImportMemory()
57 formatInfo.usage = usage; in SupportsImportMemory()
58 formatInfo.flags = flags; in SupportsImportMemory()
69 ToBackend(mDevice->GetAdapter())->GetPhysicalDevice(), &formatInfo, &formatProperties); in SupportsImportMemory()
H A DMemoryServiceOpaqueFD.cpp51 VkPhysicalDeviceImageFormatInfo2 formatInfo; in SupportsImportMemory() local
52 formatInfo.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR; in SupportsImportMemory()
53 formatInfo.pNext = &externalFormatInfo; in SupportsImportMemory()
54 formatInfo.format = format; in SupportsImportMemory()
55 formatInfo.type = type; in SupportsImportMemory()
56 formatInfo.tiling = tiling; in SupportsImportMemory()
57 formatInfo.usage = usage; in SupportsImportMemory()
58 formatInfo.flags = flags; in SupportsImportMemory()
69 ToBackend(mDevice->GetAdapter())->GetPhysicalDevice(), &formatInfo, &formatProperties)); in SupportsImportMemory()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DClear11.cpp478 const gl::InternalFormat &formatInfo = *attachment.getFormat().info; in clearFramebuffer() local
481 !(formatInfo.componentType == GL_FLOAT || in clearFramebuffer()
482 formatInfo.componentType == GL_UNSIGNED_NORMALIZED || in clearFramebuffer()
483 formatInfo.componentType == GL_SIGNED_NORMALIZED)) in clearFramebuffer()
494 if ((formatInfo.redBits == 0 || !r) && (formatInfo.greenBits == 0 || !g) && in clearFramebuffer()
495 (formatInfo.blueBits == 0 || !b) && (formatInfo.alphaBits == 0 || !a)) in clearFramebuffer()
505 clearParams.colorType != GL_FLOAT || (formatInfo.redBits > 0 && !r) || in clearFramebuffer()
506 (formatInfo in clearFramebuffer()
[all...]
H A DImage11.cpp133 const auto &formatInfo = d3d11::Format::Get(mInternalFormat, deviceCaps); in isDirty() local
134 if (formatInfo.dataInitializerFunction == nullptr) in isDirty()
243 const d3d11::Format &formatInfo = in redefine() local
245 mDXGIFormat = formatInfo.texFormat; in redefine()
246 mRenderable = (formatInfo.rtvFormat != DXGI_FORMAT_UNKNOWN); in redefine()
249 mDirty = (formatInfo.dataInitializerFunction != nullptr); in redefine()
278 const gl::InternalFormat &formatInfo = gl::GetSizedInternalFormatInfo(mInternalFormat); in loadData() local
280 ANGLE_CHECK_GL_MATH(context11, formatInfo.computeRowPitch(type, area.width, unpack.alignment, in loadData()
283 ANGLE_CHECK_GL_MATH(context11, formatInfo.computeDepthPitch(area.height, unpack.imageHeight, in loadData()
287 formatInfo in loadData()
318 const gl::InternalFormat &formatInfo = gl::GetSizedInternalFormatInfo(mInternalFormat); loadCompressedData() local
538 const auto &formatInfo = createStagingTexture() local
[all...]
H A DExternalImageSiblingImpl11.cpp124 const d3d11::Format &formatInfo = mTexture.getFormatSet(); in createRenderTarget() local
130 rtvDesc.Format = formatInfo.rtvFormat; in createRenderTarget()
168 srvDesc.Format = formatInfo.srvFormat; in createRenderTarget()
207 formatInfo, mWidth, mHeight, 1, mSamples); in createRenderTarget()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A Dformatutils.cpp606 void InsertFormatInfo(InternalFormatInfoMap *map, const InternalFormat &formatInfo) in InsertFormatInfo() argument
608 ASSERT(!formatInfo.sized || (*map).count(formatInfo.internalFormat) == 0); in InsertFormatInfo()
609 ASSERT((*map)[formatInfo.internalFormat].count(formatInfo.type) == 0); in InsertFormatInfo()
610 (*map)[formatInfo.internalFormat][formatInfo.type] = formatInfo; in InsertFormatInfo()
807 InternalFormat formatInfo; in AddRGBAXFormat() local
808 formatInfo in AddRGBAXFormat()
869 InternalFormat formatInfo; AddLUMAFormat() local
906 InternalFormat formatInfo; AddDepthStencilFormat() local
942 InternalFormat formatInfo; AddCompressedFormat() local
985 InternalFormat formatInfo; AddYUVFormat() local
[all...]
H A Dformat_map_desktop.cpp87 const InternalFormat &formatInfo = GetInternalFormatInfo(format, type); in ValidDesktopFormatCombination() local
117 if (formatInfo.isDepthOrStencil() != internalFormatInfo.isDepthOrStencil()) in ValidDesktopFormatCombination()
/third_party/node/deps/icu-small/source/i18n/
H A Dwinnmfmt.cpp394 FormatInfo formatInfo; in format() local
396 formatInfo = *fFormatInfo; in format()
408 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
412 formatInfo.currency.Grouping = 0; in format()
415 result = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
421 int newLength = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, nullptr, 0); in format()
425 GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
430 formatInfo.number.NumDigits = (UINT) numDigits; in format()
434 formatInfo.number.Grouping = 0; in format()
437 result = GetNumberFormatEx(localeName, 0, nBuffer, &formatInfo in format()
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dwinnmfmt.cpp393 FormatInfo formatInfo; in format() local
395 formatInfo = *fFormatInfo; in format()
407 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
411 formatInfo.currency.Grouping = 0; in format()
414 result = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
420 int newLength = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, NULL, 0); in format()
424 GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
429 formatInfo.number.NumDigits = (UINT) numDigits; in format()
433 formatInfo.number.Grouping = 0; in format()
436 result = GetNumberFormatEx(localeName, 0, nBuffer, &formatInfo in format()
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dwinnmfmt.cpp388 FormatInfo formatInfo; in format() local
390 formatInfo = *fFormatInfo; in format()
402 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
406 formatInfo.currency.Grouping = 0; in format()
409 result = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
415 int newLength = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, NULL, 0); in format()
419 GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
424 formatInfo.number.NumDigits = (UINT) numDigits; in format()
428 formatInfo.number.Grouping = 0; in format()
431 result = GetNumberFormatEx(localeName, 0, nBuffer, &formatInfo in format()
[all...]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkImageUtil.hpp186 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo,
191 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo,
196 VkExtent3D getPlaneExtent (const PlanarFormatDescription& formatInfo,
200 tcu::UVec2 getPlaneExtent (const PlanarFormatDescription& formatInfo,
205 tcu::UVec3 getImageSizeAlignment (const PlanarFormatDescription& formatInfo);
207 tcu::UVec2 getBlockExtent (const PlanarFormatDescription& formatInfo);
210 VkFormat getPlaneCompatibleFormat (const PlanarFormatDescription& formatInfo,
219 tcu::PixelBufferAccess getChannelAccess (const PlanarFormatDescription& formatInfo,
224 tcu::ConstPixelBufferAccess getChannelAccess (const PlanarFormatDescription& formatInfo,
229 tcu::PixelBufferAccess getChannelAccess (const PlanarFormatDescription& formatInfo,
[all...]
H A DvkImageUtil.cpp2729 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo, in getPlaneSizeInBytes() argument
2735 VkExtent3D imageExtent = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel); in getPlaneSizeInBytes()
2736 imageExtent.width /= formatInfo.blockWidth; in getPlaneSizeInBytes()
2737 imageExtent.height /= formatInfo.blockHeight; in getPlaneSizeInBytes()
2738 return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * imageExtent.width * imageExtent.height * imageExtent.depth, mipmapMemoryAlignment); in getPlaneSizeInBytes()
2741 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo, in getPlaneSizeInBytes() argument
2747 tcu::UVec2 mipExtents = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel) / tcu::UVec2(formatInfo.blockWidth, formatInfo.blockHeight); in getPlaneSizeInBytes()
2748 return deAlign32( formatInfo in getPlaneSizeInBytes()
2751 getPlaneExtent(const PlanarFormatDescription& formatInfo, const VkExtent3D& baseExtents, const deUint32 planeNdx, const deUint32 mipmapLevel) getPlaneExtent() argument
2764 getPlaneExtent(const PlanarFormatDescription& formatInfo, const tcu::UVec2& baseExtents, const deUint32 planeNdx, const deUint32 mipmapLevel) getPlaneExtent() argument
2785 getImageSizeAlignment(const PlanarFormatDescription& formatInfo) getImageSizeAlignment() argument
2801 getBlockExtent(const PlanarFormatDescription& formatInfo) getBlockExtent() argument
2811 getPlaneCompatibleFormat(const PlanarFormatDescription& formatInfo, deUint32 planeNdx) getPlaneCompatibleFormat() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
H A DFramebufferObjectTest.cpp98 for (const FormatInfo &formatInfo : kFormatArrays) in TEST_P()
100 glTexImage2D(GL_TEXTURE_2D, 0, formatInfo[0], 1, 1, 0, formatInfo[1], formatInfo[2], in TEST_P()
/third_party/mesa3d/src/amd/addrlib/src/core/
H A Daddrelemlib.cpp1087 PixelFormatInfo formatInfo; in PixGetExportNorm() local
1089 PixGetColorCompInfo(colorFmt, numberFmt, swap, &formatInfo); in PixGetExportNorm()
1095 if (((formatInfo.compBit[c] > 11) || (formatInfo.numType[c] > ADDR_USCALED)) && in PixGetExportNorm()
1096 (formatInfo.numType[c] != ADDR_U4FLOATC) && in PixGetExportNorm()
1097 (formatInfo.numType[c] != ADDR_S5FLOAT) && in PixGetExportNorm()
1098 (formatInfo.numType[c] != ADDR_S5FLOATM) && in PixGetExportNorm()
1099 (formatInfo.numType[c] != ADDR_U5FLOAT) && in PixGetExportNorm()
1100 (formatInfo.numType[c] != ADDR_U3FLOATM)) in PixGetExportNorm()
1108 if ((formatInfo in PixGetExportNorm()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A Drenderer9_utils.cpp425 const gl::InternalFormat &formatInfo = gl::GetSizedInternalFormatInfo(internalFormat); in GenerateTextureFormatCaps() local
429 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in GenerateTextureFormatCaps()
441 if (textureCaps.texturable && (formatInfo.colorEncoding == GL_SRGB)) in GenerateTextureFormatCaps()
463 if (textureCaps.textureAttachment && (formatInfo.colorEncoding == GL_SRGB)) in GenerateTextureFormatCaps()
470 if ((formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) && in GenerateTextureFormatCaps()
H A Dformatutils9.cpp584 VertexFormat formatInfo; in CreateVertexFormatInfo() local
585 formatInfo.conversionType = identity ? VERTEX_CONVERT_NONE : VERTEX_CONVERT_CPU; in CreateVertexFormatInfo()
586 formatInfo.outputElementSize = elementSize; in CreateVertexFormatInfo()
587 formatInfo.copyFunction = copyFunc; in CreateVertexFormatInfo()
588 formatInfo.nativeFormat = nativeFormat; in CreateVertexFormatInfo()
589 formatInfo.componentType = GetDeclTypeComponentType(nativeFormat); in CreateVertexFormatInfo()
590 return formatInfo; in CreateVertexFormatInfo()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRenderPipeline.cpp123 const VertexFormatInfo& formatInfo = GetVertexFormatInfo(attribute->format); in ValidateVertexAttribute() local
135 ASSERT(kMaxVertexBufferArrayStride >= formatInfo.byteSize); in ValidateVertexAttribute()
137 attribute->offset > kMaxVertexBufferArrayStride - formatInfo.byteSize, in ValidateVertexAttribute()
140 attribute->offset, attribute->format, formatInfo.byteSize, in ValidateVertexAttribute()
148 attribute->offset + formatInfo.byteSize > vertexBufferStride, in ValidateVertexAttribute()
151 attribute->offset, attribute->format, formatInfo.byteSize, vertexBufferStride); in ValidateVertexAttribute()
153 DAWN_INVALID_IF(attribute->offset % std::min(4u, formatInfo.byteSize) != 0, in ValidateVertexAttribute()
155 std::min(4u, formatInfo.byteSize)); in ValidateVertexAttribute()
158 formatInfo.baseType != metadata.vertexInputBaseTypes[location], in ValidateVertexAttribute()
161 formatInfo in ValidateVertexAttribute()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcCompressedFormatTests.cpp1484 const FormatInfo& formatInfo; member in glcts::__anon27555::CompressedFormatTest
1490 , formatInfo(format) in CompressedFormatTest()
1534 const auto image0 = loadImage(archive, formatInfo.internalFormat, 0); in iterate()
1535 const auto image1 = loadImage(archive, formatInfo.internalFormat, 1); in iterate()
1536 const auto image2 = loadImage(archive, formatInfo.internalFormat, 2); in iterate()
1566 const bool hasAlpha = formatInfo.format == GL_RGBA; in iterate()
1567 gl.renderbufferStorage(GL_RENDERBUFFER, bufferFormats[hasAlpha][formatInfo.issRGB], image0.width, image0.height); in iterate()
1597 gl.texImage2D(GL_TEXTURE_2D, 0, formatInfo.sizedFormat, image2.width, image2.height, 0, formatInfo.format, GL_UNSIGNED_BYTE, image2.data.data()); in iterate()
1604 gl.compressedTexImage2D(GL_TEXTURE_2D, 0, formatInfo in iterate()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
H A DvktYCbCrUtil.cpp319 const PlanarFormatDescription& formatInfo = imageData->getDescription(); in fillGradient() local
325 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
991 const vk::PlanarFormatDescription& formatInfo,
995 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx));
997 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx;
998 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits;
999 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes;
1001 const deUint8 sizeBits = formatInfo.channels[channelNdx].sizeBits;
1003 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/
H A DvktYCbCrUtil.cpp319 const PlanarFormatDescription& formatInfo = imageData->getDescription(); in fillGradient() local
325 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
990 const vk::PlanarFormatDescription& formatInfo,
994 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx));
996 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx;
997 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits;
998 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes;
1000 const deUint8 sizeBits = formatInfo.channels[channelNdx].sizeBits;
1002 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/cgl/
H A DIOSurfaceSurfaceCGL.cpp67 const auto &formatInfo = kIOSurfaceFormats[i]; in FindIOSurfaceFormatIndex() local
68 if (formatInfo.internalFormat == internalFormat && formatInfo.type == type) in FindIOSurfaceFormatIndex()

Completed in 30 milliseconds

1234