diff options
author | Axel Davy <[email protected]> | 2015-02-19 17:34:45 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-04-29 08:28:11 +0200 |
commit | 520e36f89cb9048258d9c1ca42de68564ad876a9 (patch) | |
tree | 7e7927cb89fd9f81423ca18018a83ff6e452898e /src/gallium/state_trackers/nine/surface9.h | |
parent | 4c2247ac60f426a6441f964f2204af9f8dc04dc5 (diff) |
st/nine: Simplify Surface9 Managed resources implementation
Remove the Surface9 code for dirty rects, used only for Managed
resources. Instead convey the information to the parent texture.
According to documentation, this seems to be the expected behaviour,
and if documentation is wrong there, that's not a problem since it can
only leads to more texture updates in corner cases.
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 | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gallium/state_trackers/nine/surface9.h b/src/gallium/state_trackers/nine/surface9.h index 7d6932a0f17..aa586f37e3c 100644 --- a/src/gallium/state_trackers/nine/surface9.h +++ b/src/gallium/state_trackers/nine/surface9.h @@ -49,9 +49,6 @@ struct NineSurface9 uint8_t *data; /* system memory backing */ unsigned stride; /* for system memory backing */ - - /* wine doesn't even use these, 2 will be enough */ - struct u_rect dirty_rects[2]; }; static INLINE struct NineSurface9 * NineSurface9( void *data ) @@ -121,14 +118,9 @@ void NineSurface9_AddDirtyRect( struct NineSurface9 *This, const struct pipe_box *box ); -static INLINE void -NineSurface9_ClearDirtyRects( struct NineSurface9 *This ) -{ - memset(&This->dirty_rects, 0, sizeof(This->dirty_rects)); -} - HRESULT -NineSurface9_UploadSelf( struct NineSurface9 *This ); +NineSurface9_UploadSelf( struct NineSurface9 *This, + const struct pipe_box *damaged ); HRESULT NineSurface9_CopySurface( struct NineSurface9 *This, |