From: Topi Pohjolainen Date: Wed, 28 Jun 2017 06:22:14 +0000 (+0300) Subject: i965/wm: Use level offsets directly X-Git-Tag: upstream/18.1.0~7708 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91608e4ac1d7c9629b1a26878232406ea2cfbd38;p=platform%2Fupstream%2Fmesa.git i965/wm: Use level offsets directly dropping dependency to slice table. Reviewed-by: Jason Ekstrand Signed-off-by: Topi Pohjolainen --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index d88a2fb..67dc9d8 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -81,8 +81,8 @@ brw_emit_surface_state(struct brw_context *brw, uint32_t mocs, uint32_t *surf_offset, int surf_index, unsigned read_domains, unsigned write_domains) { - uint32_t tile_x = mt->level[0].slice[0].x_offset; - uint32_t tile_y = mt->level[0].slice[0].y_offset; + uint32_t tile_x = mt->level[0].level_x; + uint32_t tile_y = mt->level[0].level_y; uint32_t offset = mt->offset; struct isl_surf surf;