vc4: Fix multi-level texture setup.
authorEric Anholt <eric@anholt.net>
Mon, 18 Aug 2014 17:31:36 +0000 (10:31 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 18 Aug 2014 22:27:43 +0000 (15:27 -0700)
commit63fe494877177d24fd36f9955b69331939b7798c
tree35d66547c938970d0e72f3b6f061ed2c225f1297
parenta538bab0659c3bd5ed1da068c11b211cf65d6610
vc4: Fix multi-level texture setup.

We weren't accounting for the level 0 offset in the texture setup (so it
only worked if it happened to be a single-level texture), and doing so
required that we get the level 0 offset page aligned so that the offset
bits don't get interpreted as the texture format and such.
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_resource.c