diff options
author | Patrick Rudolph <[email protected]> | 2016-09-22 17:03:17 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-10 23:43:51 +0200 |
commit | 60624be2033f06b414cf76794c2f3b061dc28332 (patch) | |
tree | a85df52e8af5b9299206723db714da8f8d0851c1 /src/gallium/state_trackers/nine/surface9.h | |
parent | 8a50b1244fcb77334dc9d8e470061cd5f9537375 (diff) |
st/nine: Implement MSAA quality levels
Advertise quality levels:
Each supported multisample count matches to one quality level.
The application doesn't know how much samples each quality level has.
For that reason it's not possible to set the multisample mask.
Return errors on quality level missmatch.
Fixes several old games not having multisample support until now.
Fix for issue #73.
Signed-off-by: Patrick Rudolph <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/surface9.h')
-rw-r--r-- | src/gallium/state_trackers/nine/surface9.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/surface9.h b/src/gallium/state_trackers/nine/surface9.h index a83e8dd4c71..476bc81557a 100644 --- a/src/gallium/state_trackers/nine/surface9.h +++ b/src/gallium/state_trackers/nine/surface9.h @@ -116,6 +116,13 @@ NineSurface9_SetResource( struct NineSurface9 *This, pipe_surface_reference(&This->surface[1], NULL); } +static inline void +NineSurface9_SetMultiSampleType( struct NineSurface9 *This, + D3DMULTISAMPLE_TYPE mst ) +{ + This->desc.MultiSampleType = mst; +} + void NineSurface9_SetResourceResize( struct NineSurface9 *This, struct pipe_resource *resource ); |