iris: Allocate coherent buffers for resources flagged as persistent/coherent
If the application requests a coherent resource, we should honor that. We technically don't need to ensure coherency for persistent mappings, but we would have to handle PIPE_BARRIER_MAPPED_BUFFER to ensure that data became visible at the right times. Instead, we just opt for the easy plan and mark them coherent too. Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22878>
This commit is contained in:
committed by
Marge Bot
parent
8b70754753
commit
758bf5f764
@@ -498,7 +498,7 @@ iris_resource_alloc_flags(const struct iris_screen *screen,
|
||||
|
||||
if (templ->flags & (PIPE_RESOURCE_FLAG_MAP_COHERENT |
|
||||
PIPE_RESOURCE_FLAG_MAP_PERSISTENT))
|
||||
flags |= BO_ALLOC_SMEM;
|
||||
flags |= BO_ALLOC_SMEM | BO_ALLOC_COHERENT;
|
||||
|
||||
if (screen->devinfo->verx10 >= 125 && screen->devinfo->has_local_mem &&
|
||||
isl_aux_usage_has_ccs(aux_usage)) {
|
||||
|
||||
Reference in New Issue
Block a user