frontend/dri: Initialize callbacks in dri_swrast_kms_init_screen

This was missed in the commit below.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8232
Fixes: 7d5b1cd02c ("frontend/dri: move callbacks from the VTable into dri_screen, dri_drawable")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21333>
(cherry picked from commit 3e9c131482)
This commit is contained in:
Michel Dänzer 2023-02-15 12:40:39 +01:00 committed by Dylan Baker
parent b972c025fe
commit e0bbed4db1
2 changed files with 5 additions and 1 deletions

View file

@ -166,7 +166,7 @@
"description": "frontend/dri: Initialize callbacks in dri_swrast_kms_init_screen",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "7d5b1cd02c4d29d0636db66d668607a6692daa75"
},

View file

@ -2379,6 +2379,10 @@ dri_swrast_kms_init_screen(struct dri_screen *screen)
screen->lookup_egl_image_validated = dri2_lookup_egl_image_validated;
}
screen->create_drawable = dri2_create_drawable;
screen->allocate_buffer = dri2_allocate_buffer;
screen->release_buffer = dri2_release_buffer;
return configs;
destroy_screen: