broadcom/vc5: Fix BASE_LEVEL handling with txl.
authorEric Anholt <eric@anholt.net>
Wed, 22 Nov 2017 00:32:33 +0000 (16:32 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 22 Nov 2017 18:56:31 +0000 (10:56 -0800)
commit6a78416dabdf0b7b80471dd0c636164c8f4012e0
treedb95538b434d7e66e87588d42be86db1fdd5344a
parentc55813c22e2099d59dbff81b9202b5ce70926e45
broadcom/vc5: Fix BASE_LEVEL handling with txl.

The HW doesn't add the base level anywhere (the min/max lod clamping is
what does base level), so we need to add it manually in this case.

Fixes piglit tex-miplevel-selection *Lod 2D.
src/broadcom/compiler/nir_to_vir.c
src/gallium/drivers/vc5/vc5_uniforms.c