diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-12 18:54:33 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-21 16:25:25 +0900 |
commit | 8523a733b6a5de6116a6332fefc871d4c32652d8 (patch) | |
tree | da2201680ea4e4772c84760cdd7df281ddb97064 /src/radeon_kms.c | |
parent | 53be26b00e83f871f0afd39caa5a7a1d6ec4aea1 (diff) |
Propagate failure from radeon_set_pixmap_bo
(Ported from amdgpu commits c315c00e44afc91a7c8e2eab5af836d9643ebb88
and 0d42082108c264568e2aadd15ace70e72388bc65)
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 4a5f9da7..b64c6367 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -347,7 +347,8 @@ static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen) if (info->dri2.enabled || info->use_glamor) { if (info->front_bo) { PixmapPtr pPix = pScreen->GetScreenPixmap(pScreen); - radeon_set_pixmap_bo(pPix, info->front_bo); + if (!radeon_set_pixmap_bo(pPix, info->front_bo)) + return FALSE; surface = radeon_get_pixmap_surface(pPix); if (surface) { *surface = info->front_surface; |