[Mesa-dev] [PATCH 4/9] meta: Move bind_fbo_image() code back to meta.c, to reuse it elsewhere.

Kenneth Graunke kenneth at whitecape.org
Sat Apr 12 23:12:24 PDT 2014


On 04/08/2014 02:03 PM, Eric Anholt wrote:
> I need to do the same code again for CopyTexSubImage().
> ---
>  src/mesa/drivers/common/meta.c                 | 33 +++++++++++++++++++++++
>  src/mesa/drivers/common/meta.h                 |  4 +++
>  src/mesa/drivers/common/meta_generate_mipmap.c | 36 ++------------------------
>  3 files changed, 39 insertions(+), 34 deletions(-)
> 
> diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
> index acf927b..ee8ad3f 100644
> --- a/src/mesa/drivers/common/meta.c
> +++ b/src/mesa/drivers/common/meta.c
> @@ -93,6 +93,39 @@ static void meta_glsl_clear_cleanup(struct clear_state *clear);
>  static void meta_decompress_cleanup(struct decompress_state *decompress);
>  static void meta_drawpix_cleanup(struct drawpix_state *drawpix);
>  
> +/**
> + * Bind a particular texture level/layer to mipmap->FBO's GL_COLOR_ATTACHMENT0.
> + */

The comment about mipmap->FBO doesn't make much sense anymore.  Maybe
"the current FBO"?  Or, just drop it altogether.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140412/0af05464/attachment.sig>


More information about the mesa-dev mailing list