st/nine: Fix usage of rasterizer multisample bit.
authorAxel Davy <axel.davy@ens.fr>
Sun, 3 Apr 2016 11:04:39 +0000 (13:04 +0200)
committerAxel Davy <axel.davy@ens.fr>
Wed, 18 May 2016 21:37:14 +0000 (23:37 +0200)
commit9cae3cdc890b2aa261d635667a5850929a0913f5
tree5e5e4fb4ea7d3ba8de4ad833972a4d70a6e0d248
parentf297e7de0f3fc0bd4fec483d4bf778a9678992c7
st/nine: Fix usage of rasterizer multisample bit.

pipe_rasterizer multisample bit should be enabled only when really
wanting to do multisampling, thus we should disable when not having
msaa render target.
This fixes some depth calculation precision issues on radeon.
Also disable it when depth and stencil tests are disabled, since in that
case multisampling is same as not multisampled.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/nine_pipe.c
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h