gallium/u_inlines: add util_copy_image_view

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle
2016-02-06 16:49:17 -05:00
parent f6dc4f5558
commit c02d73af0b
+10
View File
@@ -622,6 +622,16 @@ util_copy_constant_buffer(struct pipe_constant_buffer *dst,
}
}
static inline void
util_copy_image_view(struct pipe_image_view *dst,
const struct pipe_image_view *src)
{
pipe_resource_reference(&dst->resource, src->resource);
dst->format = src->format;
dst->access = src->access;
dst->u = src->u;
}
static inline unsigned
util_max_layer(const struct pipe_resource *r, unsigned level)
{