diff options
author | Anuj Phogat <[email protected]> | 2012-08-31 13:51:39 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2012-09-14 11:23:03 -0700 |
commit | 299acac849eb8506de9760c94c6e8e8b1046d909 (patch) | |
tree | 0c5bd5f19f31e6d0d6cedbd19fdca0287bd4a989 /src/mesa/drivers/common/meta.h | |
parent | fb541662ebab5297e0e926f76ef5aacd8552b18e (diff) |
_mesa_meta_GenerateMipmap: Support all texture targets by generating shaders at runtime
glsl path of _mesa_meta_GenerateMipmap() function would require different fragment
shaders depending on the texture target. This patch adds the code to generate
appropriate fragment shader programs at run time.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=54296
V2: Removed the code for integer textures as ARB is planning to
disallow automatic mipmap generation for integer textures.
Now using ralloc_asprintf in setup_glsl_generate_mipmap().
NOTE: This is a candidate for stable branches.
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r-- | src/mesa/drivers/common/meta.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h index d8dfb56f9b1..8a6b33b3235 100644 --- a/src/mesa/drivers/common/meta.h +++ b/src/mesa/drivers/common/meta.h @@ -58,6 +58,8 @@ #define MESA_META_MULTISAMPLE 0x100000 /**\}*/ +void *mem_ctx; + extern void _mesa_meta_init(struct gl_context *ctx); |