diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-14 09:45:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-14 09:45:54 +0000 |
commit | 4c58069f5013f0a621503525f7d5193bfe9976b3 (patch) | |
tree | bd8f8a08b889e9a8b99c9de01ae12459d527ea6d /lib/mesa/src/gallium/state_trackers/nine/surface9.h | |
parent | 5caa025e6b62d0456faad86c89f239a14d1eaadb (diff) |
Import Mesa 17.1.6
Diffstat (limited to 'lib/mesa/src/gallium/state_trackers/nine/surface9.h')
-rw-r--r-- | lib/mesa/src/gallium/state_trackers/nine/surface9.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/lib/mesa/src/gallium/state_trackers/nine/surface9.h b/lib/mesa/src/gallium/state_trackers/nine/surface9.h index 476bc8155..7badde4e1 100644 --- a/lib/mesa/src/gallium/state_trackers/nine/surface9.h +++ b/lib/mesa/src/gallium/state_trackers/nine/surface9.h @@ -35,7 +35,6 @@ struct NineSurface9 struct NineResource9 base; /* G3D state */ - struct pipe_context *pipe; struct pipe_transfer *transfer; struct pipe_surface *surface[2]; /* created on-demand (linear, sRGB) */ int lock_count; @@ -52,6 +51,8 @@ struct NineSurface9 enum pipe_format format_conversion; unsigned stride; /* for system memory backing */ unsigned stride_conversion; + + unsigned pending_uploads_counter; /* pending uploads */ }; static inline struct NineSurface9 * NineSurface9( void *data ) @@ -89,15 +90,11 @@ NineSurface9_dtor( struct NineSurface9 *This ); void NineSurface9_MarkContainerDirty( struct NineSurface9 *This ); -struct pipe_surface * -NineSurface9_CreatePipeSurface( struct NineSurface9 *This, const int sRGB ); - static inline struct pipe_surface * NineSurface9_GetSurface( struct NineSurface9 *This, int sRGB ) { - if (This->surface[sRGB]) - return This->surface[sRGB]; - return NineSurface9_CreatePipeSurface(This, sRGB); + assert(This->surface[sRGB]); + return This->surface[sRGB]; } static inline struct pipe_resource * @@ -106,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, |