mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
r300g: fix macrotiling for non-square textures
FDO bug #27338. Signed-off-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
29ec84b0a8
commit
a43618fdc4
1 changed files with 2 additions and 1 deletions
|
|
@ -692,7 +692,8 @@ static void r300_setup_miptree(struct r300_screen* screen,
|
|||
/* Let's see if this miplevel can be macrotiled. */
|
||||
tex->mip_macrotile[i] =
|
||||
(tex->macrotile == R300_BUFFER_TILED &&
|
||||
r300_texture_macro_switch(tex, i, rv350_mode, TILE_WIDTH)) ?
|
||||
r300_texture_macro_switch(tex, i, rv350_mode, TILE_WIDTH) &&
|
||||
r300_texture_macro_switch(tex, i, rv350_mode, TILE_HEIGHT)) ?
|
||||
R300_BUFFER_TILED : R300_BUFFER_LINEAR;
|
||||
|
||||
stride = r300_texture_get_stride(screen, tex, i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue