mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ gbm_gallium_drm_is_format_supported(struct gbm_device *gbm,
|
||||||
if (pf == PIPE_FORMAT_NONE)
|
if (pf == PIPE_FORMAT_NONE)
|
||||||
return 0;
|
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)))
|
gbm_usage_to_gallium(usage)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue