zink: track invalidation for image resources
an image only has valid data if: * it's imported * it's written to * it's mapped for write Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16877>
This commit is contained in:

committed by
Marge Bot

parent
8575080990
commit
3e2c65281d
@@ -502,6 +502,8 @@ zink_batch_resource_usage_set(struct zink_batch *batch, struct zink_resource *re
|
||||
res->obj->dt_has_data = true;
|
||||
}
|
||||
}
|
||||
if (write && !res->obj->is_buffer)
|
||||
res->valid = true;
|
||||
zink_resource_usage_set(res, batch->state, write);
|
||||
/* multiple array entries are fine */
|
||||
if (!res->obj->coherent && res->obj->persistent_maps)
|
||||
|
Reference in New Issue
Block a user