mesa: rework ctx->Driver.CopyTexSubImage() parameters
authorBrian Paul <brianp@vmware.com>
Thu, 29 Dec 2011 13:36:55 +0000 (06:36 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 22:04:23 +0000 (15:04 -0700)
commit56b57aa360a8bad0c4b68fbdf7c64ac33f9e7661
treea448d03e61122b0c68aaac023a3004f1144e1b8f
parent4c0f1fb5ec6117f07c9c911d7f74ff0d18c51d98
mesa: rework ctx->Driver.CopyTexSubImage() parameters

Replace target, level parameters with gl_texture_image.
Add gl_renderbuffer parameter to indicate source buffer for the copy.

This removes some redundant code in the drivers to find the source
renderbuffer and the destination texture image (which we already had
in _mesa_CopyTexSubImage).

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta.h
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_tex.h
src/mesa/drivers/dri/intel/intel_tex_copy.c
src/mesa/drivers/dri/radeon/radeon_tex_copy.c
src/mesa/drivers/dri/radeon/radeon_texture.h
src/mesa/main/dd.h
src/mesa/main/teximage.c
src/mesa/state_tracker/st_cb_texture.c