intel: Remove unneeded params from intel_renderbuffer_set_draw_offset()
authorChad Versace <chad.versace@linux.intel.com>
Tue, 15 Nov 2011 18:22:14 +0000 (10:22 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 18:35:42 +0000 (10:35 -0800)
commit3b38b33c1648b07e75dc4d8340758171e109c598
treea60201d9ca920e1a0fa7730ed6b05361c2c296b9
parent24da7335b22432ef4c2d57cab86e4b8fbe8733d5
intel: Remove unneeded params from intel_renderbuffer_set_draw_offset()

Since the renderbuffer tracks the miptree level and layer that it wraps,
the 'tex_image' and 'zoffset' params are no longer needed to calculate the draw
offsets.

Not only are they no longer needed, but their presence would prevent
calculating the renderbuffer draw offsets in situations where there were
no texture image. Such situations will occur during the HiZ meta-op and
during scatter/gather of separate stencil textures.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/intel/intel_tex_image.c