st/nine: NineDevice9_Clear skip fastpath for bigger depth-buffers
authorPatrick Rudolph <siro@das-labor.org>
Fri, 20 Feb 2015 14:48:57 +0000 (15:48 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 29 Apr 2015 06:28:10 +0000 (08:28 +0200)
commit77a38d2088678fa756aca61592777f12e245ac0c
tree3320dbf7f2a2464cbc78132848a4954b1c6fb22e
parent716bef2643367d3696aa20ab7178cbe19bf78abc
st/nine: NineDevice9_Clear skip fastpath for bigger depth-buffers

This adds an additional check to make sure the bound depth-buffer doesn't
exceed the rendertarget size when clearing depth and color buffer at once.
D3D9 clears only a rectangle with the same dimensions as the viewport, leaving
other parts of the depth-buffer intact.

This fixes failing WINE test visual.c:depth_buffer_test()

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