[Intel-gfx] [PATCH 2/3] drm/i915/bdw: Render ring PDP is restored with context
Ben Widawsky
benjamin.widawsky at intel.com
Wed Apr 2 02:37:31 CEST 2014
So let's not do it every time we switch.
Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
drivers/gpu/drm/i915/i915_gem_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index 0e8fd1e..743fc42 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -710,7 +710,7 @@ static int do_switch(struct intel_ring_buffer *ring,
if (ret)
goto unpin_out;
- if (USES_FULL_PPGTT(ring->dev)) {
+ if (USES_FULL_PPGTT(ring->dev) && !to->is_initialized) {
ret = ppgtt->switch_mm(ppgtt, ring, false);
/* The hardware context switch is emitted, but we haven't
* actually changed the state - so it's probably safe to bail
--
1.9.1
More information about the Intel-gfx
mailing list