mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radeon: add some debugging info
This commit is contained in:
parent
ca5a7aadb4
commit
e8f0c8ab9d
2 changed files with 25 additions and 0 deletions
|
|
@ -576,6 +576,11 @@ int radeon_validate_texture_miptree(GLcontext * ctx, struct gl_texture_object *t
|
|||
radeon_miptree_unreference(&t->mt);
|
||||
radeon_try_alloc_miptree(rmesa, t);
|
||||
dst_miptree = t->mt;
|
||||
if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "%s: No matching miptree found, allocated new one %p\n", __FUNCTION__, t->mt);
|
||||
}
|
||||
} else if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "%s: Using miptree %p\n", __FUNCTION__, t->mt);
|
||||
}
|
||||
|
||||
const unsigned faces = texObj->Target == GL_TEXTURE_CUBE_MAP ? 6 : 1;
|
||||
|
|
|
|||
|
|
@ -523,6 +523,11 @@ static void teximage_assign_miptree(radeonContextPtr rmesa,
|
|||
radeon_gl_level_to_miptree_level(texObj, level))) {
|
||||
radeon_miptree_unreference(&t->mt);
|
||||
radeon_try_alloc_miptree(rmesa, t);
|
||||
if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "%s: texObj %p, texImage %p, face %d, level %d, "
|
||||
"texObj miptree doesn't match, allocated new miptree %p\n",
|
||||
__FUNCTION__, texObj, texImage, face, level, t->mt);
|
||||
}
|
||||
}
|
||||
|
||||
/* Miptree alocation may have failed,
|
||||
|
|
@ -670,6 +675,11 @@ static void radeon_teximage(
|
|||
}
|
||||
}
|
||||
|
||||
if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "radeon_teximage%dd: texObj %p, texImage %p, face %d, level %d\n",
|
||||
dims, texObj, texImage, face, level);
|
||||
}
|
||||
|
||||
t->validated = GL_FALSE;
|
||||
|
||||
if (ctx->_ImageTransferState & IMAGE_CONVOLUTION_BIT) {
|
||||
|
|
@ -700,6 +710,11 @@ static void radeon_teximage(
|
|||
texImage->Height,
|
||||
texImage->Depth);
|
||||
texImage->Data = _mesa_alloc_texmemory(size);
|
||||
if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "radeon_teximage%dd: texObj %p, texImage %p, "
|
||||
" no miptree assigned, using local memory %p\n",
|
||||
dims, texObj, texImage, texImage->Data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -801,6 +816,11 @@ static void radeon_texsubimage(GLcontext* ctx, int dims, GLenum target, int leve
|
|||
}
|
||||
}
|
||||
|
||||
if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "radeon_texsubimage%dd: texObj %p, texImage %p, face %d, level %d\n",
|
||||
dims, texObj, texImage, radeon_face_for_target(target), level);
|
||||
}
|
||||
|
||||
t->validated = GL_FALSE;
|
||||
if (compressed) {
|
||||
pixels = _mesa_validate_pbo_compressed_teximage(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue