While we might want to employ this orphaning trick one day to avoid stalls
on busy resources it's certainly not as easy as the comment implies, as
this would involve changing all relocs in cached state objects referencing
the resource.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24164>
struct etna_resource *rsc = etna_resource(ptrans->resource);
struct etna_resource_level *res_level = &rsc->levels[ptrans->level];
- /* XXX
- * When writing to a resource that is already in use, replace the resource
- * with a completely new buffer
- * and free the old one using a fenced free.
- * The most tricky case to implement will be: tiled or supertiled surface,
- * partial write, target not aligned to 4/64. */
-
if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture)))
rsc = etna_resource(rsc->texture); /* switch to using the texture resource */