mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
dri: fix kms_swrast screen fail
this should match all the other screen init functions cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30524>
This commit is contained in:
parent
d4ab6e15aa
commit
d6ac254c01
1 changed files with 2 additions and 2 deletions
|
|
@ -2119,7 +2119,7 @@ dri_swrast_kms_init_screen(struct dri_screen *screen, bool driver_name_is_inferr
|
|||
#endif
|
||||
|
||||
if (!pscreen)
|
||||
goto fail;
|
||||
return NULL;
|
||||
|
||||
configs = dri_init_screen(screen, pscreen);
|
||||
if (!configs)
|
||||
|
|
@ -2132,7 +2132,7 @@ dri_swrast_kms_init_screen(struct dri_screen *screen, bool driver_name_is_inferr
|
|||
return configs;
|
||||
|
||||
fail:
|
||||
dri_release_screen(screen);
|
||||
pipe_loader_release(&screen->dev, 1);
|
||||
|
||||
#endif // HAVE_SWRAST
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue