iris: Use u_default_clear_buffer

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>
This commit is contained in:
Jason Ekstrand 2022-04-19 12:39:59 -05:00 committed by Marge Bot
parent cd21d32fe4
commit f32ac20862

View file

@ -2680,5 +2680,6 @@ iris_init_resource_functions(struct pipe_context *ctx)
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;
}