meta/blit: Don't bind texture in _mesa_meta_bind_rb_as_tex_image
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 14 Jan 2016 18:33:14 +0000 (10:33 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 3 Jan 2018 00:23:51 +0000 (16:23 -0800)
commitd17e6bc48eaf20898ae34059372d58b6c8190f0f
treebee7f1b3eaca0076eedd6f2a1175d9fb61496ca1
parent7609d54e4a891c5d101404c8b291e5f0aebfb926
meta/blit: Don't bind texture in _mesa_meta_bind_rb_as_tex_image

All of the callers of _mesa_meta_bind_rb_as_tex_image call
_mesa_meta_setup_sampler shortly after.  _mesa_meta_setup_sampler also
binds the texture.  This is necessary because not all paths that lead to
_mesa_meta_setup_sampler some through _mesa_meta_bind_rb_as_tex_image.

Rename the function _mesa_meta_texture_object_from_renderbuffer to
reflect its true purpose.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/common/meta.h
src/mesa/drivers/common/meta_blit.c