wndwc57e.c (6d6e11e2844015a5f6c3d0373966fd4a459add8b) | wndwc57e.c (84e1d06b06777d76a420d4e5eff5ab1c178bd77a) |
---|---|
1/* 2 * Copyright 2018 Red Hat Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 15 unchanged lines hidden (view full) --- 24 25#include <drm/drm_atomic_helper.h> 26#include <drm/drm_plane_helper.h> 27#include <nouveau_bo.h> 28 29#include <nvif/clc37e.h> 30#include <nvif/pushc37b.h> 31 | 1/* 2 * Copyright 2018 Red Hat Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 15 unchanged lines hidden (view full) --- 24 25#include <drm/drm_atomic_helper.h> 26#include <drm/drm_plane_helper.h> 27#include <nouveau_bo.h> 28 29#include <nvif/clc37e.h> 30#include <nvif/pushc37b.h> 31 |
32#include <nvhw/class/clc57e.h> 33 |
|
32static int 33wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) 34{ 35 struct nvif_push *push = wndw->wndw.push; 36 int ret; 37 38 if ((ret = PUSH_WAIT(push, 17))) 39 return ret; --- 40 unchanged lines hidden (view full) --- 80wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) 81{ 82 struct nvif_push *push = wndw->wndw.push; 83 int ret; 84 85 if ((ret = PUSH_WAIT(push, 13))) 86 return ret; 87 | 34static int 35wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) 36{ 37 struct nvif_push *push = wndw->wndw.push; 38 int ret; 39 40 if ((ret = PUSH_WAIT(push, 17))) 41 return ret; --- 40 unchanged lines hidden (view full) --- 82wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) 83{ 84 struct nvif_push *push = wndw->wndw.push; 85 int ret; 86 87 if ((ret = PUSH_WAIT(push, 13))) 88 return ret; 89 |
88 PUSH_NVSQ(push, NVC57E, 0x0400, asyw->csc.matrix, 12); | 90 PUSH_MTHD(push, NVC57E, SET_FMT_COEFFICIENT_C00, asyw->csc.matrix, 12); |
89 return 0; 90} 91 92static int 93wndwc57e_ilut_clr(struct nv50_wndw *wndw) 94{ 95 struct nvif_push *push = wndw->wndw.push; 96 int ret; --- 126 unchanged lines hidden --- | 91 return 0; 92} 93 94static int 95wndwc57e_ilut_clr(struct nv50_wndw *wndw) 96{ 97 struct nvif_push *push = wndw->wndw.push; 98 int ret; --- 126 unchanged lines hidden --- |