base507c.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) base507c.c (fd55b61ebd31449549e14c33574825d64de2b29b)
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

--- 74 unchanged lines hidden (view full) ---

83 PUSH_MTHD(push, NV507C, SET_PROCESSING,
84 NVDEF(NV507C, SET_PROCESSING, USE_GAIN_OFS, ENABLE),
85
86 SET_CONVERSION,
87 NVVAL(NV507C, SET_CONVERSION, GAIN, 0) |
88 NVVAL(NV507C, SET_CONVERSION, OFS, 0x64));
89 } else {
90 PUSH_MTHD(push, NV507C, SET_PROCESSING,
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

--- 74 unchanged lines hidden (view full) ---

83 PUSH_MTHD(push, NV507C, SET_PROCESSING,
84 NVDEF(NV507C, SET_PROCESSING, USE_GAIN_OFS, ENABLE),
85
86 SET_CONVERSION,
87 NVVAL(NV507C, SET_CONVERSION, GAIN, 0) |
88 NVVAL(NV507C, SET_CONVERSION, OFS, 0x64));
89 } else {
90 PUSH_MTHD(push, NV507C, SET_PROCESSING,
91 NVDEF(NV507C, SET_PROCESSING, USE_GAIN_OFS, DISABLE));
91 NVDEF(NV507C, SET_PROCESSING, USE_GAIN_OFS, DISABLE),
92
93 SET_CONVERSION,
94 NVVAL(NV507C, SET_CONVERSION, GAIN, 0) |
95 NVVAL(NV507C, SET_CONVERSION, OFS, 0));
92 }
93
94 PUSH_MTHD(push, NV507C, SURFACE_SET_OFFSET(0, 0), asyw->image.offset[0] >> 8);
95
96 PUSH_MTHD(push, NV507C, SURFACE_SET_SIZE(0),
97 NVVAL(NV507C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
98 NVVAL(NV507C, SURFACE_SET_SIZE, HEIGHT, asyw->image.h),
99

--- 250 unchanged lines hidden ---
96 }
97
98 PUSH_MTHD(push, NV507C, SURFACE_SET_OFFSET(0, 0), asyw->image.offset[0] >> 8);
99
100 PUSH_MTHD(push, NV507C, SURFACE_SET_SIZE(0),
101 NVVAL(NV507C, SURFACE_SET_SIZE, WIDTH, asyw->image.w) |
102 NVVAL(NV507C, SURFACE_SET_SIZE, HEIGHT, asyw->image.h),
103

--- 250 unchanged lines hidden ---