summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/volume9.h
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-05-05 23:51:24 +0200
committerAxel Davy <[email protected]>2015-08-21 22:21:45 +0200
commit3f36ad732c7fbe8fd38aa852c3699101fdd5041d (patch)
tree17dc3bd5562f02868375fce3c51be741698644de /src/gallium/state_trackers/nine/volume9.h
parentab0643225e2718884eea874b67b55eb4aa936e53 (diff)
st/nine: Simplify Volume9 dirty region tracking
Similar to what was done for Surface9, track the dirty region only in VolumeTexture9. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/volume9.h')
-rw-r--r--src/gallium/state_trackers/nine/volume9.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/nine/volume9.h b/src/gallium/state_trackers/nine/volume9.h
index fae24310a50..8f53b827ed5 100644
--- a/src/gallium/state_trackers/nine/volume9.h
+++ b/src/gallium/state_trackers/nine/volume9.h
@@ -50,8 +50,6 @@ struct NineVolume9
struct pipe_transfer *transfer;
unsigned lock_count;
- struct pipe_box dirty_box[2];
-
struct pipe_context *pipe;
/* for [GS]etPrivateData/FreePrivateData */
@@ -85,12 +83,6 @@ void
NineVolume9_AddDirtyRegion( struct NineVolume9 *This,
const struct pipe_box *box );
-static inline void
-NineVolume9_ClearDirtyRegion( struct NineVolume9 *This )
-{
- memset(&This->dirty_box, 0, sizeof(This->dirty_box));
-}
-
HRESULT
NineVolume9_CopyVolume( struct NineVolume9 *This,
struct NineVolume9 *From,
@@ -98,7 +90,8 @@ NineVolume9_CopyVolume( struct NineVolume9 *This,
struct pipe_box *pSrcBox );
HRESULT
-NineVolume9_UploadSelf( struct NineVolume9 *This );
+NineVolume9_UploadSelf( struct NineVolume9 *This,
+ const struct pipe_box *damaged );
/*** Direct3D public ***/