aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/meta.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-02-07 14:00:31 -0800
committerEric Anholt <[email protected]>2014-02-21 10:43:38 -0800
commit7d2f73e73759d6508833d76181295cdd3e0588fe (patch)
tree903dd9fcdd18c94165369fce130120bee04e5d4f /src/mesa/drivers/common/meta.h
parentaba85d960edf1f2c10e0dae54297565c56b664b8 (diff)
meta: Add support for doing multisample resolves.
Note that this doesn't handle GL_EXT_multisample_scaled_blit yet. The i965 code for that extension bakes in knowledge of the sample positions (well, knowledge of the sample positions aligned to a lower-resolution grid), which we would have to do at runtime somehow for meta. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r--src/mesa/drivers/common/meta.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
index 822bfa13d37..5d79253139f 100644
--- a/src/mesa/drivers/common/meta.h
+++ b/src/mesa/drivers/common/meta.h
@@ -221,6 +221,12 @@ struct blit_shader_table {
struct blit_shader sampler_cubemap_array;
};
+enum blit_msaa_shader {
+ BLIT_MSAA_SHADER_2D_MULTISAMPLE,
+ BLIT_MSAA_SHADER_2D_MULTISAMPLE_DEPTH,
+ BLIT_MSAA_SHADER_COUNT,
+};
+
/**
* State for glBlitFramebufer()
*/
@@ -230,6 +236,7 @@ struct blit_state
GLuint VBO;
GLuint DepthFP;
struct blit_shader_table shaders;
+ GLuint msaa_shaders[BLIT_MSAA_SHADER_COUNT];
struct temp_texture depthTex;
};