mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
pipe-loader: fix driinfo for software and non-radeonsi drivers
Fixes: 678dadf123 ("gallium: move driinfo XML to pipe_loader")
Reviewed-by: Thomas Hellström <thellstrom@vmware.com>
This commit is contained in:
parent
eceb671002
commit
f45efb8129
2 changed files with 6 additions and 4 deletions
|
|
@ -51,7 +51,9 @@ static int (*backends[])(struct pipe_loader_device **, int) = {
|
|||
};
|
||||
|
||||
const char gallium_driinfo_xml[] =
|
||||
DRI_CONF_BEGIN
|
||||
#include "driinfo_gallium.h"
|
||||
DRI_CONF_END
|
||||
;
|
||||
|
||||
int
|
||||
|
|
|
|||
|
|
@ -400,12 +400,12 @@ drisw_init_screen(__DRIscreen * sPriv)
|
|||
sPriv->driverPrivate = (void *)screen;
|
||||
sPriv->extensions = drisw_screen_extensions;
|
||||
|
||||
struct pipe_screen_config config;
|
||||
if (pipe_loader_sw_probe_dri(&screen->dev, &drisw_lf)) {
|
||||
struct pipe_screen_config config;
|
||||
config.flags = dri_init_options_get_screen_flags(screen);
|
||||
|
||||
config.flags = dri_init_options_get_screen_flags(screen);
|
||||
|
||||
if (pipe_loader_sw_probe_dri(&screen->dev, &drisw_lf))
|
||||
pscreen = pipe_loader_create_screen(screen->dev, &config);
|
||||
}
|
||||
|
||||
if (!pscreen)
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue