Explorar el Código

radeong: Always return something for create_screen.

Prevents a segfault on e.g. r600.
undefined
Corbin Simpson hace 15 años
padre
commit
184cefcd8c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      src/gallium/winsys/drm/radeon/core/radeon_drm.c

+ 3
- 0
src/gallium/winsys/drm/radeon/core/radeon_drm.c Ver fichero

@@ -132,6 +132,9 @@ struct pipe_screen* radeon_create_screen(struct drm_api* api,
if (is_r3xx(rwinsys->pci_id)) {
radeon_setup_winsys(drmFB, rwinsys);
return r300_create_screen(rwinsys);
} else {
FREE(rwinsys);
return NULL;
}
}


Cargando…
Cancelar
Guardar