diff options
author | Topi Pohjolainen <[email protected]> | 2014-05-07 08:42:29 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2014-05-13 10:04:25 +0300 |
commit | 2a549c43a8c585b312fda920fcd7048e52fdcb05 (patch) | |
tree | d07da3581ecfa2c7947a27126a749f36e72f3deb /src/mesa/drivers/common/meta.h | |
parent | 06842d436e163836de9532cd06029d165ea2e049 (diff) |
meta: Refactor state save/restore for framebuffer texture blits
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r-- | src/mesa/drivers/common/meta.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h index cc762147ed1..2186a39f8d9 100644 --- a/src/mesa/drivers/common/meta.h +++ b/src/mesa/drivers/common/meta.h @@ -267,6 +267,13 @@ struct blit_state bool no_ctsi_fallback; }; +struct fb_tex_blit_state +{ + GLint baseLevelSave, maxLevelSave; + GLuint sampler, samplerSave; + GLuint tempTex; +}; + /** * State for glClear() @@ -395,6 +402,14 @@ _mesa_meta_end(struct gl_context *ctx); extern GLboolean _mesa_meta_in_progress(struct gl_context *ctx); +extern void +_mesa_meta_fb_tex_blit_begin(const struct gl_context *ctx, + struct fb_tex_blit_state *blit); + +extern void +_mesa_meta_fb_tex_blit_end(const struct gl_context *ctx, GLenum target, + struct fb_tex_blit_state *blit); + extern GLboolean _mesa_meta_bind_rb_as_tex_image(struct gl_context *ctx, struct gl_renderbuffer *rb, |