diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-07-28 21:48:55 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-08-01 20:24:49 -0700 |
commit | 34c55b59251a9c6e9979c1c0094c5158ce3503cb (patch) | |
tree | 487aed8d7ebdd53652f6110cd3a82c35f46caab6 /src | |
parent | 7cfefe6965d50d8b1b494396d7b3b16d87bb2060 (diff) | |
download | external_mesa3d-34c55b59251a9c6e9979c1c0094c5158ce3503cb.zip external_mesa3d-34c55b59251a9c6e9979c1c0094c5158ce3503cb.tar.gz external_mesa3d-34c55b59251a9c6e9979c1c0094c5158ce3503cb.tar.bz2 |
main: Warn that geometry shader support is experimental.
Geometry shader support in the Mesa front end is still fairly
preliminary. Many features are untested, and the following things are
known not to work:
- The gl_in interface block
- The gl_ClipDistance input
- Transform feedback of geometry shader outputs
- Constants that are new in GLSL 1.50 (e.g. gl_MaxGeometryInputComponents)
This isn't a problem, since no back-end drivers currently enable
geometry shaders. However, to make sure no one gets the wrong
impression, emit a nasty warning to let the user know that geometry
shader support isn't complete.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/shaderapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index f3ae4f5..d184b11 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -742,6 +742,12 @@ compile_shader(struct gl_context *ctx, GLuint shaderObj) if (!sh) return; + /* Geometry shaders are not yet fully supported, so issue a warning message + * if we're compiling one. + */ + if (sh->Type == GL_GEOMETRY_SHADER) + printf("WARNING: Geometry shader support is currently experimental.\n"); + options = &ctx->ShaderCompilerOptions[_mesa_shader_type_to_index(sh->Type)]; /* set default pragma state for shader */ |