Commit 78652ff6 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/fifo/gk104-gp1xx: fix creation of sw class

Fixes: 49616203 ("drm/nouveau/fifo: add id_engine hook")
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f6df392d
...@@ -261,6 +261,9 @@ gk104_fifo_pbdma = { ...@@ -261,6 +261,9 @@ gk104_fifo_pbdma = {
struct nvkm_engine * struct nvkm_engine *
gk104_fifo_id_engine(struct nvkm_fifo *base, int engi) gk104_fifo_id_engine(struct nvkm_fifo *base, int engi)
{ {
if (engi == GK104_FIFO_ENGN_SW)
return nvkm_device_engine(base->engine.subdev.device, NVKM_ENGINE_SW, 0);
return gk104_fifo(base)->engine[engi].engine; return gk104_fifo(base)->engine[engi].engine;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment