mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 08:08:25 +02:00
intel: Protect against waiting on a NULL render target bo
If we fall back to software rendering due to the render target being absent (GPU hang or other error in creating the named target), then we do not need to nor should we wait upon the results. Reported-by: Magnus Kessler <Magnus.Kessler@gmx.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34656 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
69d969e8fa
commit
a2029a78c3
1 changed files with 1 additions and 1 deletions
|
|
@ -581,7 +581,7 @@ intelFinish(struct gl_context * ctx)
|
|||
|
||||
irb = intel_renderbuffer(fb->_ColorDrawBuffers[i]);
|
||||
|
||||
if (irb && irb->region)
|
||||
if (irb && irb->region && irb->region->buffer)
|
||||
drm_intel_bo_wait_rendering(irb->region->buffer);
|
||||
}
|
||||
if (fb->_DepthBuffer) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue