mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
i965: Fix byte vs. pixel unit mixup for aligned texture pitch.
I sincerely hope I don't manage to mess this up yet again... Thanks again to Todd Merrill for pointing out the problem and testing the fix on IRC.
This commit is contained in:
parent
45cdb6eb45
commit
48ae5cf09d
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ int intel_miptree_pitch_align (struct intel_context *intel,
|
|||
int pitch)
|
||||
{
|
||||
if (!mt->compressed)
|
||||
pitch = (pitch * mt->cpp + 3) & ~3;
|
||||
pitch = ((pitch * mt->cpp + 3) & ~3) / mt->cpp;
|
||||
|
||||
return pitch;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue