diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_grctx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_grctx.c b/drivers/gpu/drm/nouveau/nouveau_grctx.c index d5d84c87f757..419f4c2b3b89 100644 --- a/drivers/gpu/drm/nouveau/nouveau_grctx.c +++ b/drivers/gpu/drm/nouveau/nouveau_grctx.c | |||
@@ -56,6 +56,9 @@ nouveau_grctx_prog_load(struct drm_device *dev) | |||
56 | char name[32]; | 56 | char name[32]; |
57 | int ret, i; | 57 | int ret, i; |
58 | 58 | ||
59 | if (pgraph->accel_blocked) | ||
60 | return -ENODEV; | ||
61 | |||
59 | if (!pgraph->ctxprog) { | 62 | if (!pgraph->ctxprog) { |
60 | sprintf(name, "nouveau/nv%02x.ctxprog", chipset); | 63 | sprintf(name, "nouveau/nv%02x.ctxprog", chipset); |
61 | ret = request_firmware(&fw, name, &dev->pdev->dev); | 64 | ret = request_firmware(&fw, name, &dev->pdev->dev); |