diff options
author | Dave Airlie <[email protected]> | 2013-11-27 19:47:51 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-04-02 12:12:04 +1000 |
commit | 76ba50a25a8bbc1e5fbcdb24da7e09f8996cf2c5 (patch) | |
tree | 05bd8c06d733e96246bacab1e8a429bf3800be51 /src/mesa/main | |
parent | 882b46a42ee8f25853b972911e6e31988b979412 (diff) |
mesa/soft/llvmpipe: add fake MSAA support
This adds a gallium cap that allows us to fake GL3.0 by
not exposing MSAA on sw rendering.
It also forces the extra extensions needed for GL3.2.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 2 | ||||
-rw-r--r-- | src/mesa/main/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 15c0a5931b3..4d014d1ee3a 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3471,6 +3471,8 @@ struct gl_constants /** GL_ARB_gpu_shader5 */ GLfloat MinFragmentInterpolationOffset; GLfloat MaxFragmentInterpolationOffset; + + GLboolean FakeSWMSAA; }; diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 1c0bedf4bb2..b7cc50fc146 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -228,7 +228,7 @@ compute_version(struct gl_context *ctx) ctx->Extensions.EXT_texture_sRGB); const GLboolean ver_3_0 = (ver_2_1 && ctx->Const.GLSLVersion >= 130 && - ctx->Const.MaxSamples >= 4 && + (ctx->Const.MaxSamples >= 4 || ctx->Const.FakeSWMSAA) && (ctx->API == API_OPENGL_CORE || ctx->Extensions.ARB_color_buffer_float) && ctx->Extensions.ARB_depth_buffer_float && |