mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +02:00
if (tex width < 4), mipmap calculation will be out of range
This commit is contained in:
parent
9a94dae4c2
commit
b4d9c0048f
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ GLboolean brw_miptree_layout( struct intel_mipmap_tree *mt )
|
|||
|
||||
/* Layout_below: step right after second mipmap.
|
||||
*/
|
||||
if (level == mt->first_level + 1) {
|
||||
if (level == mt->first_level + 1 && mt->pitch > 4) {
|
||||
x += mt->pitch / 2;
|
||||
x = (x + 3) & ~ 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue