swr: [rasterizer core/jitter] fix alpha test bug
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 3 Nov 2016 18:33:13 +0000 (13:33 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 14 Nov 2016 15:02:36 +0000 (09:02 -0600)
commitcee66dd2aa182ba30130bef3298444667753b051
tree3c9183cde23aebf0a4d63ee2a37140508b22673b
parent5912552947cc84e794543589388d18aaf4ff6c86
swr: [rasterizer core/jitter] fix alpha test bug

Alpha from render target 0 should always be used for alpha test for all
render targets, according to GL and DX9 specs. Previously we were using
alpha from the current render target.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/backend.h
src/gallium/drivers/swr/rasterizer/core/state.h
src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp