mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 06:00:22 +01:00
gallium/tc: warn if an app is incompatible with cpu_storage
Instead of silently ignoring unmap calls. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15074>
This commit is contained in:
parent
a5a8e19741
commit
52ceb9dcb6
1 changed files with 7 additions and 0 deletions
|
|
@ -2459,6 +2459,13 @@ tc_buffer_unmap(struct pipe_context *_pipe, struct pipe_transfer *transfer)
|
|||
0, tres->b.width0, tres->cpu_storage);
|
||||
/* This shouldn't have been freed by buffer_subdata. */
|
||||
assert(tres->cpu_storage);
|
||||
} else {
|
||||
static bool warned_once = false;
|
||||
if (!warned_once) {
|
||||
fprintf(stderr, "This application is incompatible with cpu_storage.\n");
|
||||
fprintf(stderr, "Use tc_max_cpu_storage_size=0 to disable it and report this issue to Mesa.\n");
|
||||
warned_once = true;
|
||||
}
|
||||
}
|
||||
|
||||
tc_drop_resource_reference(ttrans->staging);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue