summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-24 15:00:31 -0700
committerJason Ekstrand <[email protected]>2016-08-17 14:46:22 -0700
commitba88a9622dbbad5bf2bca7858f91dcf192d7439b (patch)
tree4ca43488d2b1314bc05d20b430a2e1b022f3f8a7 /src/intel/isl/isl.c
parentf6c75df083a65f2525fa366396c1ac8b7e6298eb (diff)
isl: Add functions for computing surface offsets in samples
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r--src/intel/isl/isl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index a713eeb37ad..f65f9c89fc7 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -1475,13 +1475,13 @@ get_image_offset_sa_gen9_1d(const struct isl_surf *surf,
* @invariant logical_array_layer < logical array length of surface
* @invariant logical_z_offset_px < logical depth of surface at level
*/
-static void
-get_image_offset_sa(const struct isl_surf *surf,
- uint32_t level,
- uint32_t logical_array_layer,
- uint32_t logical_z_offset_px,
- uint32_t *x_offset_sa,
- uint32_t *y_offset_sa)
+void
+isl_surf_get_image_offset_sa(const struct isl_surf *surf,
+ uint32_t level,
+ uint32_t logical_array_layer,
+ uint32_t logical_z_offset_px,
+ uint32_t *x_offset_sa,
+ uint32_t *y_offset_sa)
{
assert(level < surf->levels);
assert(logical_array_layer < surf->logical_level0_px.array_len);
@@ -1524,11 +1524,11 @@ isl_surf_get_image_offset_el(const struct isl_surf *surf,
< isl_minify(surf->logical_level0_px.depth, level));
uint32_t x_offset_sa, y_offset_sa;
- get_image_offset_sa(surf, level,
- logical_array_layer,
- logical_z_offset_px,
- &x_offset_sa,
- &y_offset_sa);
+ isl_surf_get_image_offset_sa(surf, level,
+ logical_array_layer,
+ logical_z_offset_px,
+ &x_offset_sa,
+ &y_offset_sa);
*x_offset_el = x_offset_sa / fmtl->bw;
*y_offset_el = y_offset_sa / fmtl->bh;