Searched defs:internalformat (Results 1 - 25 of 56) sorted by relevance

123

/external/mesa3d/src/mesa/main/
H A Dgenmipmap.c79 GLenum internalformat)
92 return internalformat == GL_RGBA || internalformat == GL_RGB ||
93 internalformat == GL_LUMINANCE_ALPHA ||
94 internalformat == GL_LUMINANCE || internalformat == GL_ALPHA ||
95 internalformat == GL_BGRA_EXT ||
96 (_mesa_is_es3_color_renderable(internalformat) &&
97 _mesa_is_es3_texture_filterable(ctx, internalformat));
100 return (!_mesa_is_enum_format_integer(internalformat)
78 _mesa_is_valid_generate_texture_mipmap_internalformat(struct gl_context *ctx, GLenum internalformat) argument
[all...]
H A Dcolortab.c64 _mesa_CopyColorTable(GLenum target, GLenum internalformat, argument
H A Dformatquery.c41 _is_renderable(struct gl_context *ctx, GLenum internalformat) argument
51 if (internalformat != GL_RGB && internalformat != GL_RGBA &&
52 _mesa_base_fbo_format(ctx, internalformat) == 0)
62 _legal_parameters(struct gl_context *ctx, GLenum target, GLenum internalformat, argument
256 * "If the <internalformat> parameter to GetInternalformativ is not
260 if (!query2 && !_is_renderable(ctx, internalformat)) {
262 "glGetInternalformativ(internalformat=%s)",
263 _mesa_enum_to_string(internalformat));
453 GLenum internalformat, GLenu
452 _is_resource_supported(struct gl_context *ctx, GLenum target, GLenum internalformat, GLenum pname) argument
540 _is_internalformat_supported(struct gl_context *ctx, GLenum target, GLenum internalformat) argument
823 _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params) argument
1546 _mesa_GetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params) argument
[all...]
H A Dtexstorage.c220 GLenum internalformat)
223 switch (internalformat) {
258 return _mesa_base_tex_format(ctx, internalformat) > 0;
308 GLsizei levels, GLenum internalformat,
325 if (_mesa_is_compressed_format(ctx, internalformat)) {
327 if (!_mesa_target_can_be_compressed(ctx, target, internalformat, &err)) {
329 "glTex%sStorage%dD(internalformat = %s)", suffix, dims,
330 _mesa_enum_to_string(internalformat));
375 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalformat)) {
393 GLenum internalformat, GLsize
219 _mesa_is_legal_tex_storage_format(const struct gl_context *ctx, GLenum internalformat) argument
305 tex_storage_error_check(struct gl_context *ctx, struct gl_texture_object *texObj, GLuint dims, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, bool dsa) argument
390 _mesa_texture_storage(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, bool dsa) argument
477 texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) argument
521 texturestorage(GLuint dims, GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) argument
566 _mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width) argument
574 _mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) argument
582 _mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) argument
590 _mesa_TextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width) argument
598 _mesa_TextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) argument
607 _mesa_TextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) argument
623 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width) argument
641 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) argument
660 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) argument
[all...]
H A Dtextureview.c252 _mesa_texture_view_lookup_view_class(const struct gl_context *ctx, GLenum internalformat) argument
257 if (compatible_internal_formats[i].internal_format == internalformat)
265 == internalformat)
273 == internalformat)
280 == internalformat)
288 == internalformat)
523 GLenum internalformat,
542 _mesa_enum_to_string(internalformat),
626 internalformat)) {
628 "glTextureView(internalformat
522 _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers) argument
[all...]
/external/mesa3d/src/glx/apple/
H A Dapple_xgl_api_read.c125 __applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, argument
132 __ogl_framework_api->CopyColorTable(target, internalformat, x, y, width);
/external/mesa3d/src/glx/
H A Drenderpix.c120 __indirect_glSeparableFilter2D(GLenum target, GLenum internalformat, argument
143 __GLX_PUT_LONG(4, internalformat);
173 __GLX_PUT_LONG(4, internalformat);
/external/deqp/external/openglcts/modules/gles31/
H A Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.hpp57 glw::GLenum internalformat; member in struct:glcts::MultisampleTextureGetTexLevelParametervFunctionalTest::texture_properties
92 , internalformat(0)
H A Des31cTextureStorageMultisampleTexStorage2DMultisampleTests.cpp147 /* Iteration-specific internalformat */
148 glw::GLenum internalformat = internalformat_list[internalformat_index]; local
155 /* Retrieve maximum amount of samples available for the target's texture internalformat */
156 gl.getInternalformativ(target, internalformat, GL_SAMPLES, 1, &internalformat_max_samples);
161 gl.texStorage2DMultisample(target, internalformat_max_samples, internalformat, width, height,
178 gl.texStorage2DMultisample(target, internalformat_max_samples + 1, internalformat, width, height,
184 * maximum number of samples supported for this target and internalformat.*/
623 const glw::GLenum internalformat = GL_RGBA8; local
630 gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, samples, internalformat, width, height, fixedsamplelocations);
636 gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, samples, internalformat, widt
799 glw::GLenum internalformat = internalformat_list[internalformat_index]; local
949 glw::GLenum internalformat = internalformat_list[internalformat_index]; local
1088 glw::GLenum internalformat = internalformat_list[internalformat_index]; local
1271 glw::GLenum internalformat = internalformats[n_internalformat]; local
[all...]
H A Des31cTextureStorageMultisampleDependenciesTests.cpp560 throw tcu::NotSupportedError("GL_SAMPLES is lower than 2 for GL_DEPTH_COMPONENT16 internalformat");
565 throw tcu::NotSupportedError("GL_SAMPLES is lower than 2 for GL_DEPTH24_STENCIL8 internalformat");
570 throw tcu::NotSupportedError("GL_SAMPLES is lower than 2 for GL_RGBA8 internalformat");
985 /* Iterate through internalformats. Current internalformat will be used
1008 /* Iterate again through the internalformats. This internalformat will be used
1265 /* For storing internalformat specific maximum number of samples */
1279 glw::GLenum internalformat = internalformats[n_internalformat]; local
1283 if (internalformat == GL_DEPTH24_STENCIL8)
1287 else if (internalformat != GL_DEPTH_COMPONENT32F)
1294 gl.getInternalformativ(GL_TEXTURE_2D_MULTISAMPLE, internalformat, GL_SAMPLE
1428 glw::GLenum internalformat = internalformats[n_internalformat]; local
1583 glw::GLenum internalformat = internalformats[n_internalformat]; local
1739 glw::GLenum internalformat = internalformats[n_internalformat]; local
1878 const glw::GLenum internalformat = noninteger_internalformats[n_internalformat]; local
1970 const glw::GLenum internalformat = integer_internalformats[n_internalformat]; local
2065 glw::GLenum internalformat = internalformats[n_internalformat]; local
2189 glw::GLenum internalformat = internalformats[n_internalformat]; local
[all...]
H A Des31cTextureStorageMultisampleFunctionalTests.cpp506 /* Retrieve maximum amount of samples that can be used for GL_DEPTH_COMPONENT32F internalformat */
791 /* Retrieve maximum amount of samples for GL_R16UI internalformat */
2210 glw::GLenum internalformat = internalformats[n_internalformat]; local
2213 /* Retrieve internalformat-specific GL_MAX_SAMPLES value */
2215 internalformat, GL_SAMPLES, 1, /* bufSize */
2225 << "for internalformat " << internalformat << "." << tcu::TestLog::EndMessage;
2256 internalformat, 1, /* width */
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_wm.c281 gen6_gather_workaround(GLenum internalformat) argument
283 switch (internalformat) {
/external/swiftshader/src/OpenGL/common/
H A DImage.hpp55 bool IsUnsizedInternalFormat(GLint internalformat);
56 GLenum GetBaseInternalFormat(GLint internalformat);
95 Image(Texture *parentTexture, GLsizei width, GLsizei height, GLint internalformat) argument
96 : sw::Surface(parentTexture->getResource(), width, height, 1, 0, 1, gl::SelectInternalFormat(internalformat), true, true),
97 width(width), height(height), depth(1), internalformat(internalformat), parentTexture(parentTexture)
105 Image(Texture *parentTexture, GLsizei width, GLsizei height, GLsizei depth, int border, GLint internalformat) argument
106 : sw::Surface(parentTexture->getResource(), width, height, depth, border, 1, gl::SelectInternalFormat(internalformat), true, true),
107 width(width), height(height), depth(depth), internalformat(internalformat), parentTextur
115 Image(GLsizei width, GLsizei height, GLint internalformat, int pitchP) argument
124 Image(GLsizei width, GLsizei height, GLint internalformat, int multiSampleDepth, bool lockable) argument
221 const GLint internalformat; member in class:egl::Image
[all...]
H A DImage.cpp172 bool IsUnsizedInternalFormat(GLint internalformat) argument
174 switch(internalformat)
199 GLenum GetBaseInternalFormat(GLint internalformat) argument
201 switch(internalformat)
275 UNREACHABLE(internalformat);
282 GLint GetSizedInternalFormat(GLint internalformat, GLenum type) argument
284 if(!IsUnsizedInternalFormat(internalformat))
286 return internalformat;
289 switch(internalformat)
441 UNREACHABLE(internalformat);
1163 ImageImplementation(Texture *parentTexture, GLsizei width, GLsizei height, GLint internalformat) argument
1165 ImageImplementation(Texture *parentTexture, GLsizei width, GLsizei height, GLsizei depth, int border, GLint internalformat) argument
1167 ImageImplementation(GLsizei width, GLsizei height, GLint internalformat, int pitchP) argument
1169 ImageImplementation(GLsizei width, GLsizei height, GLint internalformat, int multiSampleDepth, bool lockable) argument
1193 create(Texture *parentTexture, GLsizei width, GLsizei height, GLint internalformat) argument
1198 create(Texture *parentTexture, GLsizei width, GLsizei height, GLsizei depth, int border, GLint internalformat) argument
1203 create(GLsizei width, GLsizei height, GLint internalformat, int pitchP) argument
1208 create(GLsizei width, GLsizei height, GLint internalformat, int multiSampleDepth, bool lockable) argument
[all...]
/external/swiftshader/src/OpenGL/libGL/
H A DFramebuffer.cpp357 GLenum internalformat = stencilbuffer->getFormat(); local
359 if(!gl::IsStencilTexture(internalformat))
H A Dutilities.cpp366 bool IsColorRenderable(GLenum internalformat) argument
368 switch(internalformat)
388 bool IsDepthRenderable(GLenum internalformat) argument
390 switch(internalformat)
410 bool IsStencilRenderable(GLenum internalformat) argument
412 switch(internalformat)
/external/swiftshader/src/OpenGL/libGLES_CM/
H A DFramebuffer.cpp363 GLenum internalformat = stencilbuffer->getFormat(); local
365 if(!es1::IsStencilTexture(internalformat))
H A DRenderbuffer.cpp286 Colorbuffer::Colorbuffer(int width, int height, GLenum internalformat, GLsizei samples) : mRenderTarget(nullptr) argument
298 mRenderTarget = egl::Image::create(width, height, internalformat, supportedSamples, false);
309 format = internalformat;
364 DepthStencilbuffer::DepthStencilbuffer(int width, int height, GLenum internalformat, GLsizei samples) : mDepthStencil(nullptr) argument
376 mDepthStencil = egl::Image::create(width, height, internalformat, supportedSamples, false);
387 format = internalformat;
433 Depthbuffer::Depthbuffer(int width, int height, GLenum internalformat, GLsizei samples) : DepthStencilbuffer(width, height, internalformat, samples) argument
H A DTexture.cpp423 void Texture2D::setImage(GLint level, GLsizei width, GLsizei height, GLint internalformat, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
430 image[level] = egl::Image::create(this, width, height, internalformat);
754 GLenum internalformat = sw2es::ConvertBackBufferFormat(format);
756 return egl::Image::create(width, height, internalformat, multiSampleDepth, false);
792 GLenum internalformat = sw2es::ConvertDepthStencilFormat(format);
794 egl::Image *surface = egl::Image::create(width, height, internalformat, multiSampleDepth, lockable);
H A Dutilities.cpp35 bool IsSizedInternalFormat(GLint internalformat) argument
37 switch(internalformat)
137 GLenum ValidateTextureFormatType(GLenum format, GLenum type, GLint internalformat, GLenum target) argument
173 if((GLenum)internalformat != format)
175 if(gl::IsUnsizedInternalFormat(internalformat))
180 if(!IsSizedInternalFormat(internalformat))
186 if((GLenum)internalformat == format)
188 // Validate format, type, and unsized internalformat combinations [OpenGL ES 1.1 Table 3.3]
246 // Validate format, type, and sized internalformat combinations [OpenGL ES 3.0 Table 3.2]
248 #define VALIDATE_INTERNALFORMAT(...) { GLint validInternalformats[] = {__VA_ARGS__}; for(GLint v : validInternalformats) {if(internalformat
322 IsColorRenderable(GLint internalformat) argument
343 IsDepthRenderable(GLint internalformat) argument
364 IsStencilRenderable(GLint internalformat) argument
385 GetAlphaSize(GLint internalformat) argument
402 GetRedSize(GLint internalformat) argument
419 GetGreenSize(GLint internalformat) argument
436 GetBlueSize(GLint internalformat) argument
453 GetDepthSize(GLint internalformat) argument
466 GetStencilSize(GLint internalformat) argument
479 IsAlpha(GLint internalformat) argument
490 IsRGB(GLint internalformat) argument
506 IsRGBA(GLint internalformat) argument
[all...]
/external/swiftshader/src/OpenGL/libGLESv2/
H A DFramebuffer.cpp484 GLenum internalformat = stencilbuffer->getFormat(); local
486 if(!es2::IsStencilTexture(internalformat))
H A DRenderbuffer.cpp497 Colorbuffer::Colorbuffer(int width, int height, GLenum internalformat, GLsizei samples) : mRenderTarget(nullptr) argument
509 mRenderTarget = egl::Image::create(width, height, internalformat, supportedSamples, false);
520 format = internalformat;
575 DepthStencilbuffer::DepthStencilbuffer(int width, int height, GLenum internalformat, GLsizei samples) : mDepthStencil(nullptr) argument
587 mDepthStencil = egl::Image::create(width, height, internalformat, supportedSamples, false);
598 format = internalformat;
644 Depthbuffer::Depthbuffer(int width, int height, GLenum internalformat, GLsizei samples) : DepthStencilbuffer(width, height, internalformat, samples) argument
/external/swiftshader/third_party/PowerVR_SDK/Tools/OGLES2/
H A DPVRTTextureAPI.cpp39 @Modified: internalformat
47 static const void PVRTGetOGLES2TextureFormat(const PVRTextureHeaderV3& sTextureHeader, PVRTuint32& internalformat, PVRTuint32& format, PVRTuint32& type) argument
55 internalformat=0;
68 internalformat=GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
73 internalformat=GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
78 internalformat=GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
83 internalformat=GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
89 internalformat=GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG;
94 internalformat=GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG;
99 internalformat
[all...]
/external/deqp/framework/opengl/simplereference/
H A DsglrContextWrapper.cpp214 void ContextWrapper::glRenderbufferStorage (deUint32 target, deUint32 internalformat, int width, int height) argument
216 m_curCtx->renderbufferStorage(target, internalformat, width, height);
219 void ContextWrapper::glRenderbufferStorageMultisample (deUint32 target, int samples, deUint32 internalformat, int width, int height) argument
221 m_curCtx->renderbufferStorageMultisample(target, samples, internalformat, width, height);
/external/deqp/framework/platform/null/
H A DtcuNullRenderContext.cpp439 GLW_APICALL void GLW_APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params) argument
443 DE_UNREF(internalformat);

Completed in 392 milliseconds

123