Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
PIPE_CAP_UMA);
return 0;
+ case __DRI2_RENDERER_HAS_TEXTURE_3D:
+ value[0] =
+ screen->base.screen->get_param(screen->base.screen,
+ PIPE_CAP_MAX_TEXTURE_3D_LEVELS) != 0;
+ return 0;
+
+ case __DRI2_RENDERER_HAS_FRAMEBUFFER_SRGB:
+ value[0] =
+ screen->base.screen->is_format_supported(screen->base.screen,
+ PIPE_FORMAT_B8G8R8A8_SRGB,
+ PIPE_TEXTURE_2D, 0,
+ PIPE_BIND_RENDER_TARGET);
+ return 0;
+
default:
return driQueryRendererIntegerCommon(_screen, param, value);
}