diff options
author | Ian Romanick <[email protected]> | 2015-11-12 17:05:27 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-03-01 11:07:19 -0800 |
commit | f69c743069b65fa58196875a0c5a74e4160acc86 (patch) | |
tree | 407d76b654bef1b988e365ed1d0696d8f3fc019c /src/mesa/drivers/common/meta.h | |
parent | ac222626adfc7a03bf537deba66bad5e57b2c91d (diff) |
meta: Convert _mesa_meta_bind_fbo_image to take a gl_framebuffer instead of a GL API handle
Also change the name of the function to
_mesa_meta_framebuffer_texture_image. The function is basically a
wrapper around _mesa_framebuffer_texture (which is used to implement
glFramebufferTexture1D and friends), so it makes sense for it's name to
be similar to that.
The next patch will clean _mesa_meta_framebuffer_texture_image up
considerably.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r-- | src/mesa/drivers/common/meta.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h index 7a120b6c44b..ee920351c35 100644 --- a/src/mesa/drivers/common/meta.h +++ b/src/mesa/drivers/common/meta.h @@ -661,7 +661,10 @@ _mesa_meta_glsl_generate_mipmap_cleanup(struct gl_context *ctx, struct gen_mipmap_state *mipmap); void -_mesa_meta_bind_fbo_image(GLenum target, GLenum attachment, - struct gl_texture_image *texImage, GLuint layer); +_mesa_meta_framebuffer_texture_image(struct gl_context *ctx, + struct gl_framebuffer *fb, + GLenum attachment, + struct gl_texture_image *texImage, + GLuint layer); #endif /* META_H */ |