diff options
author | Eric Anholt <[email protected]> | 2014-08-18 10:31:36 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-18 15:27:43 -0700 |
commit | 63fe494877177d24fd36f9955b69331939b7798c (patch) | |
tree | 35d66547c938970d0e72f3b6f061ed2c225f1297 /src/gallium/drivers/vc4/vc4_program.c | |
parent | a538bab0659c3bd5ed1da068c11b211cf65d6610 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index f7791abb946..642595b70d7 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1403,7 +1403,7 @@ write_texture_p0(struct vc4_context *vc4, struct vc4_resource *rsc = vc4_resource(texture->texture); cl_reloc(vc4, &vc4->uniforms, rsc->bo, - texture->u.tex.last_level); + rsc->slices[0].offset | texture->u.tex.last_level); } static void |