Lines Matching refs:target

65 _legal_parameters(struct gl_context *ctx, GLenum target, GLenum internalformat,
73 * "The INVALID_ENUM error is generated if the <target> parameter to
76 switch(target){
89 * "If the <target> parameter to GetInternalformativ is not one of
94 "glGetInternalformativ(target=%s)",
95 _mesa_enum_to_string(target));
112 "glGetInternalformativ(target=%s)",
113 _mesa_enum_to_string(target));
121 "glGetInternalformativ(target=%s)",
122 _mesa_enum_to_string(target));
275 "glGetInternalformativ(target=%s)",
276 _mesa_enum_to_string(target));
416 _is_target_supported(struct gl_context *ctx, GLenum target)
420 * "if a particular type of <target> is not supported by the
426 switch(target){
476 unreachable("invalid target");
483 _is_resource_supported(struct gl_context *ctx, GLenum target,
490 * <internalformat> and <target>. If the particular <target> and
512 switch(target){
528 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalformat))
533 !_mesa_target_can_be_compressed(ctx, target, internalformat, NULL))
563 unreachable("bad target");
570 _is_internalformat_supported(struct gl_context *ctx, GLenum target,
591 * "If the particualar <target> and <internalformat> combination do not make
592 * sense, or if a particular type of <target> is not supported by the
598 if (target == GL_RENDERBUFFER) {
602 } else if (target == GL_TEXTURE_BUFFER) {
614 st_QueryInternalFormat(ctx, target, internalformat,
622 GLenum target)
624 switch (target) {
652 _mesa_query_internal_format_default(struct gl_context *ctx, GLenum target,
656 (void) target;
769 * pname for a Getinternalformat pname/target combination. target/pname
778 _equivalent_size_pname(GLenum target,
781 switch (target) {
818 * Returns the dimensions associated to a target. GL_TEXTURE_BUFFER and
823 _get_target_dimensions(GLenum target)
825 switch(target) {
831 return _mesa_get_texture_dimensions(target);
837 * example, if querying GL_MAX_HEIGHT, it is assumed that your target would
867 _mesa_is_multisample_target(GLenum target)
869 switch(target) {
880 _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
895 if (!_legal_parameters(ctx, target, internalformat, pname, bufSize, params))
906 if (!_is_target_supported(ctx, target) ||
907 !_is_internalformat_supported(ctx, target, internalformat) ||
908 !_is_resource_supported(ctx, target, internalformat, pname))
919 * stencil-renderable (as defined in section 4.4.4), or if <target>
924 if ((target != GL_RENDERBUFFER &&
925 target != GL_TEXTURE_2D_MULTISAMPLE &&
926 target != GL_TEXTURE_2D_MULTISAMPLE_ARRAY) ||
944 st_QueryInternalFormat(ctx, target, internalformat, pname,
968 st_QueryInternalFormat(ctx, target, internalformat, pname,
988 if (target != GL_RENDERBUFFER) {
999 texformat = st_ChooseTextureFormat(ctx, target, internalformat,
1021 target != GL_RENDERBUFFER &&
1022 target != GL_TEXTURE_BUFFER)
1067 dimensions = _get_target_dimensions(target);
1072 get_pname = _equivalent_size_pname(target, pname);
1084 if (!_mesa_is_array_texture(target))
1106 !_mesa_is_multisample_target(target))
1109 _mesa_GetInternalformativ(target, internalformat,
1117 if (_mesa_is_cube_map_texture(target))
1186 _legal_target_for_framebuffer_texture_layer(ctx, target))
1194 if (target == GL_TEXTURE_BUFFER ||
1198 st_QueryInternalFormat(ctx, target, internalformat, pname,
1205 st_QueryInternalFormat(ctx, target, internalformat, pname,
1213 st_QueryInternalFormat(ctx, target, internalformat, pname,
1220 if (!_mesa_is_valid_generate_texture_mipmap_target(ctx, target) ||
1245 st_QueryInternalFormat(ctx, target, internalformat, pname,
1265 st_QueryInternalFormat(ctx, target, internalformat, pname,
1275 st_QueryInternalFormat(ctx, target, internalformat, pname,
1282 target == GL_RENDERBUFFER ||
1287 st_QueryInternalFormat(ctx, target, internalformat, pname,
1295 if (!_mesa_target_allows_setting_sampler_parameters(target))
1301 if (target == GL_TEXTURE_BUFFER)
1308 st_QueryInternalFormat(ctx, target, internalformat, pname,
1318 if (target == GL_RENDERBUFFER)
1332 st_QueryInternalFormat(ctx, target, internalformat, pname,
1350 /* Validate the target for shadow and gather operations */
1351 switch (target) {
1370 st_QueryInternalFormat(ctx, target, internalformat, pname,
1385 if (target == GL_RENDERBUFFER ||
1389 st_QueryInternalFormat(ctx, target, internalformat, pname,
1397 st_QueryInternalFormat(ctx, target, internalformat, pname,
1405 target == GL_RENDERBUFFER)
1419 target == GL_RENDERBUFFER)
1429 target == GL_RENDERBUFFER ||
1450 target == GL_RENDERBUFFER)
1471 * the same value that GetTexParameter. So if the target is not valid
1473 * is the same target check used by GetTexParameter.
1475 int targetIndex = _mesa_tex_target_to_index(ctx, target);
1486 struct gl_texture_object *tex_obj = _mesa_new_texture_object(ctx, 0, target);
1497 if (target == GL_RENDERBUFFER)
1510 st_QueryInternalFormat(ctx, target, internalformat, pname,
1549 if (target != GL_TEXTURE_BUFFER)
1552 st_QueryInternalFormat(ctx, target, internalformat, pname,
1559 target == GL_TEXTURE_BUFFER ||
1560 target == GL_RENDERBUFFER)
1564 st_QueryInternalFormat(ctx, target, internalformat, pname,
1578 st_QueryInternalFormat(ctx, target, internalformat, pname,
1586 st_QueryInternalFormat(ctx, target, internalformat, pname,
1596 st_QueryInternalFormat(ctx, target, internalformat, pname, buffer);
1623 _mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
1657 _mesa_GetInternalformativ(target, internalformat, pname, callSize, params32);