summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_pipe.h
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 /src/gallium/state_trackers/nine/nine_pipe.h
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 'src/gallium/state_trackers/nine/nine_pipe.h')
-rw-r--r--src/gallium/state_trackers/nine/nine_pipe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/nine_pipe.h b/src/gallium/state_trackers/nine/nine_pipe.h
index 41792f0..4fb6fa3 100644
--- a/src/gallium/state_trackers/nine/nine_pipe.h
+++ b/src/gallium/state_trackers/nine/nine_pipe.h
@@ -284,6 +284,7 @@ d3dformat_to_string(D3DFORMAT fmt)
case D3DFMT_DF24: return "D3DFMT_DF24";
case D3DFMT_INTZ: return "D3DFMT_INTZ";
case D3DFMT_NVDB: return "D3DFMT_NVDB";
+ case D3DFMT_RESZ: return "D3DFMT_RESZ";
case D3DFMT_NULL: return "D3DFMT_NULL";
default:
break;