svga: add 0.5 in float->int conversion of sample min/max lod
authorBrian Paul <brianp@vmware.com>
Wed, 18 Jan 2012 17:05:25 +0000 (10:05 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Jan 2012 17:44:05 +0000 (10:44 -0700)
commit5abcd198b8e644c0d97c6766c6707e20fe22f0fb
treef14ba1baf02891af6dbd7ec2542cf38da1a93c70
parent84c7c14697c82fe25586f8186b4f47d80a6f05f9
svga: add 0.5 in float->int conversion of sample min/max lod

This makes lod clamping more consistent with other drivers.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_pipe_sampler.c