On Fri, 2 Jul 2021 at 15:04, Conor McCarthy cmccarthy@codeweavers.com wrote:
- We may be able to detect that by aliasing multiple resources to
the same heap offset.
Would this work by placing a smaller resource at a larger alignment within the same heap area, and check if its data has already been set to the uploaded value?
It doesn't need to be smaller or have a different alignment. Creating two resources with the same properties at the same heap offset should work. If these share the same heap allocation, modifications to one should be visible in the other (after the appropriate barriers, etc.), if they get separate allocations modifications wouldn't be visible.