1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
|
/*
* file accelX.c
*
* accelerator functions for X
*/
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/accelX.c,v 1.10 2001/06/15 21:22:54 dawes Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/*
* includes
*/
#include "rendition.h"
#include "accel.h"
#include "vboard.h"
#include "vmodes.h"
#include "vos.h"
#include "v1kregs.h"
#include "v1krisc.h"
#include "v2kregs.h"
#include "cmd2d.h"
#include "vloaduc.h"
#undef DEBUG
/*
* defines
*/
#define waitfifo(size) do { int _c=0; \
while ((_c++<0xfffff)&&((verite_in8(iob+FIFOINFREE)&0x1f)<size)) /* if(!(_c%0xffff))ErrorF("#1# !0x%x! -- ",verite_in8(iob+FIFOINFREE)) */; \
if (_c >= 0xfffff) { \
ErrorF("RENDITION: Input fifo full (1) FIFO in == %d\n",verite_in8(iob+FIFOINFREE)&0x1f); \
return; \
} \
} while (0)
#define waitfifo2(size, rv) do { int _c=0; \
while ((_c++<0xfffff)&&((verite_in8(iob+FIFOINFREE)&0x1f)<size)) /* if(!(_c%0xffff))ErrorF("#2# !0x%x! -- ",verite_in8(iob+FIFOINFREE)) */; \
if (_c >= 0xfffff) { \
ErrorF("RENDITION: Input fifo full (2) FIFO in ==%d\n",verite_in8(iob+FIFOINFREE)&0x1f); \
RENDITIONAccelNone(pScreenInfo); \
pRendition->board.accel=0; \
return rv; \
} \
} while (0)
#define P1(x) ((vu32)x)
#define P2(x, y) ((((vu16)x)<<16)+((vu16)y))
/*
* local function prototypes
*/
void RENDITIONSaveUcode(ScrnInfoPtr pScreenInfo);
void RENDITIONRestoreUcode(ScrnInfoPtr pScreenInfo);
void RENDITIONSyncV1000(ScrnInfoPtr pScreenInfo);
void RENDITIONSetupForScreenToScreenCopy(ScrnInfoPtr pScreenInfo,
int xdir, int ydir, int rop,
unsigned int planemask,
int trans_color);
void RENDITIONSubsequentScreenToScreenCopy(ScrnInfoPtr pScreenInfo,
int srcX, int srcY,
int dstX, int dstY,
int w, int h);
void RENDITIONSetupForSolidFill(ScrnInfoPtr pScreenInfo,
int color, int rop,
unsigned int planemask);
void RENDITIONSubsequentSolidFillRect(ScrnInfoPtr pScreenInfo,
int x, int y, int w, int h);
void RENDITIONSubsequentTwoPointLine(ScrnInfoPtr pScreenInfo,
int x1, int y1,
int x2, int y2,
int bias);
/*
* global data
*/
static int Rop2Rop[]={
ROP_ALLBITS0, ROP_AND_SD, ROP_AND_SND, ROP_S,
/* GXclear, GXand, GXandReverse, GXcopy, */
ROP_AND_NSD, ROP_D, ROP_XOR_SD, ROP_OR_SD,
/* GXandInverted, GXnoop, GXxor, GXor, */
ROP_NOR_SD, ROP_S, ROP_NOT_D, ROP_NOT_S,
/* suppose I have some problems understanding what invert and revers means <ml>
ROP_NOR_SD, ROP_S, ROP_NOT_S, ROP_NOT_D, */
/* GXnor, GXequiv, GXinvert, GXorReverse, */
ROP_NOT_S, ROP_XNOR_SD, ROP_NAND_SD, ROP_ALLBITS1 };
/* GXcopyInverted, GXorInverted, GXnand, GXset */
/*
* functions
*/
void
RENDITIONAccelPreInit(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONAccelPreInit called\n");
sleep(1);
#endif
#if 1
if (RENDITIONLoadUcode(pScreenInfo)){
ErrorF ("RENDITION: AccelPreInit - Warning. Loading of microcode failed!!\n");
}
#endif
pRendition->board.fbOffset += MC_SIZE;
#ifdef DEBUG
ErrorF("RENDITION: Offset is now %d\n",pRendition->board.fbOffset);
sleep(2);
#endif
}
void
RENDITIONAccelXAAInit(ScreenPtr pScreen)
{
ScrnInfoPtr pScreenInfo = xf86Screens[pScreen->myNum];
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
XAAInfoRecPtr pXAAinfo;
BoxRec AvailFBArea;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONAccelInit called\n");
sleep(2);
#endif
pRendition->AccelInfoRec = pXAAinfo = XAACreateInfoRec();
if(!pXAAinfo){
xf86DrvMsg(pScreenInfo->scrnIndex,X_ERROR,
("Failed to set up XAA structure!\n"));
return;
}
/* Here we fill in the XAA callback names */
/* Sync is the only compulsary function */
pXAAinfo->Sync = RENDITIONSyncV1000;
/* Here are the other functions & flags */
pXAAinfo->Flags=DO_NOT_BLIT_STIPPLES|
LINEAR_FRAMEBUFFER|
PIXMAP_CACHE|
OFFSCREEN_PIXMAPS;
/* screen to screen copy */
#if 1
pXAAinfo->CopyAreaFlags=NO_TRANSPARENCY|
ONLY_TWO_BITBLT_DIRECTIONS;
pXAAinfo->SetupForScreenToScreenCopy=
RENDITIONSetupForScreenToScreenCopy;
pXAAinfo->SubsequentScreenToScreenCopy=
RENDITIONSubsequentScreenToScreenCopy;
#endif
#if 0
/* solid filled rectangles */
pXAAinfo->SetupForSolidFill=
RENDITIONSetupForSolidFill;
pXAAinfo->SubsequentSolidFillRect=
RENDITIONSubsequentSolidFillRect;
/* line */
xf86AccelInfoRec.SubsequentTwoPointLine =
RENDITIONSubsequentTwoPointLine;
#endif /* #if 0 */
verite_check_csucode(pScreenInfo);
if (RENDITIONLoadUcode(pScreenInfo)) return;
if (RENDITIONInitUcode(pScreenInfo)) return;
verite_check_csucode(pScreenInfo);
/* the remaining code was copied from s3verite_accel.c.
* we need to check it if it is suitable <ml> */
/* make sure offscreen pixmaps aren't bigger than our address space */
pXAAinfo->maxOffPixWidth = 2048;
pXAAinfo->maxOffPixHeight = 2048;
/*
* Finally, we set up the video memory space available to the pixmap
* cache. In this case, all memory from the end of the virtual screen to
* the end of video memory minus 64K (and any other memory which we
* already reserved like HW-Cursor), can be used.
*/
pXAAinfo->PixmapCacheFlags = DO_NOT_BLIT_STIPPLES;
AvailFBArea.x1 = 0;
AvailFBArea.y1 = 0;
AvailFBArea.x2 = pScreenInfo->displayWidth;
AvailFBArea.y2 = (((pScreenInfo->videoRam*1024) -
pRendition->board.fbOffset) /
((pScreenInfo->displayWidth * pScreenInfo->bitsPerPixel)
/ 8));
xf86InitFBManager(pScreen, &AvailFBArea);
XAAInit(pScreen, pXAAinfo);
pRendition->board.accel=1;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONAccelInit End\n");
sleep(2);
#endif
}
void
RENDITIONAccelNone(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
XAAInfoRecPtr pXAAinfo=pRendition->AccelInfoRec;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONAccelNone called\n");
#endif
pXAAinfo->Flags=0;
pXAAinfo->Sync=NULL;
pXAAinfo->SetupForScreenToScreenCopy=NULL;
pXAAinfo->SubsequentScreenToScreenCopy=NULL;
pXAAinfo->SetupForSolidFill=NULL;
pXAAinfo->SubsequentSolidFillRect=NULL;
#if 0
pXAAinfo->SubsequentTwoPointLine=NULL;
#endif
XAADestroyInfoRec(pRendition->AccelInfoRec);
pRendition->AccelInfoRec=NULL;
}
int
RENDITIONLoadUcode(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
static int ucode_loaded=0;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONLoadUcode called\n");
#endif
/* load or restore ucode */
if (!ucode_loaded) {
if (0 != verite_initboard(pScreenInfo)) {
RENDITIONAccelNone(pScreenInfo);
pRendition->board.accel=0;
return 1;
}
RENDITIONSaveUcode(pScreenInfo);
}
else
RENDITIONRestoreUcode(pScreenInfo);
ErrorF ("Rendition: Ucode successfully %s\n",
(ucode_loaded ? "restored" : "loaded"));
ucode_loaded=1;
return 0;
}
int
RENDITIONInitUcode(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
if (0 == verite_getstride(pScreenInfo, NULL,
&pRendition->board.mode.stride0,
&pRendition->board.mode.stride1)) {
xf86DrvMsg(pScreenInfo->scrnIndex,X_ERROR,
("Acceleration for this resolution not available\n"));
RENDITIONAccelNone(pScreenInfo);
pRendition->board.accel=0;
return 1;
}
else
ErrorF ("Rendition: Stride 0: %d, stride 1: %d\n",
pRendition->board.mode.stride0,
pRendition->board.mode.stride1);
/* NOTE: for 1152x864 only!
stride0=6;
stride1=1;
*/
#ifdef DEBUG
ErrorF("#InitUcode(1)# FIFOIN_FREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
#endif
/* init the ucode */
/* ... and start accelerator */
v1k_flushicache(pScreenInfo);
v1k_start(pScreenInfo, pRendition->board.csucode_base);
#ifdef DEBUG
ErrorF("#InitUcode(2)# FIFOIN_FREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
#endif
verite_out32(iob, 0); /* a0 - ucode init command */
verite_out32(iob, 0); /* a1 - 1024 byte context store area */
verite_out32(iob, 0); /* a2 */
verite_out32(iob, pRendition->board.ucode_entry);
#ifdef DEBUG
ErrorF("#InitUcode(3)# FIFOIN_FREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
#endif
waitfifo2(6, 1);
#ifdef DEBUG
ErrorF("#InitUcode(4)# FIFOIN_FREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
#endif
verite_out32(iob, CMD_SETUP);
verite_out32(iob, P2(pRendition->board.mode.virtualwidth,
pRendition->board.mode.virtualheight));
verite_out32(iob, P2(pRendition->board.mode.bitsperpixel,
pRendition->board.mode.pixelformat));
verite_out32(iob, MC_SIZE);
verite_out32(iob, (pRendition->board.mode.virtualwidth)*
(pRendition->board.mode.bitsperpixel>>3));
verite_out32(iob, (pRendition->board.mode.stride1<<12)|
(pRendition->board.mode.stride0<<8));
#ifdef DEBUG
ErrorF("#InitUcode(5)# FIFOIN_FREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
#endif
#if 0
verite_out32(iob+0x60, 129);
ErrorF("RENDITION: PC at %x\n", verite_in32(iob+0x64));
#endif
return 0;
}
void
RENDITIONRestoreUcode(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
vu8 memend;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONRestoreUcode called\n");
#endif
#ifdef DEBUG
ErrorF("Restore...1\n");
sleep(2);
#endif
v1k_stop(pScreenInfo);
memend=verite_in8(iob+MEMENDIAN);
verite_out8(iob+MEMENDIAN, MEMENDIAN_NO);
#if 1
memcpy(pRendition->board.vmem_base, pRendition->board.ucode_buffer, MC_SIZE);
#else
/* SlowBcopy has inverted src and dst */
xf86SlowBcopy(pRendition->board.ucode_buffer,pRendition->board.vmem_base,MC_SIZE);
#endif
verite_out8(iob+MEMENDIAN, memend);
v1k_flushicache(pScreenInfo);
v1k_start(pScreenInfo, pRendition->board.csucode_base);
verite_out32(iob, 0); /* a0 - ucode init command */
verite_out32(iob, 0); /* a1 - 1024 byte context store area */
verite_out32(iob, 0); /* a2 */
verite_out32(iob, pRendition->board.ucode_entry);
#if 0
verite_out32(iob+0x60, 129);
ErrorF("RENDITION: PC at %x\n", verite_in32(iob+0x64));
#endif
}
void
RENDITIONSaveUcode(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
vu8 memend;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSaveUcode called\n");
sleep(2);
#endif
v1k_stop(pScreenInfo);
memend=verite_in8(iob+MEMENDIAN);
verite_out8(iob+MEMENDIAN, MEMENDIAN_NO);
#if 1
memcpy(pRendition->board.ucode_buffer, pRendition->board.vmem_base, MC_SIZE);
#else
/* SlowBcopy has inverted src and dst */
xf86SlowBcopy(pRendition->board.vmem_base,pRendition->board.ucode_buffer,MC_SIZE);
#endif
verite_out8(iob+MEMENDIAN, memend);
v1k_continue(pScreenInfo);
}
/*
* local functions
*/
/*
* synchronization -- wait for RISC and pixel engine to become idle
*/
void
RENDITIONSyncV1000(ScrnInfoPtr pScreenInfo)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
int c;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSyncV1000 called\n");
ErrorF("#Sync (1)# FIFO_INFREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
ErrorF("#Sync (1)# FIFO_OUTVALID 0x%x -- \n",verite_in8(iob+FIFOOUTVALID));
#endif
c=0;
/* empty output fifo,
i.e. if there is any valid data in the output fifo then read it */
while ((c++<0xfffff) && ((verite_in8(iob+FIFOOUTVALID)&0x7)>0))
(void)verite_in32(iob);
/* if(!(c%0xffff))ErrorF("#F1# !0x%x! -- ",verite_in8(iob+FIFOOUTVALID)); */
if (c >= 0xfffff) {
ErrorF("RENDITION: RISC synchronization failed (1) FIFO out == %d!\n",
verite_in8(iob+FIFOOUTVALID)&0x1f);
return;
}
/* sync RISC */
waitfifo(2);
verite_out32(iob, CMD_GET_PIXEL);
verite_out32(iob, 0);
c=0;
while ((c++<0xfffff) && ((verite_in8(iob+FIFOOUTVALID)&0x7)>0))
(void)verite_in32(iob);
/* if(!(c%0xffff))ErrorF("#F2# !0x%x! -- ",verite_in8(iob+FIFOOUTVALID)); */
if (c >= 0xfffff) {
ErrorF ("Rendition: RISC synchronization failed (2) FIFO out == %d!\n",
verite_in8(iob+FIFOOUTVALID)&0x1f);
return;
}
/* sync pixel engine using csucode -- I suppose this is quite slow <ml> */
v1k_stop(pScreenInfo);
v1k_start(pScreenInfo, pRendition->board.csucode_base);
verite_out32(iob, 2); /* a0 - sync command */
c=0;
while ((c++<0xfffff) && ((verite_in8(iob+FIFOOUTVALID)&0x7)>0))
(void)verite_in32(iob);
/* if(!(c%0xffff))ErrorF("#F3# !0x%x! -- ",verite_in8(iob+FIFOOUTVALID)); */
if (c == 0xfffff) {
ErrorF ("Rendition: Pixel engine synchronization failed FIFO out == %d!\n",
verite_in8(iob+FIFOOUTVALID)&0x1f);
return;
}
/* restart the ucode */
verite_out32(iob, 0); /* a0 - ucode init command */
verite_out32(iob, 0); /* a1 - 1024 byte context store area */
verite_out32(iob, 0); /* a2 */
verite_out32(iob, pRendition->board.ucode_entry);
/* init the ucode */
waitfifo(6);
verite_out32(iob, CMD_SETUP);
verite_out32(iob, P2(pRendition->board.mode.virtualwidth,
pRendition->board.mode.virtualheight));
verite_out32(iob, P2(pRendition->board.mode.bitsperpixel,
pRendition->board.mode.pixelformat));
verite_out32(iob, MC_SIZE);
verite_out32(iob, pRendition->board.mode.virtualwidth *
(pRendition->board.mode.bitsperpixel>>3));
verite_out32(iob, (pRendition->board.mode.stride1<<12) |
(pRendition->board.mode.stride0<<8));
}
/*
* screen to screen copy
*/
void
RENDITIONSetupForScreenToScreenCopy(ScrnInfoPtr pScreenInfo,
int xdir, int ydir, int rop,
unsigned planemask, int trans_color)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSetupForScreenToScreenCopy("
"%2d, %2d, %2d, %u, %d) called\n", xdir, ydir, rop, planemask, trans_color);
ErrorF("RENDITION: rop is %x/%x\n", rop, Rop2Rop[rop]);
#endif
pRendition->board.Rop=Rop2Rop[rop];
}
void
RENDITIONSubsequentScreenToScreenCopy(ScrnInfoPtr pScreenInfo,
int srcX, int srcY,
int dstX, int dstY,
int w, int h)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSubsequentScreenToScreenCopy("
"%d, %d, %d, %d, %d, %d) called\n", srcX, srcY, dstX, dstY, w, h);
#endif
#if 1 /* def DEBUG */
ErrorF("#ScreentoScreen# FIFO_INFREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
ErrorF("#ScreentoScreen# FIFO_OUTVALID 0x%x -- \n",verite_in8(iob+FIFOOUTVALID));
#endif
waitfifo(5);
verite_out32(iob, CMD_SCREEN_BLT);
verite_out32(iob, pRendition->board.Rop);
verite_out32(iob, P2(srcX, srcY));
verite_out32(iob, P2(w, h));
verite_out32(iob, P2(dstX, dstY));
}
/*
* solid filled rectangles
*/
void
RENDITIONSetupForSolidFill(ScrnInfoPtr pScreenInfo,
int color, int rop,
unsigned planemask)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSetupForSolidFill called\n");
ErrorF("RENDITION: Rop is %x/%x\n", rop, Rop2Rop[rop]);
#endif
pRendition->board.Rop=Rop2Rop[rop];
pRendition->board.Color=color;
if (pRendition->board.mode.bitsperpixel < 32)
pRendition->board.Color|=(pRendition->board.Color<<16);
if (pRendition->board.mode.bitsperpixel < 16)
pRendition->board.Color|=(pRendition->board.Color<<8);
}
void
RENDITIONSubsequentSolidFillRect(ScrnInfoPtr pScreenInfo,
int x, int y, int w, int h)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSubsequentSolidFillRect called\n");
#endif
waitfifo(4);
#ifdef DEBUG
ErrorF("#SubsequentSolidFill# FIFO_INFREE 0x%x -- \n",verite_in8(iob+FIFOINFREE));
ErrorF("#SubsequentSolidFill# FIFO_OUTVALID 0x%x -- \n",verite_in8(iob+FIFOOUTVALID));
sleep(1);
#endif
verite_out32(iob, P2(pRendition->board.Rop, CMD_RECT_SOLID_ROP));
verite_out32(iob, pRendition->board.Color);
verite_out32(iob, P2(x, y));
verite_out32(iob, P2(w, h));
}
/*
* line
*/
void
RENDITIONSubsequentTwoPointLine(ScrnInfoPtr pScreenInfo,
int x1, int y1,
int x2, int y2,
int bias)
{
renditionPtr pRendition = RENDITIONPTR(pScreenInfo);
IOADDRESS iob = pRendition->board.io_base;
#ifdef DEBUG
ErrorF("RENDITION: RENDITIONSubsequentTwoPointLine("
"%d, %d, %d, %d, %d) called\n", x1, y1, x2, y2, bias);
#endif
waitfifo(5);
verite_out32(iob, P2(1, CMD_LINE_SOLID));
verite_out32(iob, pRendition->board.Rop);
verite_out32(iob, pRendition->board.Color);
verite_out32(iob, P2(x1, y1));
verite_out32(iob, P2(x2, y2));
}
/*
* end of file accelX.c
*/
|