st/gbm: fix order of arguments passed to is_format_supported
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
This commit is contained in:
parent
5524af8136
commit
742158b51e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue