Lines Matching defs:target

625    const GLenum target = texImage->TexObject->Target;
634 if ((target == GL_TEXTURE_1D ||
635 target == GL_TEXTURE_2D ||
636 target == GL_TEXTURE_RECTANGLE ||
637 _mesa_is_cube_face(target)) &&
846 * Validate the texture target enum supplied to glGetTex(ture)Image or
850 legal_getteximage_target(struct gl_context *ctx, GLenum target, bool dsa)
852 switch (target) {
867 * "An INVALID_ENUM error is generated if the effective target is not
889 * Wrapper for _mesa_select_tex_image() which can handle target being
895 select_tex_image(const struct gl_texture_object *texObj, GLenum target,
900 if (target == GL_TEXTURE_CUBE_MAP) {
903 target = GL_TEXTURE_CUBE_MAP_POSITIVE_X + zoffset;
905 return _mesa_select_tex_image(texObj, target, level);
917 GLenum target, GLint level,
955 /* do special per-target checks */
956 switch (target) {
997 texImage = select_tex_image(texObj, target, level, zoffset);
1018 if (target != GL_TEXTURE_CUBE_MAP) {
1039 if (target != GL_TEXTURE_1D && target != GL_TEXTURE_1D_ARRAY) {
1095 pbo_error_check(struct gl_context *ctx, GLenum target,
1101 const GLuint dimensions = (target == GL_TEXTURE_3D) ? 3 : 2;
1213 GLenum target, GLint level,
1226 maxLevels = _mesa_max_texture_levels(ctx, target);
1241 * effective target is TEXTURE_CUBE_MAP or TEXTURE_CUBE_MAP_ARRAY ,
1248 if (target == GL_TEXTURE_CUBE_MAP && !_mesa_cube_complete(texObj)) {
1265 GLenum target, GLint level,
1274 if (common_error_check(ctx, texObj, target, level, width, height, depth,
1286 if (pbo_error_check(ctx, target, width, height, depth,
1291 texImage = select_tex_image(texObj, target, level, 0);
1307 GLenum target, GLint level,
1317 if (common_error_check(ctx, texObj, target, level, width, height, depth,
1322 if (dimensions_error_check(ctx, texObj, target, level,
1328 if (pbo_error_check(ctx, target, width, height, depth,
1333 texImage = select_tex_image(texObj, target, level, zoffset);
1349 GLenum target, GLint level,
1355 texImage = _mesa_select_tex_image(texObj, target, level);
1361 if (target == GL_TEXTURE_CUBE_MAP) {
1377 * \param target user-provided target, or 0 for DSA
1388 GLenum target, GLint level,
1400 texImage = select_tex_image(texObj, target, level, zoffset);
1417 if (target == GL_TEXTURE_CUBE_MAP) {
1428 firstFace = _mesa_tex_target_to_face(target);
1455 GLenum target, GLint level,
1466 texObj = _mesa_get_current_tex_object(ctx, target);
1471 get_texture_image_dims(texObj, target, level, &width, &height, &depth);
1473 if (getteximage_error_check(ctx, texObj, target, level,
1479 get_texture_image(ctx, texObj, target, level,
1486 _mesa_GetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type,
1492 if (!legal_getteximage_target(ctx, target, false)) {
1497 _get_texture_image(ctx, NULL, target, level, format, type,
1503 _mesa_GetTexImage(GLenum target, GLint level, GLenum format, GLenum type,
1509 if (!legal_getteximage_target(ctx, target, false)) {
1514 _get_texture_image(ctx, NULL, target, level, format, type,
1543 _mesa_GetTextureImageEXT(GLuint texture, GLenum target, GLint level,
1549 _mesa_lookup_or_create_texture(ctx, target, texture,
1556 if (!legal_getteximage_target(ctx, target, true)) {
1561 _get_texture_image(ctx, texObj, target, level, format, type,
1567 _mesa_GetMultiTexImageEXT(GLenum texunit, GLenum target, GLint level,
1575 _mesa_get_texobj_by_target_and_texunit(ctx, target,
1672 GLenum target, GLint level,
1690 maxLevels = _mesa_max_texture_levels(ctx, target);
1697 if (dimensions_error_check(ctx, texObj, target, level,
1703 texImage = select_tex_image(texObj, target, level, zoffset);
1766 GLenum target, GLint level,
1777 texImage = select_tex_image(texObj, target, level, zoffset);
1791 if (target == GL_TEXTURE_CUBE_MAP) {
1807 firstFace = _mesa_tex_target_to_face(target);
1833 _mesa_GetnCompressedTexImageARB(GLenum target, GLint level, GLsizei bufSize,
1841 if (!legal_getteximage_target(ctx, target, false)) {
1846 texObj = _mesa_get_current_tex_object(ctx, target);
1849 get_texture_image_dims(texObj, target, level, &width, &height, &depth);
1851 if (getcompressedteximage_error_check(ctx, texObj, target, level,
1857 get_compressed_texture_image(ctx, texObj, target, level,
1864 _mesa_GetCompressedTexImage(GLenum target, GLint level, GLvoid *pixels)
1871 if (!legal_getteximage_target(ctx, target, false)) {
1876 texObj = _mesa_get_current_tex_object(ctx, target);
1879 get_texture_image_dims(texObj, target, level,
1882 if (getcompressedteximage_error_check(ctx, texObj, target, level,
1888 get_compressed_texture_image(ctx, texObj, target, level,
1895 _mesa_GetCompressedTextureImageEXT(GLuint texture, GLenum target, GLint level,
1903 texObj = _mesa_lookup_or_create_texture(ctx, target, texture,
1922 _mesa_GetCompressedMultiTexImageEXT(GLenum texunit, GLenum target, GLint level,
1930 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,