diff options
author | Axel Davy <[email protected]> | 2016-12-04 00:19:45 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:47:08 +0100 |
commit | fec0b7f0672b3d4d6507dd705abb9e2a74943401 (patch) | |
tree | e24c0672a6eb3f01d3f197bcdcda001fea82f8af /src/gallium/state_trackers/nine/surface9.h | |
parent | c873a2bd0c5a9fcb6e83f23e4494b5f53d71288b (diff) |
st/nine: Use nine_context_box_upload for surfaces
Use nine_context_box_upload for uploads:
. systemmem surface to default surface
. managed surface internal content to its resource.
Check the uploads are executed before any action
that can alter the data, that is LockRect,
NineSurface9_CopyDefaultToMem and surface destruction.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/surface9.h b/src/gallium/state_trackers/nine/surface9.h index d43739bb2ad..8263060cd57 100644 --- a/src/gallium/state_trackers/nine/surface9.h +++ b/src/gallium/state_trackers/nine/surface9.h @@ -51,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 ) |