intel: Add map_stencil_as_y_tiled to intel_region_get_aligned_offset.
This patch modifies intel_region_get_aligned_offset() to make the appropriate calculation when the blorp engine sets up a W-tiled stencil buffer using a Y-tiled SURFACE_STATE. NOTE: This is a candidate for stable release branches. Acked-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -586,7 +586,7 @@ intel_renderbuffer_tile_offsets(struct intel_renderbuffer *irb,
|
||||
*tile_x = irb->draw_x & mask_x;
|
||||
*tile_y = irb->draw_y & mask_y;
|
||||
return intel_region_get_aligned_offset(region, irb->draw_x & ~mask_x,
|
||||
irb->draw_y & ~mask_y);
|
||||
irb->draw_y & ~mask_y, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user