mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
iris: Fix MOCS for buffer copies
We were passing a MOCS of 0, which is uncached. Yikes.
Fixes: c5b22441f1 ("iris: Fix buffer -> buffer copy_region")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
parent
256d48eb8c
commit
d8cb76211c
1 changed files with 4 additions and 0 deletions
|
|
@ -642,10 +642,14 @@ iris_copy_region(struct blorp_context *blorp,
|
||||||
if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) {
|
if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) {
|
||||||
struct blorp_address src_addr = {
|
struct blorp_address src_addr = {
|
||||||
.buffer = iris_resource_bo(src), .offset = src_box->x,
|
.buffer = iris_resource_bo(src), .offset = src_box->x,
|
||||||
|
.mocs = iris_mocs(src_res->bo, &screen->isl_dev,
|
||||||
|
ISL_SURF_USAGE_RENDER_TARGET_BIT),
|
||||||
};
|
};
|
||||||
struct blorp_address dst_addr = {
|
struct blorp_address dst_addr = {
|
||||||
.buffer = iris_resource_bo(dst), .offset = dstx,
|
.buffer = iris_resource_bo(dst), .offset = dstx,
|
||||||
.reloc_flags = EXEC_OBJECT_WRITE,
|
.reloc_flags = EXEC_OBJECT_WRITE,
|
||||||
|
.mocs = iris_mocs(dst_res->bo, &screen->isl_dev,
|
||||||
|
ISL_SURF_USAGE_TEXTURE_BIT),
|
||||||
};
|
};
|
||||||
|
|
||||||
iris_emit_buffer_barrier_for(batch, iris_resource_bo(src),
|
iris_emit_buffer_barrier_for(batch, iris_resource_bo(src),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue