vc4: Fix subimage accesses to LT textures.
authorEric Anholt <eric@anholt.net>
Fri, 15 Apr 2016 18:43:00 +0000 (11:43 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 15 Apr 2016 18:57:17 +0000 (11:57 -0700)
commitf6d21bcd6b5cd5073a571034ec640177b0abf82d
tree4ace47da0f28354605909bf40eeb189746315034
parentade3108bb5b074013417b31e61b8077ccefb7484
vc4: Fix subimage accesses to LT textures.

This code started out like the T case, iterating over utile offsets, but I
had partially switched it to iterating over pixel offsets.  I hadn't
caught this before because it's unusual to do piecemeal uploads to small
textures.

Fixes bad text rendering in QT5 apps, which use a 256x16 glyph cache.
Also fixes 6 piglit tests related to glTexSubImage() and
glGetTexSubImage().

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/vc4/vc4_tiling.c