st/nine: Implement RESZ hack
authorAxel Davy <axel.davy@ens.fr>
Wed, 7 Jan 2015 17:43:20 +0000 (18:43 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:18 +0000 (00:07 +0100)
commit42ac71a4e20c04a2cd7cd441274e5c527012a03c
tree80ad4134ee3809b9a06639d61f8f96c515968b73
parent5c61f6344a93e2bddb1984dcc735b8bc587c5db9
st/nine: Implement RESZ hack

This D3D hack allows to resolve a multisampled
depth buffer into a single sampled one.

Note that the implementation is slightly incorrect.
When querying the content of D3DRS_POINTSIZE,
it should return the resz code if it has been set.
This behaviour will be implemented when state changes
will be reworked. For now the current behaviour is ok,
since apps use the D3DCREATE_PUREDEVICE flag when creating
the device, which means they won't read states and in exchange
get better performance.

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
include/D3D9/d3d9types.h
src/gallium/state_trackers/nine/adapter9.c
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/nine_pipe.h