Lines Matching refs:internalFormat
2034 find_exact_format(GLint internalFormat, GLenum format, GLenum type)
2042 switch (internalFormat) {
2063 * Given an OpenGL internalFormat value for a texture or surface, return
2071 * \param internalFormat the user value passed to glTexImage2D
2075 * only matters when internalFormat names a generic or
2080 st_choose_format(struct st_context *st, GLenum internalFormat,
2103 if (_mesa_is_compressed_format(st->ctx, internalFormat)
2109 pf = find_exact_format(internalFormat, format, type);
2115 /* search table for internalFormat */
2119 if (mapping->glFormats[j] == internalFormat) {
2140 internalFormat, unsigned sample_count)
2143 if (_mesa_is_depth_or_stencil_format(internalFormat))
2147 return st_choose_format(st, internalFormat, GL_NONE, GL_NONE,
2200 GLint internalFormat,
2222 internalFormat =
2223 _mesa_generic_compressed_format_to_uncompressed_format(internalFormat);
2231 if (_mesa_is_depth_or_stencil_format(internalFormat))
2233 else if (is_renderbuffer || internalFormat == 3 || internalFormat == 4 ||
2234 internalFormat == GL_RGB || internalFormat == GL_RGBA ||
2235 internalFormat == GL_RGB8 || internalFormat == GL_RGBA8 ||
2236 internalFormat == GL_BGRA ||
2237 internalFormat == GL_RGB16F ||
2238 internalFormat == GL_RGBA16F ||
2239 internalFormat == GL_RGB32F ||
2240 internalFormat == GL_RGBA32F)
2248 GLenum baseFormat = _mesa_base_tex_format(ctx, internalFormat);
2250 GLenum iformat = internalFormat;
2256 /* Check if the internalformat is unsized and compatible
2277 pFormat = st_choose_format(st, internalFormat, format, type,
2282 pFormat = st_choose_format(st, internalFormat, format, type,
2289 mFormat = _mesa_glenum_to_compressed_format(internalFormat);
2304 _mesa_enum_to_string(internalFormat),
2320 GLenum internalFormat, int samples[16])
2328 if (_mesa_is_depth_or_stencil_format(internalFormat))
2337 internalFormat = _mesa_get_linear_internalformat(internalFormat);
2342 format = st_choose_format(st, internalFormat, GL_NONE, GL_NONE,
2362 GLenum internalFormat, GLenum pname, GLint *params)
2372 st_QuerySamplesForFormat(ctx, target, internalFormat, params);
2377 num_samples = st_QuerySamplesForFormat(ctx, target, internalFormat,
2392 if (_mesa_is_depth_or_stencil_format(internalFormat))
2397 internalFormat,
2403 params[0] = internalFormat;
2410 _mesa_query_internal_format_default(ctx, target, internalFormat, pname,