Lines Matching defs:tex
533 valid_texture_object(const struct gl_texture_object *tex)
535 switch (tex->Target) {
555 tex->Target, tex->Name);
564 * If 'tex' is non-null, increment its refcount.
570 struct gl_texture_object *tex)
595 if (tex) {
597 assert(valid_texture_object(tex));
598 assert(tex->RefCount > 0);
600 p_atomic_inc(&tex->RefCount);
603 *ptr = tex;
932 _mesa_get_fallback_texture(struct gl_context *ctx, gl_texture_index tex)
934 if (!ctx->Shared->FallbackTex[tex]) {
952 switch (tex) {
1047 ctx->Shared->FallbackTex[tex] = texObj;
1053 return ctx->Shared->FallbackTex[tex];
2097 * Simplest implementation of texture locking: grab the shared tex