softpipe: Fix textureLod with nonzero GL_TEXTURE_LOD_BIAS value
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Thu, 10 Sep 2015 12:15:52 +0000 (14:15 +0200)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Sep 2015 15:45:13 +0000 (09:45 -0600)
commitbdc69552ca0268fa489daa215dff7db96fdbeb1d
treee1c84426c4504c9db9c50edfaafe9c66e54604b3
parent85500fe2e154c1664dc3a89f1e58e9a9c0dff012
softpipe: Fix textureLod with nonzero GL_TEXTURE_LOD_BIAS value

The level-of-detail bias wasn't simply added in the explicit LOD case.
This case seems to be tested only in piglit's
fs-texturequerylod-nearest-biased test, which is currently skipped, as
softpipe does not support textureQueryLod at the moment.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c