Home
last modified time | relevance | path

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

12345678910>>...12

/external/angle/src/libANGLE/
Dformat_map_autogen.cpp646 bool ValidES3FormatCombination(GLenum format, GLenum type, GLenum internalFormat) in ValidES3FormatCombination() argument
657 switch (internalFormat) in ValidES3FormatCombination()
668 switch (internalFormat) in ValidES3FormatCombination()
679 switch (internalFormat) in ValidES3FormatCombination()
690 switch (internalFormat) in ValidES3FormatCombination()
701 switch (internalFormat) in ValidES3FormatCombination()
712 switch (internalFormat) in ValidES3FormatCombination()
731 switch (internalFormat) in ValidES3FormatCombination()
742 switch (internalFormat) in ValidES3FormatCombination()
753 switch (internalFormat) in ValidES3FormatCombination()
[all …]
Dformatutils.h191 GLenum internalFormat; member
237 explicit Format(GLenum internalFormat);
240 explicit Format(const InternalFormat &internalFormat);
241 Format(GLenum internalFormat, GLenum type);
258 const InternalFormat &GetSizedInternalFormatInfo(GLenum internalFormat);
259 const InternalFormat &GetInternalFormatInfo(GLenum internalFormat, GLenum type);
263 GLenum GetUnsizedFormat(GLenum internalFormat);
266 bool CompressedFormatRequiresWholeImage(GLenum internalFormat);
275 ANGLE_INLINE int GetNativeVisualID(const InternalFormat &internalFormat) in GetNativeVisualID() argument
280 angle::android::GLInternalFormatToNativePixelFormat(internalFormat.internalFormat); in GetNativeVisualID()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_format_table_autogen.cpp30 internalFormat = GL_ALPHA16F_EXT; in initialize()
38 internalFormat = GL_A1RGB5_ANGLEX; in initialize()
50 internalFormat = GL_INT_10_10_10_2_OES; in initialize()
62 internalFormat = GL_A2_RGB10_SNORM_ANGLEX; in initialize()
74 internalFormat = GL_A2_RGB10_SSCALED_ANGLEX; in initialize()
86 internalFormat = GL_UNSIGNED_INT_10_10_10_2_OES; in initialize()
98 internalFormat = GL_A2_RGB10_UNORM_ANGLEX; in initialize()
110 internalFormat = GL_A2_RGB10_USCALED_ANGLEX; in initialize()
122 internalFormat = GL_ALPHA32F_EXT; in initialize()
130 internalFormat = GL_ALPHA8_EXT; in initialize()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_format.c1098 st_choose_format(struct st_context *st, GLenum internalFormat, in st_choose_format() argument
1110 if (_mesa_is_compressed_format(st->ctx, internalFormat) in st_choose_format()
1120 if (_mesa_is_enum_format_unsized(internalFormat) && format != 0 && in st_choose_format()
1129 internalFormat) { in st_choose_format()
1141 if (internalFormat == GL_RGB) in st_choose_format()
1142 internalFormat = GL_RGB10; in st_choose_format()
1143 else if (internalFormat == GL_RGBA) in st_choose_format()
1144 internalFormat = GL_RGB10_A2; in st_choose_format()
1148 if (internalFormat == GL_RGB) in st_choose_format()
1149 internalFormat = GL_RGB5; in st_choose_format()
[all …]
/external/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()
1342 _mesa_has_depth_float_channel(GLenum internalFormat) in _mesa_has_depth_float_channel() argument
[all …]
Dteximage.c826 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields_ms() argument
830 const GLint base_format =_mesa_base_tex_format(ctx, internalFormat); in _mesa_init_teximage_fields_ms()
840 img->InternalFormat = internalFormat; in _mesa_init_teximage_fields_ms()
933 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields() argument
937 internalFormat, format, 0, GL_TRUE); in _mesa_init_teximage_fields()
1680 GLenum target, GLenum internalFormat) in _mesa_legal_texture_base_format_for_target() argument
1682 if (_mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_COMPONENT in _mesa_legal_texture_base_format_for_target()
1683 || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL in _mesa_legal_texture_base_format_for_target()
1684 || _mesa_base_tex_format(ctx, internalFormat) == GL_STENCIL_INDEX) { in _mesa_legal_texture_base_format_for_target()
1727 texture_formats_agree(GLenum internalFormat, in texture_formats_agree() argument
[all …]
Dexternalobjects.c291 GLenum internalFormat, GLsizei width, GLsizei height, in texstorage_memory() argument
314 levels, internalFormat, in texstorage_memory()
320 GLenum internalFormat, GLsizei width, GLsizei height, in texstorage_memory_ms() argument
343 internalFormat, width, height, depth, in texstorage_memory_ms()
352 GLenum internalFormat, GLsizei width, GLsizei height, in texturestorage_memory() argument
375 levels, internalFormat, in texturestorage_memory()
381 GLenum internalFormat, GLsizei width, GLsizei height, in texturestorage_memory_ms() argument
404 samples, internalFormat, width, height, in texturestorage_memory_ms()
411 GLenum internalFormat, in _mesa_TexStorageMem2DEXT() argument
417 texstorage_memory(2, target, levels, internalFormat, width, height, 1, in _mesa_TexStorageMem2DEXT()
[all …]
Dtexcompress_cpal.c108 _mesa_cpal_compressed_size(int level, GLenum internalFormat, in _mesa_cpal_compressed_size() argument
116 if (internalFormat < GL_PALETTE4_RGB8_OES in _mesa_cpal_compressed_size()
117 || internalFormat > GL_PALETTE8_RGB5_A1_OES) { in _mesa_cpal_compressed_size()
121 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES]; in _mesa_cpal_compressed_size()
122 assert(info->cpal_format == internalFormat); in _mesa_cpal_compressed_size()
149 GLenum internalFormat, in _mesa_cpal_compressed_teximage2d() argument
161 assert(internalFormat >= GL_PALETTE4_RGB8_OES in _mesa_cpal_compressed_teximage2d()
162 && internalFormat <= GL_PALETTE8_RGB5_A1_OES); in _mesa_cpal_compressed_teximage2d()
164 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES]; in _mesa_cpal_compressed_teximage2d()
Dexternalobjects.h121 GLenum internalFormat,
130 GLenum internalFormat,
140 GLenum internalFormat,
150 GLenum internalFormat,
161 GLenum internalFormat,
170 GLenum internalFormat,
180 GLenum internalFormat,
190 GLenum internalFormat,
201 GLenum internalFormat,
209 GLenum internalFormat,
/external/deqp/modules/gles31/functional/
Des31fTextureLevelStateQueryTests.cpp129 glw::GLenum internalFormat; member
137 , internalFormat (GL_RGBA) in TextureLevelSpec()
275 static bool isColorRenderableFormat (glw::GLenum internalFormat) in isColorRenderableFormat() argument
277 return internalFormat == GL_RGB565 || in isColorRenderableFormat()
278 internalFormat == GL_RGBA4 || in isColorRenderableFormat()
279 internalFormat == GL_RGB5_A1 || in isColorRenderableFormat()
280 internalFormat == GL_RGB10_A2 || in isColorRenderableFormat()
281 internalFormat == GL_RGB10_A2UI || in isColorRenderableFormat()
282 internalFormat == GL_SRGB8_ALPHA8 || in isColorRenderableFormat()
283 internalFormat == GL_R8 || in isColorRenderableFormat()
[all …]
Des31fTextureFormatTests.cpp97 …& renderCtxInfo, const char* name, const char* description, deUint32 internalFormat, int size, int…
138 …& renderCtxInfo, const char* name, const char* description, deUint32 internalFormat, int size, int… in TextureCubeArrayFormatCase() argument
142 , m_format (internalFormat) in TextureCubeArrayFormatCase()
270 …Context& renderCtx, const char* name, const char* description, deUint32 internalFormat, int width);
291 …rContext& renderCtx, const char* name, const char* description, deUint32 internalFormat, int width) in TextureBufferFormatCase() argument
294 , m_format (internalFormat) in TextureBufferFormatCase()
463 deUint32 internalFormat; in init() member
521 deUint32 internalFormat; in init() member
534 deUint32 internalFormat = sizedColorFormats[formatNdx].internalFormat; in init() local
536 string descriptionBase = glu::getTextureFormatName(internalFormat); in init()
[all …]
Des31fTextureSpecificationTests.cpp321 …Case (Context& context, const char* name, const char* desc, deUint32 internalFormat, int size, int… in BasicTexImageCubeArrayCase() argument
322 …: TextureCubeArraySpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, n… in BasicTexImageCubeArrayCase()
323 , m_internalFormat (internalFormat) in BasicTexImageCubeArrayCase()
359 …Case (Context& context, const char* name, const char* desc, deUint32 internalFormat, int size, int… in BasicTexStorageCubeArrayCase() argument
360 …: TextureCubeArraySpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, n… in BasicTexStorageCubeArrayCase()
361 , m_internalFormat (internalFormat) in BasicTexStorageCubeArrayCase()
404 deUint32 internalFormat, in TexImageCubeArrayBufferCase() argument
414 …: TextureCubeArraySpecCase (context, name, desc, glu::mapGLInternalFormat(internalFormat), size, d… in TexImageCubeArrayBufferCase()
415 , m_internalFormat (internalFormat) in TexImageCubeArrayBufferCase()
485 deUint32 internalFormat, in TexSubImageCubeArrayBufferCase() argument
[all …]
/external/angle/src/tests/gl_tests/
DD3D11FormatTablesTest.cpp50 for (GLenum internalFormat : allFormats) in TEST_P() local
53 rx::d3d11::Format::Get(internalFormat, renderer->getRenderer11DeviceCaps()); in TEST_P()
54 const auto &textureInfo = textureCaps.get(internalFormat); in TEST_P()
58 gl::GetSizedInternalFormatInfo(internalFormat); in TEST_P()
73 EXPECT_EQ(textureable, textureInfo.texturable) << " for " << gl::FmtHex(internalFormat); in TEST_P()
82 << " for " << gl::FmtHex(internalFormat); in TEST_P()
83 EXPECT_EQ(expectedMipGen, actualMipGen) << " for " << gl::FmtHex(internalFormat); in TEST_P()
91 EXPECT_EQ(filterable, textureInfo.filterable) << " for " << gl::FmtHex(internalFormat); in TEST_P()
107 << " for " << gl::FmtHex(internalFormat); in TEST_P()
119 << " for " << gl::FmtHex(internalFormat); in TEST_P()
[all …]
/external/angle/src/libANGLE/renderer/gl/
Dformatutilsgl.h62 const InternalFormat &GetInternalFormatInfo(GLenum internalFormat, StandardGL standard);
66 GLenum internalFormat; member
72 GLenum internalFormat,
88 GLenum internalFormat; member
92 GLenum internalFormat);
104 GLenum internalFormat; member
108 GLenum internalFormat,
113 GLenum internalFormat; member
117 GLenum internalFormat);
121 GLenum internalFormat; member
[all …]
Dformatutilsgl.cpp117 GLenum internalFormat, in InsertFormatMapping() argument
136 map->insert(std::make_pair(internalFormat, formatInfo)); in InsertFormatMapping()
414 const InternalFormat &GetInternalFormatInfo(GLenum internalFormat, StandardGL standard) in GetInternalFormatInfo() argument
417 InternalFormatInfoMap::const_iterator iter = formatMap.find(internalFormat); in GetInternalFormatInfo()
439 const gl::InternalFormat &internalFormat) in GetNativeInternalFormat() argument
441 GLenum result = internalFormat.internalFormat; in GetNativeInternalFormat()
448 result = internalFormat.sizedInternalFormat; in GetNativeInternalFormat()
450 if (features.avoid1BitAlphaTextureFormats.enabled && internalFormat.alphaBits == 1) in GetNativeInternalFormat()
457 internalFormat.sizedInternalFormat == GL_RGBA4) in GetNativeInternalFormat()
463 if (internalFormat.sizedInternalFormat == GL_RGB565 && 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 …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_formatquery.c32 GLenum internalFormat, int samples[16]) in brw_query_samples_for_format() argument
38 (void) internalFormat; in brw_query_samples_for_format()
57 if (internalFormat == GL_RGBA32F && _mesa_is_gles(ctx)) { in brw_query_samples_for_format()
89 GLenum internalFormat, GLenum pname, GLint *params) in brw_query_internal_format() argument
98 brw_query_samples_for_format(ctx, target, internalFormat, params); in brw_query_internal_format()
105 num_samples = brw_query_samples_for_format(ctx, target, internalFormat, in brw_query_internal_format()
115 _mesa_query_internal_format_default(ctx, target, internalFormat, pname, in brw_query_internal_format()
/external/deqp/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 …]
/external/angle/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()
/external/OpenCL-CTS/test_common/gl/
Dhelpers.cpp41 GLenum target, GLenum glFormat, GLenum internalFormat, GLenum glType, in CreateGLTexture1DArray() argument
77 glTexImage2D( get_base_gl_target(target), 0, internalFormat, (GLsizei)width, in CreateGLTexture1DArray()
86 GetGLFormatName(internalFormat), in CreateGLTexture1DArray()
97 GetGLFormatName(internalFormat), in CreateGLTexture1DArray()
154 GLenum target, GLenum glFormat, GLenum internalFormat, GLenum glType, in CreateGLTexture2DArray() argument
195 if (internalFormat == GL_DEPTH_COMPONENT16) in CreateGLTexture2DArray()
198 glTexImage3D( target, 0, internalFormat, (GLsizei)width, (GLsizei)height, in CreateGLTexture2DArray()
201 if (internalFormat == GL_DEPTH_COMPONENT16) in CreateGLTexture2DArray()
211 GetGLFormatName( internalFormat ) ); in CreateGLTexture2DArray()
217 GetGLFormatName( internalFormat ) ); in CreateGLTexture2DArray()
[all …]
/external/deqp/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 …]
/external/deqp/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 …]
/external/deqp/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 …]

12345678910>>...12