broadcom/vc5: Shift the min/max lod fields by the BASE_LEVEL.
authorEric Anholt <eric@anholt.net>
Thu, 2 Nov 2017 19:49:46 +0000 (12:49 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Nov 2017 17:40:25 +0000 (09:40 -0800)
commiteeb9e80272cb0dd795c4197962f2af3398747dda
tree6cca15d9f7b2ad5772da3cc89f5af4dbc23f9880
parent521e1d0275e7b237ee676e0426be1b734f270944
broadcom/vc5: Shift the min/max lod fields by the BASE_LEVEL.

The lod clamping is what limits you between base and last level, and the
base level field is just there to help decide where the min/mag change
happens.

Fixes tex-miplevel-selection GL2:texture()
src/gallium/drivers/vc5/vc5_emit.c
src/gallium/drivers/vc5/vc5_state.c