Skip to content

r600: Elide downloads for discarded and immutable compute memories.

Jason Volk requested to merge jevolk/mesa:r600_discard into main

Compute memory item demotion invokes a device to host transfer unconditionally, but there are at least two cases where this is not necessary:

  1. The item is mapped for discarding with PIPE_MAP_DISCARD_RANGE (e.g. CL_MAP_WRITE_INVALIDATE_REGION).

  2. The item cannot be written to by the device.

Merge request reports