OSDN Git Service

st/nine: Use fast clears more often for MRTs
authorAxel Davy <axel.davy@ens.fr>
Mon, 4 Jan 2016 15:15:18 +0000 (16:15 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commitee31f0fed4bd97e3c9a0c4547ad908d55607f532
tree1646ad08163061b5d5b2bf578b657952ca19c322
parente85ef7d8e501b3f0a94d8e53fbd3372ba24b89ec
st/nine: Use fast clears more often for MRTs

This enables to use fast clears in the following
case:

pixel shader renders to 1 RT
4 RT bound
clear
new pixel shader bound that renders to 4 RTs

Previously the fast clear path wouldn't be hit,
because when trying the fast clear path,
the framebuffer state would be configured for 1 RT,
instead of 4.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h
src/gallium/state_trackers/nine/swapchain9.c