summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-06-27 16:50:00 -0700
committerKenneth Graunke <[email protected]>2019-06-27 19:06:19 -0700
commit255c71ec07ec1f3af5b996d7b19717014ba946d3 (patch)
tree3bc317b0f757126c0b2df4a6ac71ce2c8a5de1d5 /src/gallium/auxiliary/util
parent0d6fc6f07e62f2c6f9cc5698e241ed83add1354d (diff)
gallium: Make util_copy_image_view handle shader_access
A while back, we added a new field, but failed to update the copier. I believe iris is the only current user of the new field, and it hasn't used the copier, so noone noticed. Fixes: 8b626a22b24 st/mesa: Record shader access qualifiers for images Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_inlines.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
index 567d3d0c542..21b8c162b30 100644
--- a/src/gallium/auxiliary/util/u_inlines.h
+++ b/src/gallium/auxiliary/util/u_inlines.h
@@ -668,11 +668,13 @@ util_copy_image_view(struct pipe_image_view *dst,
pipe_resource_reference(&dst->resource, src->resource);
dst->format = src->format;
dst->access = src->access;
+ dst->shader_access = src->shader_access;
dst->u = src->u;
} else {
pipe_resource_reference(&dst->resource, NULL);
dst->format = PIPE_FORMAT_NONE;
dst->access = 0;
+ dst->shader_access = 0;
memset(&dst->u, 0, sizeof(dst->u));
}
}