From b0a5ca5cfc5b65262e834cdfa3cb7c6a1cfa8259 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 30 Mar 2016 16:23:02 -0700 Subject: 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 --- src/intel/isl/isl.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/intel/isl/isl.c') 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) -- cgit v1.2.3