diff options
author | Eric Anholt <[email protected]> | 2014-02-28 13:23:25 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-04-15 14:34:22 -0700 |
commit | 234db609544ee521458ce8b648e70cffe2fda6f9 (patch) | |
tree | d5cb5d5bde7e5661a7880fba80d184cfea579315 /src/mesa/drivers/common/meta.h | |
parent | 70961c032fab53ae30a25b95445eae5aaf8c2068 (diff) |
meta: Add an accelerated glCopyTexSubImage using glBlitFramebuffer.
You'll note from the previous commits that there's something of a loop
here: You call CTSI, which calls BlitFB, then if things go wrong that
falls back to CTSI. As a result, meta CTSI reaches over into blitfb to
tell it "no, don't try that fallback".
v2: Drop the _mesa_update_state(), which was only necessary due to use of
_mesa_clip_blit() in _mesa_meta_BlitFramebuffer() in another patch
series.
v3: Drop an _EXT suffix I copy-and-pasted.
Reviewed-by: Ian Romanick <[email protected]> (v2)
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r-- | src/mesa/drivers/common/meta.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h index ad3da9cd8d4..fd8a385b644 100644 --- a/src/mesa/drivers/common/meta.h +++ b/src/mesa/drivers/common/meta.h @@ -253,6 +253,7 @@ struct blit_state struct blit_shader_table shaders; GLuint msaa_shaders[BLIT_MSAA_SHADER_COUNT]; struct temp_texture depthTex; + bool no_ctsi_fallback; }; @@ -505,6 +506,7 @@ void _mesa_meta_glsl_generate_mipmap_cleanup(struct gen_mipmap_state *mipmap); void -_mesa_meta_bind_fbo_image(struct gl_texture_image *texImage, GLuint layer); +_mesa_meta_bind_fbo_image(GLenum attachment, + struct gl_texture_image *texImage, GLuint layer); #endif /* META_H */ |