diff options
author | Marek Olšák <[email protected]> | 2018-06-11 15:10:50 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-08-04 02:46:55 -0400 |
commit | a96e946d25d4518d1c73c5d9d0f3d147f42bc416 (patch) | |
tree | a4e70408c96735983a40fca632a660b18bd3ced7 /src/mesa/main/get.c | |
parent | 3d6900d76efaef1ff6e84b7b8785bbe3d8f5b29b (diff) |
mesa: implement glGet for AMD_framebuffer_multisample_advanced
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index db0079beb51..f870b217db5 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -518,6 +518,7 @@ EXTRA_EXT(NV_conservative_raster); EXTRA_EXT(NV_conservative_raster_dilate); EXTRA_EXT(NV_conservative_raster_pre_snap_triangles); EXTRA_EXT(ARB_sample_locations); +EXTRA_EXT(AMD_framebuffer_multisample_advanced); static const int extra_ARB_color_buffer_float_or_glcore[] = { @@ -1228,6 +1229,13 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu case GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB: v->value_uint = MAX_SAMPLE_LOCATION_TABLE_SIZE; break; + + /* GL_AMD_framebuffer_multisample_advanced */ + case GL_SUPPORTED_MULTISAMPLE_MODES_AMD: + v->value_int_n.n = ctx->Const.NumSupportedMultisampleModes * 3; + memcpy(v->value_int_n.ints, ctx->Const.SupportedMultisampleModes, + v->value_int_n.n * sizeof(GLint)); + break; } } |