Mesa (master): iris: Make some offset math helpers take a const isl_surf pointer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 23 22:47:23 UTC 2019
Module: Mesa
Branch: master
Commit: 38db20245b3f1e12a0d2535020ba61b42491c8c7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=38db20245b3f1e12a0d2535020ba61b42491c8c7
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Mar 14 01:19:59 2019 -0700
iris: Make some offset math helpers take a const isl_surf pointer
---
src/gallium/drivers/iris/iris_resource.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index b1fdf9e0afc..0e9e42feaa0 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -1058,7 +1058,7 @@ iris_map_copy_region(struct iris_transfer *map)
}
static void
-get_image_offset_el(struct isl_surf *surf, unsigned level, unsigned z,
+get_image_offset_el(const struct isl_surf *surf, unsigned level, unsigned z,
unsigned *out_x0_el, unsigned *out_y0_el)
{
if (surf->dim == ISL_SURF_DIM_3D) {
@@ -1212,7 +1212,7 @@ iris_map_s8(struct iris_transfer *map)
* xs are in units of bytes and ys are in units of strides.
*/
static inline void
-tile_extents(struct isl_surf *surf,
+tile_extents(const struct isl_surf *surf,
const struct pipe_box *box,
unsigned level, int z,
unsigned *x1_B, unsigned *x2_B,
More information about the mesa-commit
mailing list