mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
i965: Fix up texture layout for small things with wide pitches (tiled)
We were packing according to the pitch, while the hardware appears to base it on the base level width. With this and the previous commit, fbo-cubemap now matches untiled behavior.
This commit is contained in:
parent
0f328c90db
commit
6c3f696891
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ GLboolean brw_miptree_layout(struct intel_context *intel,
|
|||
pack_y_pitch = ALIGN(mt->height0, align_h);
|
||||
}
|
||||
|
||||
pack_x_pitch = mt->pitch;
|
||||
pack_x_pitch = width;
|
||||
pack_x_nr = 1;
|
||||
|
||||
for (level = mt->first_level ; level <= mt->last_level ; level++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue