panfrost: fix read/write resource confusion in afbc_pack
We read the source rather than write it, due to a typo we were
not setting this correctly though.
Fixes: bc55d150a9
("panfrost: Add support for AFBC packing")
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32597>
This commit is contained in:
@@ -3354,7 +3354,7 @@ panfrost_afbc_pack(struct panfrost_batch *batch, struct panfrost_resource *src,
|
||||
.dst_stride = dst_slice->afbc.stride,
|
||||
};
|
||||
|
||||
panfrost_batch_write_rsrc(batch, src, PIPE_SHADER_COMPUTE);
|
||||
panfrost_batch_read_rsrc(batch, src, PIPE_SHADER_COMPUTE);
|
||||
panfrost_batch_write_bo(batch, dst, PIPE_SHADER_COMPUTE);
|
||||
panfrost_batch_add_bo(batch, metadata, PIPE_SHADER_COMPUTE);
|
||||
|
||||
|
Reference in New Issue
Block a user