mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
radeon: only init surface manage on r600
r300 fails to init the manager and then fails to init. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2470e918cc
commit
ff60bd8058
1 changed files with 8 additions and 4 deletions
|
|
@ -302,7 +302,9 @@ static void radeon_winsys_destroy(struct radeon_winsys *rws)
|
|||
|
||||
ws->cman->destroy(ws->cman);
|
||||
ws->kman->destroy(ws->kman);
|
||||
radeon_surface_manager_free(ws->surf_man);
|
||||
if (ws->gen == R600) {
|
||||
radeon_surface_manager_free(ws->surf_man);
|
||||
}
|
||||
FREE(rws);
|
||||
}
|
||||
|
||||
|
|
@ -377,9 +379,11 @@ struct radeon_winsys *radeon_drm_winsys_create(int fd)
|
|||
goto fail;
|
||||
|
||||
/* FIXME check for libdrm version ?? */
|
||||
ws->surf_man = radeon_surface_manager_new(fd);
|
||||
if (!ws->surf_man)
|
||||
goto fail;
|
||||
if (ws->gen == R600) {
|
||||
ws->surf_man = radeon_surface_manager_new(fd);
|
||||
if (!ws->surf_man)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Set functions. */
|
||||
ws->base.destroy = radeon_winsys_destroy;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue