mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
cd21d32fe4
commit
f32ac20862
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue