iris: Fix MOCS for copy regions
These were, unfortunately, backwards. The source is the texture.
The destination is the render target.
Fixes: d8cb76211c
("iris: Fix MOCS for buffer copies")
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15473>
This commit is contained in:
parent
ed2f496ce4
commit
4de13d53fe
|
@ -689,14 +689,14 @@ iris_copy_region(struct blorp_context *blorp,
|
|||
struct blorp_address src_addr = {
|
||||
.buffer = src_res->bo, .offset = src_box->x,
|
||||
.mocs = iris_mocs(src_res->bo, &screen->isl_dev,
|
||||
ISL_SURF_USAGE_RENDER_TARGET_BIT),
|
||||
ISL_SURF_USAGE_TEXTURE_BIT),
|
||||
.local_hint = iris_bo_likely_local(src_res->bo),
|
||||
};
|
||||
struct blorp_address dst_addr = {
|
||||
.buffer = dst_res->bo, .offset = dstx,
|
||||
.reloc_flags = EXEC_OBJECT_WRITE,
|
||||
.mocs = iris_mocs(dst_res->bo, &screen->isl_dev,
|
||||
ISL_SURF_USAGE_TEXTURE_BIT),
|
||||
ISL_SURF_USAGE_RENDER_TARGET_BIT),
|
||||
.local_hint = iris_bo_likely_local(dst_res->bo),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue