From db68b97671423d5d04bd4782d4a8ae973ff9c2ff Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 15 Aug 2013 00:57:40 +0100 Subject: [PATCH] nouveau/video: use correct parameter name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a typo introduced with commit d1ba1055d9 - vl: Add support for max level query v2 Cc: Rico Schüller Cc: Christian König Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68126 Signed-off-by: Emil Velikov --- FWIW the original patch could have introduced default params for all profiles, and let the individual driver provide their own function to ease duplication. A call to get_params(VIDEO_CAP_SUPPORTED) ensures that we do not request the CAP_MAX_LEVEL of a unsupported profile src/gallium/drivers/nouveau/nouveau_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c index 1563b22..5c4ec0f 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.c +++ b/src/gallium/drivers/nouveau/nouveau_video.c @@ -863,7 +863,7 @@ nouveau_screen_get_video_param(struct pipe_screen *pscreen, case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE: return true; case PIPE_VIDEO_CAP_MAX_LEVEL: - return vl_level_supported(screen, profile); + return vl_level_supported(pscreen, profile); default: debug_printf("unknown video param: %d\n", param); return 0; -- 1.8.3.4