summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-30 16:23:02 -0700
committerJason Ekstrand <[email protected]>2016-04-08 15:58:01 -0700
commitb0a5ca5cfc5b65262e834cdfa3cb7c6a1cfa8259 (patch)
tree7d746176c597320b34c961ac459d952651eaf474 /src/intel/isl/isl.c
parentb37502b9832f02626b0caca22500b46ebbbe8007 (diff)
isl: Remove surf_get_intratile_offset_el
The intratile offset may not be a multiple of the element size so this calculation is invalid. Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r--src/intel/isl/isl.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 37d8bcba078..0eaa8087c71 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -1452,36 +1452,6 @@ isl_tiling_get_intratile_offset_el(const struct isl_device *dev,
*y_offset_el = small_y_offset_el;
}
-void
-isl_surf_get_image_intratile_offset_el(const struct isl_device *dev,
- const struct isl_surf *surf,
- uint32_t level,
- uint32_t logical_array_layer,
- uint32_t logical_z_offset,
- uint32_t *base_address_offset,
- uint32_t *x_offset_el,
- uint32_t *y_offset_el)
-{
- const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
-
- uint32_t total_x_offset_el;
- uint32_t total_y_offset_el;
- isl_surf_get_image_offset_el(surf, level,
- logical_array_layer,
- logical_z_offset,
- &total_x_offset_el,
- &total_y_offset_el);
-
-
- isl_tiling_get_intratile_offset_el(dev, surf->tiling, fmtl->bs,
- surf->row_pitch,
- total_x_offset_el,
- total_y_offset_el,
- base_address_offset,
- x_offset_el,
- y_offset_el);
-}
-
uint32_t
isl_surf_get_depth_format(const struct isl_device *dev,
const struct isl_surf *surf)