diff options
author | Axel Davy <[email protected]> | 2016-12-28 18:32:39 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2017-01-12 20:33:11 +0100 |
commit | 6b87a2a77a459d5c69f296b732d66daa9ff8e223 (patch) | |
tree | 4feb2c30ac5a064faeec85b25a5abec56786648d /src/gallium/state_trackers/nine/surface9.h | |
parent | f895ab8e22dc520304141ba56c1b81d8d6657ccd (diff) |
st/nine: Flush pending commands if needed for surface9 changes
nine_context uses NineSurface9 fields, thus we need to flush
pending commands using the surface before changing the fields.
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 | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/gallium/state_trackers/nine/surface9.h b/src/gallium/state_trackers/nine/surface9.h index 6f416f2de6a..7badde4e172 100644 --- a/src/gallium/state_trackers/nine/surface9.h +++ b/src/gallium/state_trackers/nine/surface9.h @@ -103,22 +103,13 @@ NineSurface9_GetResource( struct NineSurface9 *This ) return This->base.resource; } -static inline void +void NineSurface9_SetResource( struct NineSurface9 *This, - struct pipe_resource *resource, unsigned level ) -{ - This->level = level; - pipe_resource_reference(&This->base.resource, resource); - pipe_surface_reference(&This->surface[0], NULL); - pipe_surface_reference(&This->surface[1], NULL); -} + struct pipe_resource *resource, unsigned level ); -static inline void +void NineSurface9_SetMultiSampleType( struct NineSurface9 *This, - D3DMULTISAMPLE_TYPE mst ) -{ - This->desc.MultiSampleType = mst; -} + D3DMULTISAMPLE_TYPE mst ); void NineSurface9_SetResourceResize( struct NineSurface9 *This, |