The X component of the offset is set to the layer index times layer
height which is obviously bogus, return the vertical offset of the
slice as Y component instead. Fixes a few image load/store tests that
use 1D arrays on SKL when forcing it to fall back to untyped reads and
writes.
const struct isl_extent3d image_align_sa =
isl_surf_get_image_alignment_sa(surf);
- uint32_t x = layer * isl_surf_get_array_pitch_sa_rows(surf);
+ uint32_t x = 0;
for (uint32_t l = 0; l < level; ++l) {
uint32_t W = isl_minify(W0, l);
}
*x_offset_sa = x;
- *y_offset_sa = 0;
+ *y_offset_sa = layer * isl_surf_get_array_pitch_sa_rows(surf);
}
void