37 ret = RING_SPACE(chan, rect->
rop ==
ROP_COPY ? 7 : 11);
42 BEGIN_NV04(chan,
NvSub2D, 0x02ac, 1);
45 BEGIN_NV04(chan,
NvSub2D, 0x0588, 1);
51 BEGIN_NV04(chan,
NvSub2D, 0x0600, 4);
57 BEGIN_NV04(chan,
NvSub2D, 0x02ac, 1);
72 ret = RING_SPACE(chan, 12);
76 BEGIN_NV04(chan,
NvSub2D, 0x0110, 1);
78 BEGIN_NV04(chan,
NvSub2D, 0x08b0, 4);
83 BEGIN_NV04(chan,
NvSub2D, 0x08d0, 4);
103 if (image->
depth != 1)
106 ret = RING_SPACE(chan, 11);
111 dwords = (width * image->
height) >> 5;
113 BEGIN_NV04(chan,
NvSub2D, 0x0814, 2);
122 BEGIN_NV04(chan,
NvSub2D, 0x0838, 2);
125 BEGIN_NV04(chan,
NvSub2D, 0x0850, 4);
132 int push = dwords > 2047 ? 2047 : dwords;
134 ret = RING_SPACE(chan, push + 1);
140 BEGIN_NI04(chan,
NvSub2D, 0x0860, push);
160 switch (info->
var.bits_per_pixel) {
171 switch (info->
var.transp.length) {
188 0x502d,
NULL, 0, &
object);
192 ret = RING_SPACE(chan, 59);
198 BEGIN_NV04(chan,
NvSub2D, 0x0000, 1);
200 BEGIN_NV04(chan,
NvSub2D, 0x0184, 3);
204 BEGIN_NV04(chan,
NvSub2D, 0x0290, 1);
206 BEGIN_NV04(chan,
NvSub2D, 0x0888, 1);
208 BEGIN_NV04(chan,
NvSub2D, 0x02ac, 1);
210 BEGIN_NV04(chan,
NvSub2D, 0x02a0, 1);
212 BEGIN_NV04(chan,
NvSub2D, 0x08c0, 4);
217 BEGIN_NV04(chan,
NvSub2D, 0x0580, 2);
220 BEGIN_NV04(chan,
NvSub2D, 0x02e8, 2);
223 BEGIN_NV04(chan,
NvSub2D, 0x0804, 1);
225 BEGIN_NV04(chan,
NvSub2D, 0x0800, 1);
227 BEGIN_NV04(chan,
NvSub2D, 0x0808, 3);
231 BEGIN_NV04(chan,
NvSub2D, 0x081c, 1);
233 BEGIN_NV04(chan,
NvSub2D, 0x0840, 4);
238 BEGIN_NV04(chan,
NvSub2D, 0x0200, 2);
241 BEGIN_NV04(chan,
NvSub2D, 0x0214, 5);
247 BEGIN_NV04(chan,
NvSub2D, 0x0230, 2);
250 BEGIN_NV04(chan,
NvSub2D, 0x0244, 5);