drm/nouveau: allocate device object for every client
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -13,13 +13,13 @@ static unsigned int
|
||||
nouveau_vga_set_decode(void *priv, bool state)
|
||||
{
|
||||
struct nouveau_drm *drm = nouveau_drm(priv);
|
||||
struct nvif_object *device = &drm->device.object;
|
||||
struct nvif_object *device = &drm->client.device.object;
|
||||
|
||||
if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE &&
|
||||
drm->device.info.chipset >= 0x4c)
|
||||
if (drm->client.device.info.family == NV_DEVICE_INFO_V0_CURIE &&
|
||||
drm->client.device.info.chipset >= 0x4c)
|
||||
nvif_wr32(device, 0x088060, state);
|
||||
else
|
||||
if (drm->device.info.chipset >= 0x40)
|
||||
if (drm->client.device.info.chipset >= 0x40)
|
||||
nvif_wr32(device, 0x088054, state);
|
||||
else
|
||||
nvif_wr32(device, 0x001854, state);
|
||||
|
مرجع در شماره جدید
Block a user