summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_context.h
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-03-14 20:52:18 +0100
committerLuca Barbieri <[email protected]>2010-04-12 12:13:16 +0200
commitf320176b71c8f69aa811a6fefa9d23fdf924cd23 (patch)
tree90aa9086a05759441585b7159090e546b6c85401 /src/gallium/drivers/nvfx/nvfx_context.h
parentb3cc1adc14403dab8e8015cad5bb76690ec851a7 (diff)
nvfx: so->RING_3D: fb
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_context.h')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_context.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_context.h b/src/gallium/drivers/nvfx/nvfx_context.h
index 46b5db03648..371c61f54dc 100644
--- a/src/gallium/drivers/nvfx/nvfx_context.h
+++ b/src/gallium/drivers/nvfx/nvfx_context.h
@@ -111,6 +111,12 @@ struct nvfx_vtxelt_state {
unsigned num_elements;
};
+struct nvfx_render_target {
+ struct nouveau_bo* bo;
+ unsigned offset;
+ unsigned pitch;
+};
+
struct nvfx_context {
struct pipe_context pipe;
@@ -169,6 +175,8 @@ struct nvfx_context {
unsigned hw_vtxelt_nr;
uint8_t hw_samplers;
uint32_t hw_txf[8];
+ struct nvfx_render_target hw_rt[4];
+ struct nvfx_render_target hw_zeta;
};
static INLINE struct nvfx_context *
@@ -218,6 +226,10 @@ extern void nvfx_draw_elements_swtnl(struct pipe_context *pipe,
unsigned ib_size, unsigned mode,
unsigned start, unsigned count);
+/* nvfx_fb.c */
+void
+nvfx_framebuffer_relocate(struct nvfx_context *nvfx);
+
/* nvfx_fragprog.c */
extern void nvfx_fragprog_destroy(struct nvfx_context *,
struct nvfx_fragment_program *);