i965/fs: Don't double-convert integer/boolean uniforms.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Aug 2011 23:42:01 +0000 (16:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 20 Aug 2011 06:32:50 +0000 (23:32 -0700)
commite98ee06776e0ba055e0194836d5813a0bc7e7795
treef5e400c5a6d464eb6fbf348aafb66ba96dfba9fb
parent01d81dedc795005ed235856ce762bb1981655716
i965/fs: Don't double-convert integer/boolean uniforms.

When ctx->Const.NativeIntegers is set, Core Mesa loads integer/boolean
uniforms directly, rather than loading the floating point equivalent.
So, when that's set, we don't need to perform any conversions.

Unfortunately, we can't properly support native integers with the old
vertex shader backend, so this patch leaves them disabled for now.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp