summaryrefslogtreecommitdiff
path: root/linux-core/i915_fence.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/i915_fence.c')
-rw-r--r--linux-core/i915_fence.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/i915_fence.c b/linux-core/i915_fence.c
index 7491a672..49dc254f 100644
--- a/linux-core/i915_fence.c
+++ b/linux-core/i915_fence.c
@@ -49,6 +49,9 @@ static void i915_perform_flush(drm_device_t * dev)
uint32_t diff;
uint32_t sequence;
+ if (!dev_priv)
+ return;
+
if (fm->pending_exe_flush) {
sequence = READ_BREADCRUMB(dev_priv);