mesa: Track the TexImage being rendered to in the gl_renderbuffer. 39/6639/1
authorEric Anholt <eric@anholt.net>
Fri, 10 May 2013 18:51:01 +0000 (11:51 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 17 May 2013 20:04:05 +0000 (13:04 -0700)
commite98c39c109f9b38d6bb97e3890382fdf66c25176
tree3f51aa191af6052243787b0b10e1a4d581a64583
parent7b085d1bfa7630571e04a7d630765d3e5ed63e25
mesa: Track the TexImage being rendered to in the gl_renderbuffer.

We keep having to pass the attachments around with our gl_renderbuffers
because that's the only way to find what the gl_renderbuffer actually
refers to.  This is a step toward removing that (though drivers still need
the Zoffset as well).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
12 files changed:
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/nouveau/nouveau_fbo.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h
src/mesa/main/framebuffer.c
src/mesa/main/mtypes.h
src/mesa/main/teximage.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/swrast/s_texrender.c