st/gbm: fix order of arguments passed to is_format_supported
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 14 Oct 2014 02:39:48 +0000 (22:39 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 14 Oct 2014 16:33:38 +0000 (12:33 -0400)
Reported by Coverity

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/state_trackers/gbm/gbm_drm.c

index bba3c05f4c67fbb917a6b8f039af68790f5c09e4..da6d7241ae717a3267ba577f48ab185964b3d713 100644 (file)
@@ -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;