mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
etnaviv: Replace unsupported blit debug message with detailed dump and assertion
Replace the basic debug message for unsupported blits with a comprehensive dump of the blit parameters and make it a hard failure. This helps identify exactly what blit operations are not supported and ensures they don't fail silently in debug builds. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37034>
This commit is contained in:
parent
914b60f0dd
commit
6e0f9e8f67
1 changed files with 5 additions and 4 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "pipe/p_state.h"
|
||||
#include "util/compiler.h"
|
||||
#include "util/u_blitter.h"
|
||||
#include "util/u_dump.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_surface.h"
|
||||
|
|
@ -146,10 +147,10 @@ etna_blit(struct pipe_context *pctx, const struct pipe_blit_info *blit_info)
|
|||
}
|
||||
|
||||
if (!util_blitter_is_blit_supported(ctx->blitter, &info)) {
|
||||
DBG("blit unsupported %s -> %s",
|
||||
util_format_short_name(info.src.resource->format),
|
||||
util_format_short_name(info.dst.resource->format));
|
||||
return;
|
||||
fprintf(stderr, "\n");
|
||||
util_dump_blit_info(stderr, &info);
|
||||
fprintf(stderr, "\n\n");
|
||||
UNREACHABLE("Unsupported blit");
|
||||
}
|
||||
|
||||
etna_blit_save_state(ctx, info.render_condition_enable);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue