[Mesa-dev] [PATCH] st/gbm: fix arguments to is_format_supported
Ilia Mirkin
imirkin at alum.mit.edu
Mon Oct 13 19:42:26 PDT 2014
Reported by Coverity
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
No idea how to test this, but seems pretty straightforward.
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 bba3c05..da6d724 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.0.4
More information about the mesa-dev
mailing list