Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit ccc6905

Browse files
gaoshunlisysopenci
authored andcommitted
Fix a rendering corruption for CCS format texture
This is a workaround solution to fix rendering corruption for CCS format texture when copying the compressed data. TODO: Improve this solution when identifying the true root cause of this issue. Tracked-On: OAM-113382 Signed-off-by: Li,Gaoshun <gaoshun.li@intel.com>
1 parent b56d8d2 commit ccc6905

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/gallium/drivers/iris/iris_resource.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,6 +2711,15 @@ iris_texture_subdata(struct pipe_context *ctx,
27112711
isl_aux_usage_has_compression(res->aux.usage) ||
27122712
resource_is_busy(ice, res) ||
27132713
iris_bo_mmap_mode(res->bo) == IRIS_MMAP_NONE) {
2714+
/* This is a workaround solution to fix rendering corruption
2715+
* for CCS format texture when copying the compressed data.
2716+
*
2717+
* TODO: Improve this solution when identifying the true root cause of this issue.
2718+
*/
2719+
iris_foreach_batch(ice, batch) {
2720+
if (iris_batch_references(batch, res->bo))
2721+
iris_batch_flush(batch);
2722+
}
27142723
return u_default_texture_subdata(ctx, resource, level, usage, box,
27152724
data, stride, layer_stride);
27162725
}

0 commit comments

Comments
 (0)