diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-06-15 17:20:36 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-06-16 15:20:04 +0900 |
commit | c315c00e44afc91a7c8e2eab5af836d9643ebb88 (patch) | |
tree | 080d2e3b6bf90eed2abc191d504d38e0140f967e /src/amdgpu_kms.c | |
parent | 74602c4221e3c84949fd69f690cbc66dcae384ea (diff) |
Propagate failure from amdgpu_set_pixmap_bo
Preparation for the following fixes.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_kms.c')
-rw-r--r-- | src/amdgpu_kms.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 3c53bc9..b34a223 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -205,7 +205,9 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen) if (info->dri2.enabled || info->use_glamor) { if (info->front_buffer) { PixmapPtr pPix = pScreen->GetScreenPixmap(pScreen); - amdgpu_set_pixmap_bo(pPix, info->front_buffer); + + if (!amdgpu_set_pixmap_bo(pPix, info->front_buffer)) + return FALSE; } } |