mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
intel: added region draw_x/y offsets in x/y_tile_swizzle() funcs
This fixes the second part of bug 23552.
This commit is contained in:
parent
498fcfd315
commit
b7eea8c616
1 changed files with 6 additions and 0 deletions
|
|
@ -163,6 +163,9 @@ static uint32_t x_tile_swizzle(struct intel_renderbuffer *irb,
|
|||
int x_tile_number, y_tile_number;
|
||||
int tile_off, tile_base;
|
||||
|
||||
x += irb->region->draw_x;
|
||||
y += irb->region->draw_y;
|
||||
|
||||
tile_stride = (irb->region->pitch * irb->region->cpp) << 3;
|
||||
|
||||
xbyte = x * irb->region->cpp;
|
||||
|
|
@ -218,6 +221,9 @@ static uint32_t y_tile_swizzle(struct intel_renderbuffer *irb,
|
|||
int x_tile_number, y_tile_number;
|
||||
int tile_off, tile_base;
|
||||
|
||||
x += irb->region->draw_x;
|
||||
y += irb->region->draw_y;
|
||||
|
||||
tile_stride = (irb->region->pitch * irb->region->cpp) << 5;
|
||||
|
||||
xbyte = x * irb->region->cpp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue