Home
last modified time | relevance | path

Searched refs:internalformat (Results 1 – 25 of 591) sorted by relevance

12345678910>>...24

/third_party/mesa3d/src/mesa/main/
Dformatquery.c44 _is_renderable(struct gl_context *ctx, GLenum internalformat) in _is_renderable() argument
54 if (internalformat != GL_RGB && internalformat != GL_RGBA && in _is_renderable()
55 _mesa_base_fbo_format(ctx, internalformat) == 0) in _is_renderable()
65 _legal_parameters(struct gl_context *ctx, GLenum target, GLenum internalformat, in _legal_parameters() argument
286 if (!query2 && !_is_renderable(ctx, internalformat)) { in _legal_parameters()
289 _mesa_enum_to_string(internalformat)); in _legal_parameters()
484 GLenum internalformat, GLenum pname) in _is_resource_supported() argument
524 if (_mesa_base_tex_format(ctx, internalformat) < 0) in _is_resource_supported()
528 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalformat)) in _is_resource_supported()
532 if (_mesa_is_compressed_format(ctx, internalformat) && in _is_resource_supported()
[all …]
Dtexstorage.c221 GLenum internalformat) in _mesa_is_legal_tex_storage_format() argument
224 switch (internalformat) { in _mesa_is_legal_tex_storage_format()
259 return _mesa_base_tex_format(ctx, internalformat) > 0; in _mesa_is_legal_tex_storage_format()
275 GLsizei levels, GLenum internalformat, in tex_storage_error_check() argument
293 if (_mesa_is_compressed_format(ctx, internalformat)) { in tex_storage_error_check()
295 if (!_mesa_target_can_be_compressed(ctx, target, internalformat, &err)) { in tex_storage_error_check()
298 _mesa_enum_to_string(internalformat)); in tex_storage_error_check()
343 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalformat)) { in tex_storage_error_check()
439 GLsizei levels, GLenum internalformat, GLsizei width, in texture_storage() argument
452 internalformat, width, height, depth, dsa)) { in texture_storage()
[all …]
Dgenmipmap.c82 GLenum internalformat) in _mesa_is_valid_generate_texture_mipmap_internalformat() argument
95 return internalformat == GL_RGBA || internalformat == GL_RGB || in _mesa_is_valid_generate_texture_mipmap_internalformat()
96 internalformat == GL_LUMINANCE_ALPHA || in _mesa_is_valid_generate_texture_mipmap_internalformat()
97 internalformat == GL_LUMINANCE || internalformat == GL_ALPHA || in _mesa_is_valid_generate_texture_mipmap_internalformat()
98 internalformat == GL_BGRA_EXT || in _mesa_is_valid_generate_texture_mipmap_internalformat()
99 (_mesa_is_es3_color_renderable(ctx, internalformat) && in _mesa_is_valid_generate_texture_mipmap_internalformat()
100 _mesa_is_es3_texture_filterable(ctx, internalformat)); in _mesa_is_valid_generate_texture_mipmap_internalformat()
103 return (!_mesa_is_enum_format_integer(internalformat) && in _mesa_is_valid_generate_texture_mipmap_internalformat()
104 !_mesa_is_depthstencil_format(internalformat) && in _mesa_is_valid_generate_texture_mipmap_internalformat()
105 !_mesa_is_astc_format(internalformat) && in _mesa_is_valid_generate_texture_mipmap_internalformat()
[all …]
Dtextureview.c257 _mesa_texture_view_lookup_view_class(const struct gl_context *ctx, GLenum internalformat) in _mesa_texture_view_lookup_view_class() argument
262 if (compatible_internal_formats[i].internal_format == internalformat) in _mesa_texture_view_lookup_view_class()
270 == internalformat) in _mesa_texture_view_lookup_view_class()
278 == internalformat) in _mesa_texture_view_lookup_view_class()
285 == internalformat) in _mesa_texture_view_lookup_view_class()
293 == internalformat) in _mesa_texture_view_lookup_view_class()
533 GLenum internalformat, GLuint minlevel, GLuint numlevels, in texture_view() argument
544 internalformat, GL_NONE, GL_NONE); in texture_view()
688 internalformat, texFormat, in texture_view()
712 GLenum internalformat, in _mesa_TextureView_no_error() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
Dutilities.h48 bool IsSizedInternalFormat(GLint internalformat); // Not compressed.
61 GLenum ValidateTextureFormatType(GLenum format, GLenum type, GLint internalformat, GLenum target);
65 bool IsColorRenderable(GLint internalformat);
66 bool IsDepthRenderable(GLint internalformat);
67 bool IsStencilRenderable(GLint internalformat);
68 bool IsMipmappable(GLint internalformat);
70 GLuint GetAlphaSize(GLint internalformat);
71 GLuint GetRedSize(GLint internalformat);
72 GLuint GetGreenSize(GLint internalformat);
73 GLuint GetBlueSize(GLint internalformat);
[all …]
Dutilities.cpp326 bool IsCompressed(GLint internalformat) in IsCompressed() argument
328 switch(internalformat) in IsCompressed()
351 bool IsSizedInternalFormat(GLint internalformat) in IsSizedInternalFormat() argument
353 switch(internalformat) in IsSizedInternalFormat()
609 GLint internalformat = depthbuffer->getFormat(); in ValidateReadPixelsFormatType() local
615 switch(internalformat) in ValidateReadPixelsFormatType()
626 UNREACHABLE(internalformat); in ValidateReadPixelsFormatType()
631 switch(internalformat) in ValidateReadPixelsFormatType()
642 UNREACHABLE(internalformat); in ValidateReadPixelsFormatType()
681 GLint internalformat = colorbuffer->getFormat(); in ValidateReadPixelsFormatType() local
[all …]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/common/
DImage.hpp58 bool IsUnsizedInternalFormat(GLint internalformat);
59 GLenum GetBaseInternalFormat(GLint internalformat);
100 Image(Texture *parentTexture, GLsizei width, GLsizei height, GLint internalformat) in Image() argument
101 …ture->getResource(), width, height, 1, 0, 1, gl::SelectInternalFormat(internalformat), true, true), in Image()
102 …width(width), height(height), depth(1), internalformat(internalformat), parentTexture(parentTextur… in Image()
110 …ure *parentTexture, GLsizei width, GLsizei height, GLsizei depth, int border, GLint internalformat) in Image() argument
111 …Resource(), width, height, depth, border, 1, gl::SelectInternalFormat(internalformat), true, true), in Image()
112 …width(width), height(height), depth(depth), internalformat(internalformat), parentTexture(parentTe… in Image()
120 Image(GLsizei width, GLsizei height, GLint internalformat, int pitchP) in Image() argument
121 …: sw::Surface(nullptr, width, height, 1, 0, 1, gl::SelectInternalFormat(internalformat), true, tru… in Image()
[all …]
DImage.cpp34 bool IsUnsizedInternalFormat(GLint internalformat) in IsUnsizedInternalFormat() argument
36 switch(internalformat) in IsUnsizedInternalFormat()
61 GLenum GetBaseInternalFormat(GLint internalformat) in GetBaseInternalFormat() argument
63 switch(internalformat) in GetBaseInternalFormat()
137 UNREACHABLE(internalformat); in GetBaseInternalFormat()
144 GLint GetSizedInternalFormat(GLint internalformat, GLenum type) in GetSizedInternalFormat() argument
146 if(!IsUnsizedInternalFormat(internalformat)) in GetSizedInternalFormat()
148 return internalformat; in GetSizedInternalFormat()
151 switch(internalformat) in GetSizedInternalFormat()
303 UNREACHABLE(internalformat); in GetSizedInternalFormat()
[all …]
/third_party/vk-gl-cts/external/openglcts/data/mustpass/gles/khronos_mustpass/master/
Dgles2-khr-master.txt412 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_byte_rgba
413 KHR-GLES2.core.internalformat.texture2d.rgb_unsigned_byte_rgb
414 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_short_4_4_4_4_rgba
415 KHR-GLES2.core.internalformat.texture2d.luminance_alpha_unsigned_byte_luminance_alpha
416 KHR-GLES2.core.internalformat.texture2d.luminance_unsigned_byte_luminance
417 KHR-GLES2.core.internalformat.texture2d.alpha_unsigned_byte_alpha
418 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgba
419 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb10_a2
420 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb5_a1
421 KHR-GLES2.core.internalformat.texture2d.rgb_unsigned_int_2_10_10_10_rev_rgb
[all …]
Dgles32-khr-master.txt1030 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_byte_rgba
1031 KHR-GLES32.core.internalformat.texture2d.rgb_unsigned_byte_rgb
1032 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_short_4_4_4_4_rgba
1033 KHR-GLES32.core.internalformat.texture2d.luminance_alpha_unsigned_byte_luminance_alpha
1034 KHR-GLES32.core.internalformat.texture2d.luminance_unsigned_byte_luminance
1035 KHR-GLES32.core.internalformat.texture2d.alpha_unsigned_byte_alpha
1036 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgba
1037 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb10_a2
1038 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb5_a1
1039 KHR-GLES32.core.internalformat.texture2d.rgb_unsigned_int_2_10_10_10_rev_rgb
[all …]
/third_party/vk-gl-cts/external/openglcts/data/mustpass/gles/khronos_mustpass/3.2.5.x/
Dgles2-khr-master.txt412 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_byte_rgba
413 KHR-GLES2.core.internalformat.texture2d.rgb_unsigned_byte_rgb
414 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_short_4_4_4_4_rgba
415 KHR-GLES2.core.internalformat.texture2d.luminance_alpha_unsigned_byte_luminance_alpha
416 KHR-GLES2.core.internalformat.texture2d.luminance_unsigned_byte_luminance
417 KHR-GLES2.core.internalformat.texture2d.alpha_unsigned_byte_alpha
418 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgba
419 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb10_a2
420 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb5_a1
421 KHR-GLES2.core.internalformat.texture2d.rgb_unsigned_int_2_10_10_10_rev_rgb
[all …]
Dgles32-khr-master.txt1030 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_byte_rgba
1031 KHR-GLES32.core.internalformat.texture2d.rgb_unsigned_byte_rgb
1032 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_short_4_4_4_4_rgba
1033 KHR-GLES32.core.internalformat.texture2d.luminance_alpha_unsigned_byte_luminance_alpha
1034 KHR-GLES32.core.internalformat.texture2d.luminance_unsigned_byte_luminance
1035 KHR-GLES32.core.internalformat.texture2d.alpha_unsigned_byte_alpha
1036 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgba
1037 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb10_a2
1038 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb5_a1
1039 KHR-GLES32.core.internalformat.texture2d.rgb_unsigned_int_2_10_10_10_rev_rgb
[all …]
/third_party/vk-gl-cts/external/openglcts/data/mustpass/gles/khronos_mustpass/3.2.6.x/
Dgles2-khr-master.txt412 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_byte_rgba
413 KHR-GLES2.core.internalformat.texture2d.rgb_unsigned_byte_rgb
414 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_short_4_4_4_4_rgba
415 KHR-GLES2.core.internalformat.texture2d.luminance_alpha_unsigned_byte_luminance_alpha
416 KHR-GLES2.core.internalformat.texture2d.luminance_unsigned_byte_luminance
417 KHR-GLES2.core.internalformat.texture2d.alpha_unsigned_byte_alpha
418 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgba
419 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb10_a2
420 KHR-GLES2.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb5_a1
421 KHR-GLES2.core.internalformat.texture2d.rgb_unsigned_int_2_10_10_10_rev_rgb
[all …]
Dgles32-khr-master.txt1030 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_byte_rgba
1031 KHR-GLES32.core.internalformat.texture2d.rgb_unsigned_byte_rgb
1032 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_short_4_4_4_4_rgba
1033 KHR-GLES32.core.internalformat.texture2d.luminance_alpha_unsigned_byte_luminance_alpha
1034 KHR-GLES32.core.internalformat.texture2d.luminance_unsigned_byte_luminance
1035 KHR-GLES32.core.internalformat.texture2d.alpha_unsigned_byte_alpha
1036 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgba
1037 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb10_a2
1038 KHR-GLES32.core.internalformat.texture2d.rgba_unsigned_int_2_10_10_10_rev_rgb5_a1
1039 KHR-GLES32.core.internalformat.texture2d.rgb_unsigned_int_2_10_10_10_rev_rgb
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cShaderImageLoadStoreTests.cpp177 bool Equal(const vec4& v0, const vec4& v1, GLenum internalformat) in Equal() argument
179 if (internalformat == GL_RGBA8_SNORM || internalformat == GL_RGBA8) in Equal()
206 …bool CompareValues(T* map_data, int kSize, const T& expected_value, GLenum internalformat = 0, int… in CompareValues() argument
210 if (!Equal(map_data[i], expected_value, internalformat)) in CompareValues()
221 …pareValues(bool always, T* map_data, int kSize, const T& expected_value, GLenum internalformat = 0, in CompareValues() argument
224 (void)internalformat; in CompareValues()
781 ShortByteData(int size, const T& value, GLenum internalformat, GLenum format) in ShortByteData() argument
792 if (Shorts(internalformat)) in ShortByteData()
802 if (Bytes(internalformat)) in ShortByteData()
806 if (internalformat == GL_RGBA8I || internalformat == GL_RGBA8UI) in ShortByteData()
[all …]
Des31cTextureStorageMultisampleTexStorage2DMultisampleTests.cpp148 glw::GLenum internalformat = internalformat_list[internalformat_index]; in iterate() local
156 gl.getInternalformativ(target, internalformat, GL_SAMPLES, 1, &internalformat_max_samples); in iterate()
161 gl.texStorage2DMultisample(target, internalformat_max_samples, internalformat, width, height, in iterate()
178 gl.texStorage2DMultisample(target, internalformat_max_samples + 1, internalformat, width, height, in iterate()
623 const glw::GLenum internalformat = GL_RGBA8; in iterate() local
630 …gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, samples, internalformat, width, height, fixe… in iterate()
636 …gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, samples, internalformat, width, height, fixe… in iterate()
646 …gl.texStorage3DMultisample(GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES, samples, internalformat, width, he… in iterate()
654 …gl.texStorage3DMultisample(GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES, samples, internalformat, width, he… in iterate()
799 glw::GLenum internalformat = internalformat_list[internalformat_index]; in iterate() local
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cES31CompatibilityShaderImageLoadStoreTests.cpp183 bool Equal(const vec4& v0, const vec4& v1, GLenum internalformat) in Equal() argument
185 if (internalformat == GL_RGBA8_SNORM || internalformat == GL_RGBA8) in Equal()
212 …bool CompareValues(T* map_data, int kSize, const T& expected_value, GLenum internalformat = 0, int… in CompareValues() argument
216 if (!Equal(map_data[i], expected_value, internalformat)) in CompareValues()
227 …pareValues(bool always, T* map_data, int kSize, const T& expected_value, GLenum internalformat = 0, in CompareValues() argument
230 (void)internalformat; in CompareValues()
810 ShortByteData(int size, const T& value, GLenum internalformat, GLenum format) in ShortByteData() argument
821 if (Shorts(internalformat)) in ShortByteData()
831 if (Bytes(internalformat)) in ShortByteData()
835 if (internalformat == GL_RGBA8I || internalformat == GL_RGBA8UI) in ShortByteData()
[all …]
Dgl4cShaderImageLoadStoreTests.cpp251 bool Equal(const vec4& v0, const vec4& v1, GLenum internalformat) in Equal() argument
253 …if (internalformat == GL_RGBA16_SNORM || internalformat == GL_RG16_SNORM || internalformat == GL_R… in Equal()
257 …else if (internalformat == GL_RGBA8_SNORM || internalformat == GL_RG8_SNORM || internalformat == G… in Equal()
1408 bool Write(GLenum internalformat, const T& write_value, const T& expected_value) in Write() argument
1412 …const GLuint program = BuildProgram(src_vs, NULL, NULL, NULL, GenFS(internalformat, write_value)… in Write()
1423 … glTexImage2D(GL_TEXTURE_2D, 0, internalformat, kSize, kSize, 0, Format<T>(), Type<T>(), &data[0]); in Write()
1428 glBindImageTexture(unit, texture, 0, GL_FALSE, 0, GL_WRITE_ONLY, internalformat); in Write()
1438 if (!Equal(data[i], expected_value, internalformat)) in Write()
1445 << ". Format is: " << FormatEnumToString(internalformat) in Write()
1473 std::string GenFS(GLenum internalformat, const T& value) in GenFS() argument
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/deqp_support/
Ddeqp_khr_gles2_test_expectations.txt8 3457 VULKAN : KHR-GLES2.core.internalformat.texture2d.depth_stencil_unsigned_int_24_8_depth_stencil…
10 6678 UBSAN : KHR-GLES2.core.internalformat.texture2d.rgb_half_float_oes_rgb = SKIP
11 6678 UBSAN : KHR-GLES2.core.internalformat.texture2d.rgb_half_float_oes_rgb_linear = SKIP
12 6678 UBSAN : KHR-GLES2.core.internalformat.texture2d.rgba_half_float_oes_rgba = SKIP
13 6678 UBSAN : KHR-GLES2.core.internalformat.texture2d.rgba_half_float_oes_rgba_linear = SKIP
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DRenderbufferD3D.cpp36 GLenum internalformat, in setStorage() argument
40 return setStorageMultisample(context, 0, internalformat, width, height, in setStorage()
46 GLenum internalformat, in setStorageMultisample() argument
60 GLenum creationFormat = internalformat; in setStorageMultisample()
61 if (internalformat == GL_DEPTH_COMPONENT16 || internalformat == GL_STENCIL_INDEX8) in setStorageMultisample()
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_clear_buffer_object.txt68 enum internalformat,
74 enum internalformat,
84 enum internalformat,
90 enum internalformat,
110 enum internalformat,
119 <internalformat> must be set to one of the format tokens listed in Table
127 <internalformat>, otherwise the error INVALID_VALUE is generated.
131 <internalformat> in the manner described in section 2.3.1, and then used to
143 enum internalformat,
149 <internalformat> and <data> as specified, with <offset> set to zero,
[all …]
/third_party/openGLES/extensions/ARB/
DARB_clear_buffer_object.txt78 enum internalformat,
84 enum internalformat,
94 enum internalformat,
100 enum internalformat,
120 enum internalformat,
129 <internalformat> must be set to one of the format tokens listed in Table
137 <internalformat>, otherwise the error INVALID_VALUE is generated.
141 <internalformat> in the manner described in section 2.3.1, and then used to
153 enum internalformat,
159 <internalformat> and <data> as specified, with <offset> set to zero,
[all …]
DARB_internalformat_query.txt79 void GetInternalformativ(enum target, enum internalformat,
113 <target> and <internalformat>, which can be determined by
131 <internalformat> is a signed or unsigned integer format and
141 samples supported for <internalformat> then the error
159 void GetInternalformativ(enum target, enum internalformat,
162 <internalformat> must be color-renderable, depth-renderable or
165 <target> indicates the usage of the <internalformat>, and must be
189 - The value of GetIntegerv(MAX_INTEGER_SAMPLES), if <internalformat>
192 <internalformat> is a depth/stencil-renderable format and <target>
195 <internalformat> is a color-renderable format and <target> is
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcTextureRepeatModeTests.cpp81 GLenum internalformat; member
506 const FormatInfo* findFormat(GLenum internalformat) const;
507 const InternalFormat& findInternalFormat(GLenum internalformat) const;
508 …void clearTextures(GLenum target, GLsizei width, GLsizei height, GLint lod, GLenum internalformat,…
511 GLenum internalformat) const;
516 …mpMode(GLubyte* buf, GLsizei width, GLsizei height, GLenum clampMode, GLenum internalformat) const;
518 GLenum internalformat) const;
519 bool verifyRepeat(GLubyte* buf, GLsizei width, GLsizei height, GLenum internalformat) const;
520 …bool verifyMirroredRepeat(GLubyte* buf, GLsizei width, GLsizei height, GLenum internalformat) cons…
548 const InternalFormat& TestClampModeForInternalFormat::findInternalFormat(GLenum internalformat) con… in findInternalFormat()
[all …]
DglcPackedPixelsTests.cpp142 GLenum internalformat; member
731 …alid(const PixelFormat& format, const PixelType& type, const struct InternalFormat& internalformat,
737 bool isFBOImageAttachValid(const InternalFormat& internalformat, GLenum format, GLenum type) const;
741 …const EnumFormats* getCanonicalFormat(const InternalFormat& internalformat, GLenum format, GLenum …
1033 const EnumFormats* RectangleTest::getCanonicalFormat(const InternalFormat& internalformat, GLenum f… in getCanonicalFormat() argument
1043 if ((esValidFormats[i].internalformat == internalformat.sizedFormat) && in getCanonicalFormat()
1055 …if (validformats_EXT_texture_type_2_10_10_10_REV[i].internalformat == internalformat.sizedFormat && in getCanonicalFormat()
1067 if (validformats_OES_required_internalformat[i].internalformat == internalformat.sizedFormat && in getCanonicalFormat()
1081 if ((coreValidFormats[i].internalformat == internalformat.sizedFormat) && in getCanonicalFormat()
1467 const struct InternalFormat& internalformat, bool checkInput, bool checkOutput, in isFormatValid() argument
[all …]

12345678910>>...24