summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/buffer9.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/nine/buffer9.h')
-rw-r--r--src/gallium/state_trackers/nine/buffer9.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/buffer9.h b/src/gallium/state_trackers/nine/buffer9.h
index c109cf66140..df368b67070 100644
--- a/src/gallium/state_trackers/nine/buffer9.h
+++ b/src/gallium/state_trackers/nine/buffer9.h
@@ -24,6 +24,7 @@
#ifndef _NINE_BUFFER9_H_
#define _NINE_BUFFER9_H_
+#include "device9.h"
#include "resource9.h"
#include "pipe/p_context.h"
#include "pipe/p_state.h"
@@ -38,7 +39,6 @@ struct NineBuffer9
struct NineResource9 base;
/* G3D */
- struct pipe_context *pipe;
struct pipe_transfer **maps;
int nmaps, maxmaps;
UINT size;
@@ -85,7 +85,7 @@ NineBuffer9_Unlock( struct NineBuffer9 *This );
static inline void
NineBuffer9_Upload( struct NineBuffer9 *This )
{
- struct pipe_context *pipe = This->pipe;
+ struct pipe_context *pipe = NineDevice9_GetPipe(This->base.base.device);
assert(This->base.pool == D3DPOOL_MANAGED && This->managed.dirty);
pipe->buffer_subdata(pipe, This->base.resource, 0,