swr: [rasterizer jitter] fix logic op to work with unorm/snorm
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 8 Nov 2016 00:12:23 +0000 (19:12 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 10 Nov 2016 01:10:25 +0000 (20:10 -0500)
commitaed517f98592bd7969f893bbabdb64acf2f6623f
tree1492b007b5ec9c6f8598b80d2b8ecf4299e67be1
parent08d51487e3b8cfb14ca2ece9545b2e2ed344e3cc
swr: [rasterizer jitter] fix logic op to work with unorm/snorm

Most logic op usage is probably going to end up with normalized
textures. Scale the floating point values and convert to integer before
performing the logic operations.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp