Home
last modified time | relevance | path

Searched refs:internalFormat (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dformat_map_autogen.cpp649 bool ValidES3FormatCombination(GLenum format, GLenum type, GLenum internalFormat) in ValidES3FormatCombination() argument
660 switch (internalFormat) in ValidES3FormatCombination()
672 switch (internalFormat) in ValidES3FormatCombination()
684 switch (internalFormat) in ValidES3FormatCombination()
696 switch (internalFormat) in ValidES3FormatCombination()
716 switch (internalFormat) in ValidES3FormatCombination()
730 switch (internalFormat) in ValidES3FormatCombination()
741 switch (internalFormat) in ValidES3FormatCombination()
760 switch (internalFormat) in ValidES3FormatCombination()
771 switch (internalFormat) in ValidES3FormatCombination()
[all …]
Dformatutils.h209 GLenum internalFormat; member
255 explicit Format(GLenum internalFormat);
258 explicit Format(const InternalFormat &internalFormat);
259 Format(GLenum internalFormat, GLenum type);
276 const InternalFormat &GetSizedInternalFormatInfo(GLenum internalFormat);
277 const InternalFormat &GetInternalFormatInfo(GLenum internalFormat, GLenum type);
281 GLenum GetUnsizedFormat(GLenum internalFormat);
284 bool CompressedFormatRequiresWholeImage(GLenum internalFormat);
300 ANGLE_INLINE int GetNativeVisualID(const InternalFormat &internalFormat) in GetNativeVisualID() argument
305 angle::android::GLInternalFormatToNativePixelFormat(internalFormat.internalFormat); in GetNativeVisualID()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_format.c1109 st_choose_format(struct st_context *st, GLenum internalFormat, in st_choose_format() argument
1121 if (_mesa_is_compressed_format(st->ctx, internalFormat) in st_choose_format()
1131 if (_mesa_is_enum_format_unsized(internalFormat) && format != 0 && in st_choose_format()
1140 internalFormat) { in st_choose_format()
1152 if (internalFormat == GL_RGB) in st_choose_format()
1153 internalFormat = GL_RGB10; in st_choose_format()
1154 else if (internalFormat == GL_RGBA) in st_choose_format()
1155 internalFormat = GL_RGB10_A2; in st_choose_format()
1159 if (internalFormat == GL_RGB) in st_choose_format()
1160 internalFormat = GL_RGB5; in st_choose_format()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DFormat.cpp163 Format internalFormat; in BuildFormatTable() local
164 internalFormat.format = format; in BuildFormatTable()
165 internalFormat.isRenderable = renderable; in BuildFormatTable()
166 internalFormat.isCompressed = false; in BuildFormatTable()
167 internalFormat.isSupported = true; in BuildFormatTable()
168 internalFormat.supportsStorageUsage = supportsStorageUsage; in BuildFormatTable()
169 internalFormat.aspects = Aspect::Color; in BuildFormatTable()
170 internalFormat.componentCount = componentCount; in BuildFormatTable()
171 AspectInfo* firstAspect = internalFormat.aspectInfo.data(); in BuildFormatTable()
196 AddFormat(internalFormat); in BuildFormatTable()
[all …]
/third_party/mesa3d/src/mesa/main/
Dglformats.c832 is_astc_2d_format(GLenum internalFormat) in is_astc_2d_format() argument
834 switch (internalFormat) { in is_astc_2d_format()
873 is_astc_3d_format(GLenum internalFormat) in is_astc_3d_format() argument
875 switch (internalFormat) { in is_astc_3d_format()
906 _mesa_is_astc_format(GLenum internalFormat) in _mesa_is_astc_format() argument
908 return is_astc_2d_format(internalFormat) || in _mesa_is_astc_format()
909 is_astc_3d_format(internalFormat); in _mesa_is_astc_format()
916 _mesa_is_etc2_format(GLenum internalFormat) in _mesa_is_etc2_format() argument
918 switch (internalFormat) { in _mesa_is_etc2_format()
1344 _mesa_has_depth_float_channel(GLenum internalFormat) in _mesa_has_depth_float_channel() argument
[all …]
Dteximage.c828 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields_ms() argument
832 const GLint base_format =_mesa_base_tex_format(ctx, internalFormat); in _mesa_init_teximage_fields_ms()
842 img->InternalFormat = internalFormat; in _mesa_init_teximage_fields_ms()
935 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields() argument
939 internalFormat, format, 0, GL_TRUE); in _mesa_init_teximage_fields()
1682 GLenum target, GLenum internalFormat) in _mesa_legal_texture_base_format_for_target() argument
1684 if (_mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_COMPONENT in _mesa_legal_texture_base_format_for_target()
1685 || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL in _mesa_legal_texture_base_format_for_target()
1686 || _mesa_base_tex_format(ctx, internalFormat) == GL_STENCIL_INDEX) { in _mesa_legal_texture_base_format_for_target()
1729 texture_formats_agree(GLenum internalFormat, in texture_formats_agree() argument
[all …]
Dtexcompress_cpal.c109 _mesa_cpal_compressed_size(int level, GLenum internalFormat, in _mesa_cpal_compressed_size() argument
117 if (internalFormat < GL_PALETTE4_RGB8_OES in _mesa_cpal_compressed_size()
118 || internalFormat > GL_PALETTE8_RGB5_A1_OES) { in _mesa_cpal_compressed_size()
122 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES]; in _mesa_cpal_compressed_size()
123 assert(info->cpal_format == internalFormat); in _mesa_cpal_compressed_size()
150 GLenum internalFormat, in _mesa_cpal_compressed_teximage2d() argument
162 assert(internalFormat >= GL_PALETTE4_RGB8_OES in _mesa_cpal_compressed_teximage2d()
163 && internalFormat <= GL_PALETTE8_RGB5_A1_OES); in _mesa_cpal_compressed_teximage2d()
165 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES]; in _mesa_cpal_compressed_teximage2d()
Dexternalobjects.c332 GLenum internalFormat, GLsizei width, GLsizei height, in texstorage_memory() argument
354 if (!_mesa_is_legal_tex_storage_format(ctx, internalFormat)) { in texstorage_memory()
357 _mesa_enum_to_string(internalFormat)); in texstorage_memory()
370 levels, internalFormat, in texstorage_memory()
376 GLenum internalFormat, GLsizei width, GLsizei height, in texstorage_memory_ms() argument
399 internalFormat, width, height, depth, in texstorage_memory_ms()
408 GLenum internalFormat, GLsizei width, GLsizei height, in texturestorage_memory() argument
423 if (!_mesa_is_legal_tex_storage_format(ctx, internalFormat)) { in texturestorage_memory()
426 _mesa_enum_to_string(internalFormat)); in texturestorage_memory()
446 levels, internalFormat, in texturestorage_memory()
[all …]
Drenderbuffer.c46 GLenum internalFormat, unsigned sample_count, in choose_renderbuffer_format() argument
50 if (_mesa_is_depth_or_stencil_format(internalFormat)) in choose_renderbuffer_format()
54 return st_choose_format(st_context(ctx), internalFormat, GL_NONE, GL_NONE, in choose_renderbuffer_format()
89 GLenum internalFormat, in renderbuffer_alloc_sw_storage() argument
98 if (internalFormat == GL_RGBA16_SNORM) { in renderbuffer_alloc_sw_storage()
107 format = choose_renderbuffer_format(ctx, internalFormat, 0, 0); in renderbuffer_alloc_sw_storage()
133 GLenum internalFormat, in renderbuffer_alloc_storage() argument
144 rb->_BaseFormat = _mesa_base_fbo_format(ctx, internalFormat); in renderbuffer_alloc_storage()
148 return renderbuffer_alloc_sw_storage(ctx, rb, internalFormat, in renderbuffer_alloc_storage()
163 internalFormat = _mesa_get_linear_internalformat(internalFormat); in renderbuffer_alloc_storage()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fTextureLevelStateQueryTests.cpp130 glw::GLenum internalFormat; member
138 , internalFormat (GL_RGBA) in TextureLevelSpec()
278 static bool isColorRenderableFormat (glw::GLenum internalFormat) in isColorRenderableFormat() argument
280 return internalFormat == GL_RGB565 || in isColorRenderableFormat()
281 internalFormat == GL_RGBA4 || in isColorRenderableFormat()
282 internalFormat == GL_RGB5_A1 || in isColorRenderableFormat()
283 internalFormat == GL_RGB10_A2 || in isColorRenderableFormat()
284 internalFormat == GL_RGB10_A2UI || in isColorRenderableFormat()
285 internalFormat == GL_SRGB8_ALPHA8 || in isColorRenderableFormat()
286 internalFormat == GL_R8 || in isColorRenderableFormat()
[all …]
Des31fTextureFormatTests.cpp99 …& renderCtxInfo, const char* name, const char* description, deUint32 internalFormat, int size, int…
140 …& renderCtxInfo, const char* name, const char* description, deUint32 internalFormat, int size, int… in TextureCubeArrayFormatCase() argument
144 , m_format (internalFormat) in TextureCubeArrayFormatCase()
277 …Context& renderCtx, const char* name, const char* description, deUint32 internalFormat, int width);
298 …rContext& renderCtx, const char* name, const char* description, deUint32 internalFormat, int width) in TextureBufferFormatCase() argument
301 , m_format (internalFormat) in TextureBufferFormatCase()
470 deUint32 internalFormat; in init() member
529 deUint32 internalFormat; in init() member
542 deUint32 internalFormat = sizedColorFormats[formatNdx].internalFormat; in init() local
544 string descriptionBase = glu::getTextureFormatName(internalFormat); in init()
[all …]
Des31fTextureSpecificationTests.cpp323 …Case (Context& context, const char* name, const char* desc, deUint32 internalFormat, int size, int… in BasicTexImageCubeArrayCase() argument
324 …: TextureCubeArraySpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, n… in BasicTexImageCubeArrayCase()
325 , m_internalFormat (internalFormat) in BasicTexImageCubeArrayCase()
361 …Case (Context& context, const char* name, const char* desc, deUint32 internalFormat, int size, int… in BasicTexStorageCubeArrayCase() argument
362 …: TextureCubeArraySpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, n… in BasicTexStorageCubeArrayCase()
363 , m_internalFormat (internalFormat) in BasicTexStorageCubeArrayCase()
406 deUint32 internalFormat, in TexImageCubeArrayBufferCase() argument
416 …: TextureCubeArraySpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, d… in TexImageCubeArrayBufferCase()
417 , m_internalFormat (internalFormat) in TexImageCubeArrayBufferCase()
487 deUint32 internalFormat, in TexSubImageCubeArrayBufferCase() argument
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DD3D11FormatTablesTest.cpp51 for (GLenum internalFormat : allFormats) in TEST_P() local
54 rx::d3d11::Format::Get(internalFormat, renderer->getRenderer11DeviceCaps()); in TEST_P()
55 const auto &textureInfo = textureCaps.get(internalFormat); in TEST_P()
59 gl::GetSizedInternalFormatInfo(internalFormat); in TEST_P()
74 EXPECT_EQ(textureable, textureInfo.texturable) << " for " << gl::FmtHex(internalFormat); in TEST_P()
83 << " for " << gl::FmtHex(internalFormat); in TEST_P()
84 EXPECT_EQ(expectedMipGen, actualMipGen) << " for " << gl::FmtHex(internalFormat); in TEST_P()
92 EXPECT_EQ(filterable, textureInfo.filterable) << " for " << gl::FmtHex(internalFormat); in TEST_P()
108 << " for " << gl::FmtHex(internalFormat); in TEST_P()
120 << " for " << gl::FmtHex(internalFormat); in TEST_P()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
Dformatutilsgl.h64 const InternalFormat &GetInternalFormatInfo(GLenum internalFormat, StandardGL standard);
68 GLenum internalFormat = GL_NONE; member
74 GLenum internalFormat,
90 GLenum internalFormat = GL_NONE; member
94 GLenum internalFormat);
106 GLenum internalFormat = GL_NONE; member
110 GLenum internalFormat,
115 GLenum internalFormat = GL_NONE; member
119 GLenum internalFormat);
123 GLenum internalFormat = GL_NONE; member
[all …]
Dformatutilsgl.cpp134 GLenum internalFormat, in InsertFormatMapping() argument
153 map->insert(std::make_pair(internalFormat, formatInfo)); in InsertFormatMapping()
436 const InternalFormat &GetInternalFormatInfo(GLenum internalFormat, StandardGL standard) in GetInternalFormatInfo() argument
439 InternalFormatInfoMap::const_iterator iter = formatMap.find(internalFormat); in GetInternalFormatInfo()
477 static const gl::InternalFormat &EmulateLUMA(const gl::InternalFormat &internalFormat) in EmulateLUMA() argument
479 ASSERT(IsLUMAFormat(internalFormat.format)); in EmulateLUMA()
483 return gl::GetInternalFormatInfo(EmulateLUMAFormat(internalFormat.format), internalFormat.type); in EmulateLUMA()
488 const gl::InternalFormat &internalFormat) in GetNativeInternalFormat() argument
490 GLenum result = internalFormat.internalFormat; in GetNativeInternalFormat()
497 result = internalFormat.sizedInternalFormat; in GetNativeInternalFormat()
[all …]
DTextureGL.cpp71 bool GetEmulatedAlphaChannel(const angle::FeaturesGL &features, GLenum internalFormat) in GetEmulatedAlphaChannel() argument
74 internalFormat == GL_COMPRESSED_RGB_S3TC_DXT1_EXT; in GetEmulatedAlphaChannel()
162 GLenum internalFormat, in setImage() argument
181 reserveTexImageToBeFilled(context, target, level, internalFormat, size, format, type)); in setImage()
204 ANGLE_TRY(reserveTexImageToBeFilled(context, target, level, internalFormat, size, in setImage()
218 ANGLE_TRY(setImageHelper(context, target, level, internalFormat, size, format, type, pixels)); in setImage()
226 GLenum internalFormat, in setImageHelper() argument
239 nativegl::GetTexImageFormat(functions, features, internalFormat, format, type); in setImageHelper()
254 static_cast<GLint>(level), texImageFormat.internalFormat, in setImageHelper()
263 texImageFormat.internalFormat, size.width, size.height, in setImageHelper()
[all …]
/third_party/vk-gl-cts/framework/opengl/simplereference/
DsglrContext.cpp35 void Context::texImage2D (deUint32 target, int level, deUint32 internalFormat, const tcu::Surface& … in texImage2D() argument
39 …texImage2D(target, level, internalFormat, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, src.getAcce… in texImage2D()
42 void Context::texImage2D (deUint32 target, int level, deUint32 internalFormat, int width, int heigh… in texImage2D() argument
47 switch (internalFormat) in texImage2D()
54 format = internalFormat; in texImage2D()
60 …glu::TransferFormat transferFmt = glu::getTransferFormat(glu::mapGLInternalFormat(internalFormat)); in texImage2D()
67 texImage2D(target, level, internalFormat, width, height, 0, format, dataType, DE_NULL); in texImage2D()
DsglrContextWrapper.cpp119 void ContextWrapper::glTexImage1D (deUint32 target, int level, int internalFormat, int width, int b… in glTexImage1D() argument
121 m_curCtx->texImage1D(target, level, (deUint32)internalFormat, width, border, format, type, data); in glTexImage1D()
124 void ContextWrapper::glTexImage2D (deUint32 target, int level, int internalFormat, int width, int h… in glTexImage2D() argument
126 …m_curCtx->texImage2D(target, level, (deUint32)internalFormat, width, height, border, format, type,… in glTexImage2D()
129 void ContextWrapper::glTexImage3D (deUint32 target, int level, int internalFormat, int width, int h… in glTexImage3D() argument
131 …m_curCtx->texImage3D(target, level, (deUint32)internalFormat, width, height, depth, border, format… in glTexImage3D()
149 void ContextWrapper::glCopyTexImage1D (deUint32 target, int level, deUint32 internalFormat, int x, … in glCopyTexImage1D() argument
151 m_curCtx->copyTexImage1D(target, level, internalFormat, x, y, width, border); in glCopyTexImage1D()
154 void ContextWrapper::glCopyTexImage2D (deUint32 target, int level, deUint32 internalFormat, int x, … in glCopyTexImage2D() argument
156 m_curCtx->copyTexImage2D(target, level, internalFormat, x, y, width, height, border); in glCopyTexImage2D()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
Dtexture_format_table.h36 inline constexpr Format(GLenum internalFormat,
47 static const Format &Get(GLenum internalFormat, const Renderer11DeviceCaps &deviceCaps);
53 GLenum internalFormat; member
70 : internalFormat(GL_NONE), in Format()
82 constexpr Format::Format(GLenum internalFormat, in Format() argument
92 : internalFormat(internalFormat), in Format()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fInternalFormatQueryTests.cpp47 …SamplesCase(Context& context, const char* name, const char* description, GLenum internalFormat, bo… in SamplesCase() argument
49 , m_internalFormat (internalFormat) in SamplesCase()
128 …sBufferSizeCase(Context& context, const char* name, const char* description, GLenum internalFormat) in SamplesBufferSizeCase() argument
130 , m_internalFormat (internalFormat) in SamplesBufferSizeCase()
224 const InternalFormat internalFormat = internalFormats[ndx]; in init() local
226 …text, (std::string(internalFormat.name) + "_samples").c_str(), "SAMPLES and NUM_SAMPLE_COUNTS", in… in init()
Des3fTextureSpecificationTests.cpp66 tcu::TextureFormat mapGLUnsizedInternalFormat (deUint32 internalFormat) in mapGLUnsizedInternalFormat() argument
69 switch (internalFormat) in mapGLUnsizedInternalFormat()
77 …lError(string("Can't map GL unsized internal format (") + tcu::toHex(internalFormat).toString() + … in mapGLUnsizedInternalFormat()
646 …BasicTexImage2DCase (Context& context, const char* name, const char* desc, deUint32 internalFormat in BasicTexImage2DCase() argument
647 …: Texture2DSpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), width, height,… in BasicTexImage2DCase()
648 , m_internalFormat (internalFormat) in BasicTexImage2DCase()
701 …eCubeCase (Context& context, const char* name, const char* desc, deUint32 internalFormat, int size) in BasicTexImageCubeCase() argument
702 …: TextureCubeSpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, deLog2… in BasicTexImageCubeCase()
703 , m_internalFormat (internalFormat) in BasicTexImageCubeCase()
750 …Case (Context& context, const char* name, const char* desc, deUint32 internalFormat, int width, in… in BasicTexImage2DArrayCase() argument
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DGenerateMipmapPerf.cpp35 internalFormat = GL_RGBA; in GenerateMipmapParams()
45 GLenum internalFormat; member
66 if (internalFormat == GL_RGB) in story()
160 glTexImage2D(GL_TEXTURE_2D, 0, params.internalFormat, params.textureWidth, params.textureHeight, in initializeBenchmark()
161 0, params.internalFormat, GL_UNSIGNED_BYTE, mTextureData.data()); in initializeBenchmark()
222 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 1, 1, params.internalFormat, GL_UNSIGNED_BYTE, in drawBenchmark()
250 glTexImage2D(GL_TEXTURE_2D, 0, params.internalFormat, params.textureWidth, params.textureHeight, in drawBenchmark()
251 0, params.internalFormat, GL_UNSIGNED_BYTE, mTextureData.data()); in drawBenchmark()
312 params.internalFormat = GL_RGB; in VulkanParams()
/third_party/vk-gl-cts/framework/opengl/
DgluTexture.hpp47 Texture1D (const RenderContext& context, deUint32 internalFormat, int width);
74 Texture2D (const RenderContext& context, deUint32 internalFormat, int width, int height);
106 …ImmutableTexture2D (const RenderContext& context, deUint32 internalFormat, int width, int height);
127 TextureCube (const RenderContext& context, deUint32 internalFormat, int size);
162 …Texture2DArray (const RenderContext& context, deUint32 internalFormat, int width, int height, in…
196 …Texture1DArray (const RenderContext& context, deUint32 internalFormat, int width, int numLayers);
225 …Texture3D (const RenderContext& context, deUint32 internalFormat, int width, int height, int dep…
258 … TextureCubeArray (const RenderContext& context, deUint32 internalFormat, int size, int numLayers);
287 TextureBuffer (const RenderContext& context, deUint32 internalFormat, size_t bufferSize);
288 …TextureBuffer (const RenderContext& context, deUint32 internalFormat, size_t bufferSize, size_t o…
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp249 const FloatFormat& internalFormat, in calcUnnormalizedCoordRange() argument
258 coordInterval = internalFormat.roundOut(coordInterval, false); in calcUnnormalizedCoordRange()
261 unnormalizedCoordInterval = internalFormat.roundOut(unnormalizedCoordInterval, false); in calcUnnormalizedCoordRange()
619 const de::SharedPtr<FloatFormat>& internalFormat, in convertFP16() argument
624 const Interval fpInterval = internalFormat->roundOut(Interval(fp16.asDouble()), false); in convertFP16()
633 const de::SharedPtr<tcu::FloatFormat>& internalFormat, in convertNormalizedInt() argument
648 Interval resultInterval(value - internalFormat->ulp(value), value + internalFormat->ulp(value)); in convertNormalizedInt()
649 resultInterval = internalFormat->roundOut(resultInterval, false); in convertNormalizedInt()
779 const std::vector<de::SharedPtr<FloatFormat>>& internalFormat, in convertNormalizedFormat() argument
886 …convertNormalizedInt(chanVal, chanBits, isSigned, internalFormat[compNdx], resultMin[compNdx], res… in convertNormalizedFormat()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DTextureMtl.h42 GLenum internalFormat,
60 GLenum internalFormat,
76 GLenum internalFormat,
86 GLenum internalFormat,
109 GLenum internalFormat,
115 GLenum internalFormat,
235 const gl::InternalFormat &internalFormat,
242 const gl::InternalFormat &internalFormat,
249 const gl::InternalFormat &internalFormat,
256 const gl::InternalFormat &internalFormat,
[all …]

12345678910>>...14