[Intel-gfx] [PATCH 5/9] drm/i915/context: switch context support query to variable

Ben Widawsky bwidawsk at gmail.com
Tue Feb 1 19:16:22 CET 2011


---
 drivers/gpu/drm/i915/i915_dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index b0acc0d..9d055ba 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -772,7 +772,7 @@ static int i915_getparam(struct drm_device *dev, void *data,
 		value = INTEL_INFO(dev)->gen >= 4;
 		break;
 	case I915_PARAM_HAS_CONTEXTS:
-		value = HAS_HW_CONTEXTS(dev);
+		value = dev_priv->ctx_disable ? 0 : 1;
 		break;
 	case I915_PARAM_HAS_PPGTT:
 		value = HAS_PPGTT(dev);
-- 
1.7.3.4




More information about the Intel-gfx mailing list