swr: [rasterizer jit] use signed integer representation for logic op
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Nov 2016 23:02:31 +0000 (18:02 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 30 Nov 2016 01:55:00 +0000 (20:55 -0500)
commitddf0f097e74d57858238fcdb13003ab5c974abc3
treeef18800e391204ac27245a8840d4cf3dfa3be263
parent8ed703cfa6628a6ee40de4c5635b493986da1a95
swr: [rasterizer jit] use signed integer representation for logic op

Instead of (incorrectly) biasing the snorm value to make it look like a
unorm, just use signed integer math.

This fixes arb_color_buffer_float-render GL_RGBA8_SNORM

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