From 742158b51ee9814e93a913cf020fba10608d73be Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 13 Oct 2014 22:39:48 -0400 Subject: [PATCH] st/gbm: fix order of arguments passed to is_format_supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Coverity Signed-off-by: Ilia Mirkin Reviewed-by: Michel Dänzer Cc: mesa-stable@lists.freedesktop.org --- src/gallium/state_trackers/gbm/gbm_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/gbm/gbm_drm.c b/src/gallium/state_trackers/gbm/gbm_drm.c index bba3c05f4c6..da6d7241ae7 100644 --- a/src/gallium/state_trackers/gbm/gbm_drm.c +++ b/src/gallium/state_trackers/gbm/gbm_drm.c @@ -85,7 +85,7 @@ gbm_gallium_drm_is_format_supported(struct gbm_device *gbm, if (pf == PIPE_FORMAT_NONE) return 0; - if (!gdrm->screen->is_format_supported(gdrm->screen, PIPE_TEXTURE_2D, pf, 0, + if (!gdrm->screen->is_format_supported(gdrm->screen, pf, PIPE_TEXTURE_2D, 0, gbm_usage_to_gallium(usage))) return 0; -- 2.30.2