panvk/jm: Add a JM barrier on clear AFBC jobs
We need to add a JM barrier after the memset(0) COMPUTE job if we want
to ensure the header reset happens before any texturing from this texture
in subsequent COMPUTE/VERTEX jobs.
Fixes: c95f899305 ("panvk: add a meta command for transitioning image layout
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37158>
This commit is contained in:
committed by
Marge Bot
parent
b2fabf1ffe
commit
dd698919ca
@@ -646,11 +646,12 @@ cmd_clear_afbc_metadata(VkCommandBuffer _cmdbuf,
|
||||
.p = ptr,
|
||||
.layer_or_slice_stride = layer_or_slice_stride,
|
||||
};
|
||||
panlib_clear_afbc_metadata_struct(&precomp_ctx,
|
||||
panlib_3d(
|
||||
slayout->afbc.header.surface_size_B / 16,
|
||||
layers_or_slices, 1),
|
||||
PANLIB_BARRIER_NONE, args);
|
||||
panlib_clear_afbc_metadata_struct(
|
||||
&precomp_ctx,
|
||||
panlib_3d(slayout->afbc.header.surface_size_B / 16,
|
||||
layers_or_slices, 1),
|
||||
PAN_ARCH >= 10 ? PANLIB_BARRIER_NONE : PANLIB_BARRIER_JM_BARRIER,
|
||||
args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user