Home
last modified time | relevance | path

Searched refs:formatInfo (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/third_party/angle/src/libGLESv2/
Dformatutils.cpp279 InternalFormat formatInfo; in UnsizedFormat() local
280 formatInfo.format = format; in UnsizedFormat()
281 formatInfo.textureSupport = textureSupport; in UnsizedFormat()
282 formatInfo.renderSupport = renderSupport; in UnsizedFormat()
283 formatInfo.filterSupport = filterSupport; in UnsizedFormat()
284 return formatInfo; in UnsizedFormat()
293 InternalFormat formatInfo; in RGBAFormat() local
294 formatInfo.redBits = red; in RGBAFormat()
295 formatInfo.greenBits = green; in RGBAFormat()
296 formatInfo.blueBits = blue; in RGBAFormat()
[all …]
DFramebuffer.cpp408 const InternalFormat &formatInfo = GetInternalFormatInfo(internalformat); in completeness() local
416 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in completeness()
423 … if (!formatCaps.renderable || formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in completeness()
448 if (formatInfo.pixelBytes != colorbufferSize) in completeness()
472 colorbufferSize = formatInfo.pixelBytes; in completeness()
488 const InternalFormat &formatInfo = GetInternalFormatInfo(internalformat); in completeness() local
503 if (formatInfo.depthBits == 0) in completeness()
510 if (!formatCaps.renderable || formatInfo.depthBits == 0) in completeness()
543 const InternalFormat &formatInfo = GetInternalFormatInfo(internalformat); in completeness() local
559 if (formatInfo.stencilBits == 0) in completeness()
[all …]
DvalidationES3.cpp223 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in ValidateTexImageFormatCombination() local
224 if (!formatInfo.textureSupport(context->getClientVersion(), context->getExtensions())) in ValidateTexImageFormatCombination()
662 const EffectiveInternalFormatInfo& formatInfo = list->at(curFormat); in GetEffectiveInternalFormat() local
663 if ((formatInfo.mDestFormat == targetFormat) && in GetEffectiveInternalFormat()
664 …(formatInfo.mMinRedBits <= srcFormat.redBits && formatInfo.mMaxRedBits >= srcFormat.redBits)… in GetEffectiveInternalFormat()
665 …(formatInfo.mMinGreenBits <= srcFormat.greenBits && formatInfo.mMaxGreenBits >= srcFormat.greenBit… in GetEffectiveInternalFormat()
666 …(formatInfo.mMinBlueBits <= srcFormat.blueBits && formatInfo.mMaxBlueBits >= srcFormat.blueBits… in GetEffectiveInternalFormat()
667 …(formatInfo.mMinAlphaBits <= srcFormat.alphaBits && formatInfo.mMaxAlphaBits >= srcFormat.alphaBit… in GetEffectiveInternalFormat()
669 *outEffectiveFormat = formatInfo.mEffectiveFormat; in GetEffectiveInternalFormat()
1009 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in ValidateES3TexStorageParameters() local
[all …]
DvalidationES.cpp195 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in ValidCompressedImageSize() local
196 if (!formatInfo.compressed) in ValidCompressedImageSize()
201 …if (width < 0 || (static_cast<GLuint>(width) > formatInfo.compressedBlockWidth && width % form… in ValidCompressedImageSize()
202 …height < 0 || (static_cast<GLuint>(height) > formatInfo.compressedBlockHeight && height % formatIn… in ValidCompressedImageSize()
307 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in ValidateRenderbufferStorageParameters() local
308 if (!formatInfo.textureSupport(context->getClientVersion(), context->getExtensions())) in ValidateRenderbufferStorageParameters()
318 if (formatInfo.pixelBytes == 0) in ValidateRenderbufferStorageParameters()
324 …if ((formatInfo.componentType == GL_UNSIGNED_INT || formatInfo.componentType == GL_INT) && samples… in ValidateRenderbufferStorageParameters()
1350 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in ValidateCopyTexImageParametersBase() local
1352 if (formatInfo.depthBits > 0) in ValidateCopyTexImageParametersBase()
[all …]
DContext.cpp732 const InternalFormat &formatInfo = GetInternalFormatInfo(internalformat); in setRenderbufferStorage() local
733 if (formatInfo.depthBits > 0 && formatInfo.stencilBits > 0) in setRenderbufferStorage()
737 else if (formatInfo.depthBits > 0) in setRenderbufferStorage()
741 else if (formatInfo.stencilBits > 0) in setRenderbufferStorage()
2263 const InternalFormat &formatInfo = GetInternalFormatInfo(format); in initCaps() local
2264 if (formatCaps.texturable && formatInfo.textureSupport(clientVersion, mExtensions)) in initCaps()
2267 formatCaps.renderable = formatInfo.renderSupport(clientVersion, mExtensions); in initCaps()
2268 formatCaps.filterable = formatInfo.filterSupport(clientVersion, mExtensions); in initCaps()
2271 if (formatInfo.componentType == GL_INT || formatInfo.componentType == GL_UNSIGNED_INT) in initCaps()
2277 if (formatInfo.compressed) in initCaps()
DvalidationES2.cpp783 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in ValidateES2TexStorageParameters() local
784 if (formatInfo.format == GL_NONE || formatInfo.type == GL_NONE) in ValidateES2TexStorageParameters()
DTexture.cpp336 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(getInternalFormat(0)); in isSamplerComplete() local
337 if (formatInfo.depthBits > 0 && clientVersion > 2) in isSamplerComplete()
DlibGLESv2.cpp757 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in glCompressedTexImage2D() local
758 …if (imageSize < 0 || static_cast<GLuint>(imageSize) != formatInfo.computeBlockSize(GL_UNSIGNED_BYT… in glCompressedTexImage2D()
817 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(format); in glCompressedTexSubImage2D() local
818 …if (imageSize < 0 || static_cast<GLuint>(imageSize) != formatInfo.computeBlockSize(GL_UNSIGNED_BYT… in glCompressedTexSubImage2D()
1652 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in glGenerateMipmap() local
1666 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0 || !formatCaps.filterable || in glGenerateMipmap()
1667 (!formatCaps.renderable && !isLUMA) || formatInfo.compressed) in glGenerateMipmap()
1674 if (context->getClientVersion() == 2 && formatInfo.colorEncoding == GL_SRGB) in glGenerateMipmap()
5127 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in glCompressedTexImage3D() local
5128 …if (imageSize < 0 || static_cast<GLuint>(imageSize) != formatInfo.computeBlockSize(GL_UNSIGNED_BYT… in glCompressedTexImage3D()
[all …]
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d11/
DClear11.cpp220 … const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(attachment->getInternalFormat()); in clearFramebuffer() local
223 …!(formatInfo.componentType == GL_FLOAT || formatInfo.componentType == GL_UNSIGNED_NORMALIZED || fo… in clearFramebuffer()
230 if ((formatInfo.redBits == 0 || !clearParams.colorMaskRed) && in clearFramebuffer()
231 (formatInfo.greenBits == 0 || !clearParams.colorMaskGreen) && in clearFramebuffer()
232 (formatInfo.blueBits == 0 || !clearParams.colorMaskBlue) && in clearFramebuffer()
233 (formatInfo.alphaBits == 0 || !clearParams.colorMaskAlpha)) in clearFramebuffer()
239 (formatInfo.redBits > 0 && !clearParams.colorMaskRed) || in clearFramebuffer()
240 (formatInfo.greenBits > 0 && !clearParams.colorMaskGreen) || in clearFramebuffer()
241 (formatInfo.blueBits > 0 && !clearParams.colorMaskBlue) || in clearFramebuffer()
242 (formatInfo.alphaBits > 0 && !clearParams.colorMaskAlpha)) in clearFramebuffer()
[all …]
DRenderTarget11.cpp281 const d3d11::TextureFormat &formatInfo = d3d11::GetTextureFormatInfo(internalFormat); in RenderTarget11() local
282 const d3d11::DXGIFormat &dxgiFormatInfo = d3d11::GetDXGIFormatInfo(formatInfo.texFormat); in RenderTarget11()
295 desc.Format = formatInfo.texFormat; in RenderTarget11()
306 bindRTV = (formatInfo.rtvFormat != DXGI_FORMAT_UNKNOWN); in RenderTarget11()
307 bindDSV = (formatInfo.dsvFormat != DXGI_FORMAT_UNKNOWN); in RenderTarget11()
308 if (formatInfo.srvFormat != DXGI_FORMAT_UNKNOWN) in RenderTarget11()
313 bindSRV = !(formatInfo.dsvFormat != DXGI_FORMAT_UNKNOWN && desc.SampleDesc.Count > 1); in RenderTarget11()
335 srvDesc.Format = formatInfo.srvFormat; in RenderTarget11()
353 dsvDesc.Format = formatInfo.dsvFormat; in RenderTarget11()
372 rtvDesc.Format = formatInfo.rtvFormat; in RenderTarget11()
[all …]
DTextureStorage11.cpp129 const d3d11::TextureFormat &formatInfo = d3d11::GetTextureFormatInfo(internalFormat); in GetTextureBindFlags() local
130 if (formatInfo.srvFormat != DXGI_FORMAT_UNKNOWN) in GetTextureBindFlags()
134 if (formatInfo.dsvFormat != DXGI_FORMAT_UNKNOWN) in GetTextureBindFlags()
138 if (formatInfo.rtvFormat != DXGI_FORMAT_UNKNOWN && renderTarget) in GetTextureBindFlags()
431 …const d3d11::TextureFormat &formatInfo = d3d11::GetTextureFormatInfo(dxgiFormatInfo.internalFormat… in TextureStorage11_2D() local
432 mSwizzleTextureFormat = formatInfo.swizzleTexFormat; in TextureStorage11_2D()
433 mSwizzleShaderResourceFormat = formatInfo.swizzleSRVFormat; in TextureStorage11_2D()
434 mSwizzleRenderTargetFormat = formatInfo.swizzleRTVFormat; in TextureStorage11_2D()
453 const d3d11::TextureFormat &formatInfo = d3d11::GetTextureFormatInfo(internalformat); in TextureStorage11_2D() local
454 mTextureFormat = formatInfo.texFormat; in TextureStorage11_2D()
[all …]
DImage11.cpp224 const d3d11::TextureFormat &formatInfo = d3d11::GetTextureFormatInfo(internalformat); in redefine() local
225 const d3d11::DXGIFormat &dxgiFormatInfo = d3d11::GetDXGIFormatInfo(formatInfo.texFormat); in redefine()
226 mDXGIFormat = formatInfo.texFormat; in redefine()
228 mRenderable = (formatInfo.rtvFormat != DXGI_FORMAT_UNKNOWN); in redefine()
231 mDirty = (formatInfo.dataInitializerFunction != NULL); in redefine()
253 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(mInternalFormat); in loadData() local
254 GLsizei inputRowPitch = formatInfo.computeRowPitch(type, width, unpackAlignment); in loadData()
255 GLsizei inputDepthPitch = formatInfo.computeDepthPitch(type, width, height, unpackAlignment); in loadData()
282 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(mInternalFormat); in loadCompressedData() local
283 GLsizei inputRowPitch = formatInfo.computeRowPitch(GL_UNSIGNED_BYTE, width, 1); in loadCompressedData()
[all …]
Drenderer11_utils.cpp232 const d3d11::TextureFormat &formatInfo = d3d11::GetTextureFormatInfo(internalFormat); in GenerateTextureFormatCaps() local
235 if (SUCCEEDED(device->CheckFormatSupport(formatInfo.texFormat, &formatSupport))) in GenerateTextureFormatCaps()
237 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in GenerateTextureFormatCaps() local
238 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in GenerateTextureFormatCaps()
250 if (SUCCEEDED(device->CheckFormatSupport(formatInfo.renderFormat, &formatSupport)) && in GenerateTextureFormatCaps()
256 …if (SUCCEEDED(device->CheckMultisampleQualityLevels(formatInfo.renderFormat, sampleCount, &quality… in GenerateTextureFormatCaps()
264 …textureCaps.filterable = SUCCEEDED(device->CheckFormatSupport(formatInfo.srvFormat, &formatSupport… in GenerateTextureFormatCaps()
266 …textureCaps.renderable = (SUCCEEDED(device->CheckFormatSupport(formatInfo.rtvFormat, &formatSuppor… in GenerateTextureFormatCaps()
268 … (SUCCEEDED(device->CheckFormatSupport(formatInfo.dsvFormat, &formatSupport)) && in GenerateTextureFormatCaps()
Dformatutils11.cpp659 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in InsertD3D11FormatInfo() local
660 if (internalFormat != GL_NONE && formatInfo.pixelBytes > 0) in InsertD3D11FormatInfo()
662 if (formatInfo.componentCount != 4 || texFormat == DXGI_FORMAT_UNKNOWN || in InsertD3D11FormatInfo()
667 if (formatInfo.compressed) in InsertD3D11FormatInfo()
669 unsigned int compressedBitsPerBlock = formatInfo.pixelBytes * 8; in InsertD3D11FormatInfo()
670 … unsigned int blockSize = formatInfo.compressedBlockWidth * formatInfo.compressedBlockHeight; in InsertD3D11FormatInfo()
675 maxBits = std::max(maxBits, formatInfo.alphaBits); in InsertD3D11FormatInfo()
676 maxBits = std::max(maxBits, formatInfo.redBits); in InsertD3D11FormatInfo()
677 maxBits = std::max(maxBits, formatInfo.greenBits); in InsertD3D11FormatInfo()
678 maxBits = std::max(maxBits, formatInfo.blueBits); in InsertD3D11FormatInfo()
[all …]
/external/icu/icu4c/source/i18n/
Dwinnmfmt.cpp295 FormatInfo formatInfo; in format() local
297 formatInfo = *fFormatInfo; in format()
302 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
306 formatInfo.currency.Grouping = 0; in format()
309 … result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
315 … int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); in format()
319 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
324 formatInfo.number.NumDigits = (UINT) numDigits; in format()
328 formatInfo.number.Grouping = 0; in format()
331 result = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, STACK_BUFFER_SIZE); in format()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Dwinnmfmt.cpp295 FormatInfo formatInfo; in format() local
297 formatInfo = *fFormatInfo; in format()
302 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
306 formatInfo.currency.Grouping = 0; in format()
309 … result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
315 … int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); in format()
319 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
324 formatInfo.number.NumDigits = (UINT) numDigits; in format()
328 formatInfo.number.Grouping = 0; in format()
331 result = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, STACK_BUFFER_SIZE); in format()
[all …]
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d9/
DRenderTarget9.cpp60 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in RenderTarget9() local
61 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in RenderTarget9()
Dformatutils9.cpp490 VertexFormat formatInfo; in CreateVertexFormatInfo() local
491 formatInfo.conversionType = identity ? VERTEX_CONVERT_NONE : VERTEX_CONVERT_CPU; in CreateVertexFormatInfo()
492 formatInfo.outputElementSize = elementSize; in CreateVertexFormatInfo()
493 formatInfo.copyFunction = copyFunc; in CreateVertexFormatInfo()
494 formatInfo.nativeFormat = nativeFormat; in CreateVertexFormatInfo()
495 formatInfo.componentType = GetDeclTypeComponentType(nativeFormat); in CreateVertexFormatInfo()
496 return formatInfo; in CreateVertexFormatInfo()
DTextureStorage9.cpp45 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalformat); in GetTextureUsage() local
47 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in GetTextureUsage()
DImage9.cpp390 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(mInternalFormat); in loadData() local
391 GLsizei inputRowPitch = formatInfo.computeRowPitch(type, width, unpackAlignment); in loadData()
422 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(mInternalFormat); in loadCompressedData() local
423 GLsizei inputRowPitch = formatInfo.computeRowPitch(GL_UNSIGNED_BYTE, width, 1); in loadCompressedData()
424 GLsizei inputDepthPitch = formatInfo.computeDepthPitch(GL_UNSIGNED_BYTE, width, height, 1); in loadCompressedData()
Drenderer9_utils.cpp277 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in GenerateTextureFormatCaps() local
278 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in GenerateTextureFormatCaps()
DRenderer9.cpp821 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat); in setBlendState() local
822 … DWORD colorMask = gl_d3d9::ConvertColorMask(formatInfo.redBits > 0 && blendState.colorMaskRed, in setBlendState()
823formatInfo.greenBits > 0 && blendState.colorMaskGreen, in setBlendState()
824formatInfo.blueBits > 0 && blendState.colorMaskBlue, in setBlendState()
825formatInfo.alphaBits > 0 && blendState.colorMaskAlpha); in setBlendState()
1843 … const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(attachment->getInternalFormat()); in clear() local
1846 …color = D3DCOLOR_ARGB(gl::unorm<8>((formatInfo.alphaBits == 0 && actualFormatInfo.alphaBits > 0) ?… in clear()
1847 …gl::unorm<8>((formatInfo.redBits == 0 && actualFormatInfo.redBits > 0) ? 0.0f : clearParams.co… in clear()
1848 …gl::unorm<8>((formatInfo.greenBits == 0 && actualFormatInfo.greenBits > 0) ? 0.0f : clearParams.co… in clear()
1849 …gl::unorm<8>((formatInfo.blueBits == 0 && actualFormatInfo.blueBits > 0) ? 0.0f : clearParams.co… in clear()
[all …]
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/
DTextureD3D.cpp1817 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(sizedInternalFormat); in setImage() local
1818 GLsizei inputDepthPitch = formatInfo.computeDepthPitch(type, width, height, unpack.alignment); in setImage()
1834 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(format); in setCompressedImage() local
1835 GLsizei inputDepthPitch = formatInfo.computeDepthPitch(GL_UNSIGNED_BYTE, width, height, 1); in setCompressedImage()
1848 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(getInternalFormat(level)); in subImage() local
1849 GLsizei inputDepthPitch = formatInfo.computeDepthPitch(type, width, height, unpack.alignment); in subImage()
1868 const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(format); in subImageCompressed() local
1869 GLsizei inputDepthPitch = formatInfo.computeDepthPitch(GL_UNSIGNED_BYTE, width, height, 1); in subImageCompressed()