diff options
author | Corbin Simpson <[email protected]> | 2009-02-08 01:01:26 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-02-08 01:01:26 -0800 |
commit | ea3398cf3395fd36ac6edc717f2680361ac5e239 (patch) | |
tree | 78f4c01d13b6392e925f5001fe464d107e6e4522 /src/gallium/drivers/r300/r300_emit.c | |
parent | 19a1bc8270cbb8fd62a440d2132c699de74182c2 (diff) |
r300: Update to match pipe_surface changes.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index c71b8d0b025..585a9e729d7 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -84,12 +84,14 @@ void r300_emit_fb_state(struct r300_context* r300, struct pipe_framebuffer_state* fb) { CS_LOCALS(r300); + struct r300_texture* tex; int i; BEGIN_CS((3 * fb->nr_cbufs) + 6); for (i = 0; i < fb->nr_cbufs; i++) { + tex = (struct r300_texture*)fb->cbufs[i]->texture; OUT_CS_REG_SEQ(R300_RB3D_COLOROFFSET0 + (4 * i), 1); - OUT_CS_RELOC(fb->cbufs[i]->buffer, 0, 0, RADEON_GEM_DOMAIN_VRAM, 0); + OUT_CS_RELOC(tex->buffer, 0, 0, RADEON_GEM_DOMAIN_VRAM, 0); } R300_PACIFY; END_CS; |