radeonsi: don't abort for descriptor failures, let the winsys handle it

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24732>
This commit is contained in:
Marek Olšák 2023-08-06 22:05:56 -04:00 committed by Marge Bot
parent 784492a363
commit 47a57416cf

View file

@ -137,8 +137,8 @@ static void si_upload_descriptors(struct si_context *sctx, struct si_descriptors
si_optimal_tcc_alignment(sctx, upload_size), &buffer_offset,
(struct pipe_resource **)&desc->buffer, (void **)&ptr);
if (!desc->buffer) {
fprintf(stderr, "radeonsi: not enough memory to upload descriptors\n");
abort();
sctx->ws->ctx_set_sw_reset_status(sctx->ctx, PIPE_GUILTY_CONTEXT_RESET,
"radeonsi: not enough memory to upload descriptors\n");
return;
}