iris uses u_default_buffer_subdata for buffer uploads via a CPU map so
clearing shouldn't be substantially worse. We can do it with BLORP in
the future if we decide it's useful.
[Alyssa: A BLORP implementation is available at
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15931 however nobody
has taken to reviewing that solution.]
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16044>
ctx->buffer_unmap = u_transfer_helper_transfer_unmap;
ctx->texture_unmap = u_transfer_helper_transfer_unmap;
ctx->buffer_subdata = u_default_buffer_subdata;
+ ctx->clear_buffer = u_default_clear_buffer;
ctx->texture_subdata = iris_texture_subdata;
}