diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-06-20 11:35:28 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 18:50:59 +1000 |
commit | 84e1d06b06777d76a420d4e5eff5ab1c178bd77a (patch) | |
tree | d5e3cdf07b64f74d38e6745c441a99cb581dc4bb /drivers/gpu/drm/nouveau/dispnv50/base907c.c | |
parent | 75bd8304e61c01d2bc5df46fcf9c2e9838b3a246 (diff) |
drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw csc_set()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/base907c.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/base907c.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/base907c.c b/drivers/gpu/drm/nouveau/dispnv50/base907c.c index c88a924d7d09..0c490291d014 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base907c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base907c.c @@ -23,6 +23,8 @@ #include <nvif/push507c.h> +#include <nvhw/class/cl907c.h> + static int base907c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) { @@ -150,8 +152,11 @@ base907c_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) if ((ret = PUSH_WAIT(push, 13))) return ret; - PUSH_NVSQ(push, NV907C, 0x0140, asyw->csc.matrix[0] | 0x80000000, - 0x0144, &asyw->csc.matrix[1], 11); + PUSH_MTHD(push, NV907C, SET_CSC_RED2RED, + NVDEF(NV907C, SET_CSC_RED2RED, OWNER, BASE) | + NVVAL(NV907C, SET_CSC_RED2RED, COEFF, asyw->csc.matrix[0]), + + SET_CSC_GRN2RED, &asyw->csc.matrix[1], 11); return 0; } |