Lines Matching refs:target
308 GLenum target,
315 const GLuint numFaces = _mesa_num_tex_faces(target);
320 texObj->Target = target;
326 const GLenum faceTarget = _mesa_cube_face_target(target, face);
341 _mesa_next_mipmap_level_size(target, 0,
358 * Check for compatible target
368 | Original target | Valid new targets |
425 "glTextureView(illegal target=%s)",
467 GLenum target, GLuint levels)
472 texImage = _mesa_select_tex_image(texObj, target, 0);
478 * If the texture target is TEXTURE_1D_ARRAY then
480 * If the texture target is TEXTURE_2D_ARRAY, TEXTURE_CUBE_MAP_ARRAY,
483 * If the texture target is TEXTURE_CUBE_MAP, then
485 * For any other texture target, TEXTURE_VIEW_NUM_LAYERS becomes 1.
498 switch (target) {
532 struct gl_texture_object *texObj, GLenum target,
543 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
558 /* Adjust width, height, depth to be appropriate for new target */
559 switch (target) {
577 /* If the new texture's target is TEXTURE_CUBE_MAP, the clamped
594 /* If the new texture's target is TEXTURE_CUBE_MAP_ARRAY,
612 * supported dimensions of the new target, the error INVALID_OPERATION is
614 * target and its width is greater than MAX_CUBE_MAP_TEXTURE_SIZE, an
618 dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, 0,
626 sizeOK = st_TestProxyTexImage(ctx, target, 1, 0, texFormat,
635 /* If <target> is TEXTURE_1D, TEXTURE_2D, TEXTURE_3D, TEXTURE_RECTANGLE,
639 switch (target) {
657 /* If the new texture's target is TEXTURE_CUBE_MAP or
662 if ((target == GL_TEXTURE_CUBE_MAP || target == GL_TEXTURE_CUBE_MAP_ARRAY)
671 /* When the original texture's target is TEXTURE_CUBE_MAP, the layer
686 if (!initialize_texture_fields(ctx, target, texObj, newViewNumLevels,
701 texObj->Target = target;
702 texObj->TargetIndex = _mesa_tex_target_to_index(ctx, target);
711 _mesa_TextureView_no_error(GLuint texture, GLenum target, GLuint origtexture,
724 texture_view(ctx, origTexObj, texObj, target, internalformat, minlevel,
729 _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
742 texture, _mesa_enum_to_string(target), origtexture,
789 /* If <texture> has already been bound and given a target, then
798 /* Check for compatible target */
799 if (!target_valid(ctx, origTexObj->Target, target)) {
839 texture_view(ctx, origTexObj, texObj, target, internalformat, minlevel,