{ "cs", DBG_CS, "Command submissions" },
{ "draw", DBG_DRAW, "Draw and emit" },
{ "surf", DBG_SURF, "Surface drawing" },
+ { "tex", DBG_TEX, "Textures" },
+ { "fall", DBG_FALL, "Fallbacks" },
{ "all", ~0, "Convenience option that enables all debug flags" },
if (!pipe->screen->is_format_supported(pipe->screen, dest->format,
PIPE_TEXTURE_2D, PIPE_TEXTURE_USAGE_RENDER_TARGET, 0)) {
fallback:
- DBG(r300, DBG_SURF, "r300: Falling back on surface clear...\n");
+ DBG(r300, DBG_SURF | DBG_FALL,
+ "r300: Falling back on surface clear...\n");
util_surface_fill(pipe, dest, x, y, w, h, color);
return;
}
if (!r300->winsys->validate(r300->winsys)) {
r300->context.flush(&r300->context, 0, NULL);
if (invalid) {
- DBG(r300, DBG_SURF, "r300: Stuck in validation loop, gonna fallback.");
+ DBG(r300, DBG_SURF | DBG_FALL, "r300: Stuck in validation loop.");
goto fallback;
}
invalid = TRUE;
!pipe->screen->is_format_supported(pipe->screen, dest->format,
PIPE_TEXTURE_2D, PIPE_TEXTURE_USAGE_RENDER_TARGET, 0)) {
fallback:
- DBG(r300, DBG_SURF, "r300: Falling back on surface_copy\n");
+ DBG(r300, DBG_SURF | DBG_FALL, "r300: Falling back on surface_copy\n");
util_surface_copy(pipe, FALSE, dest, destx, desty, src,
srcx, srcy, w, h);
return;
if (!r300->winsys->validate(r300->winsys)) {
r300->context.flush(&r300->context, 0, NULL);
if (invalid) {
- DBG(r300, DBG_SURF, "r300: Stuck in validation loop, gonna fallback.");
+ DBG(r300, DBG_SURF | DBG_FALL, "r300: Stuck in validation loop.");
goto fallback;
}
invalid = TRUE;