summaryrefslogtreecommitdiffstats
path: root/include/D3D9
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2015-01-07 18:43:20 +0100
committerAxel Davy <axel.davy@ens.fr>2015-02-06 00:07:18 +0100
commit42ac71a4e20c04a2cd7cd441274e5c527012a03c (patch)
tree80ad4134ee3809b9a06639d61f8f96c515968b73 /include/D3D9
parent5c61f6344a93e2bddb1984dcc735b8bc587c5db9 (diff)
downloadexternal_mesa3d-42ac71a4e20c04a2cd7cd441274e5c527012a03c.zip
external_mesa3d-42ac71a4e20c04a2cd7cd441274e5c527012a03c.tar.gz
external_mesa3d-42ac71a4e20c04a2cd7cd441274e5c527012a03c.tar.bz2
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>
Diffstat (limited to 'include/D3D9')
-rw-r--r--include/D3D9/d3d9types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/D3D9/d3d9types.h b/include/D3D9/d3d9types.h
index 456ae9f..859c2f5 100644
--- a/include/D3D9/d3d9types.h
+++ b/include/D3D9/d3d9types.h
@@ -658,6 +658,7 @@ typedef enum _D3DFORMAT {
D3DFMT_NVDB = MAKEFOURCC('N', 'V', 'D', 'B'),
D3DFMT_NV11 = MAKEFOURCC('N', 'V', '1', '1'),
D3DFMT_NV12 = MAKEFOURCC('N', 'V', '1', '2'),
+ D3DFMT_RESZ = MAKEFOURCC('R', 'E', 'S', 'Z'),
D3DFMT_Y210 = MAKEFOURCC('Y', '2', '1', '0'),
D3DFMT_Y216 = MAKEFOURCC('Y', '2', '1', '6'),
D3DFMT_Y410 = MAKEFOURCC('Y', '4', '1', '0')