summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-10-13 22:39:48 -0400
committerIlia Mirkin <[email protected]>2014-10-14 12:33:38 -0400
commit742158b51ee9814e93a913cf020fba10608d73be (patch)
tree9d2ffa0b6c844074309cb35eae909d162cdd2a9a /src
parent5524af81365d51757ef68a8e62dbd426d0b07184 (diff)
st/gbm: fix order of arguments passed to is_format_supported
Reported by Coverity Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Cc: [email protected]
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/gbm/gbm_drm.c2
1 files changed, 1 insertions, 1 deletions
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;