Commit 372b8307 authored by Lyude Paul's avatar Lyude Paul Committed by Karol Herbst
Browse files

drm/nouveau/kms/nv50-: Use NV_ATOMIC() in nv50_head_atomic_check_lut()



Since this is used in the atomic check, we should use the right debug macro
for it.

Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Cc: Martin Peres <martin.peres@free.fr>
Cc: Jeremy Cline <jcline@redhat.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarKarol Herbst <kherbst@redhat.com>
Signed-off-by: default avatarKarol Herbst <kherbst@redhat.com>
Link: https://gitlab.freedesktop.org/drm/nouveau/-/merge_requests/10
parent 78ad449d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -226,7 +226,10 @@ static int
nv50_head_atomic_check_lut(struct nv50_head *head,
			   struct nv50_head_atom *asyh)
{
	struct nv50_disp *disp = nv50_disp(head->base.base.dev);
	struct drm_device *dev = head->base.base.dev;
	struct drm_crtc *crtc = &head->base.base;
	struct nv50_disp *disp = nv50_disp(dev);
	struct nouveau_drm *drm = nouveau_drm(dev);
	struct drm_property_blob *olut = asyh->state.gamma_lut;
	int size;

@@ -256,7 +259,8 @@ nv50_head_atomic_check_lut(struct nv50_head *head,
	}

	if (!head->func->olut(head, asyh, size)) {
		DRM_DEBUG_KMS("Invalid olut\n");
		NV_ATOMIC(drm, "Invalid size %d for gamma on [CRTC:%d:%s]\n",
			  size, crtc->base.id, crtc->name);
		return -EINVAL;
	}
	asyh->olut.handle = disp->core->chan.vram.handle;