From f320176b71c8f69aa811a6fefa9d23fdf924cd23 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Sun, 14 Mar 2010 20:52:18 +0100 Subject: nvfx: so->RING_3D: fb --- src/gallium/drivers/nvfx/nvfx_context.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gallium/drivers/nvfx/nvfx_context.h') 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 *); -- cgit v1.2.3