From a96e946d25d4518d1c73c5d9d0f3d147f42bc416 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 11 Jun 2018 15:10:50 -0400 Subject: mesa: implement glGet for AMD_framebuffer_multisample_advanced Reviewed-by: Brian Paul --- src/mesa/main/get.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/main/get.c') 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; } } -- cgit v1.2.3