forked from arti/vt1200
The XIE path now runs end to end: XieCreateImage -> XieCreatePhoto ->
XiePutTile -> XieExport(photomap -> depth-1 pixmap) -> XCopyArea(pixmap ->
window), and the client's tile appears on screen at the client's own window
position, pixel-exact.
TWO FAULTS BEHIND THE LONG DEAD END
1. Device model (harness/mame/vt1200.cpp, opt-in VT1200_ACCEL=1). The
accelerator's output port 0x5600200 returns the pixel stream the firmware
pushed into the FIFO -- the firmware then stores it into the drawable itself
(file 0x125528: MOVE *B6,*B1 ; ADDK 0x10,B1). The FIFO read pointer was
never reset between transfers, so consecutive exports read stale words and
the same fill produced 759 then 516 set pixels. Reset m_fifo_in/out on the
data-register write; the export is now deterministic.
2. Measurement, not the device.
- dwt/screenshot.py without --real reads 1024x1024 at a 128-byte row stride,
but the VR319 default programs 1280x1024 at a 2048-bit (256-byte) pitch.
That is the "shifted" picture; --real is the correct read.
- The earlier "0 differing bytes over 128 KiB" VRAM comparison stepped peek
by 1024 *bit* addresses, so it scanned rows 0..63 only -- never the window
at rows 200..263. Over the real raster the white/black diff is 576 bytes
spanning exactly those rows.
- New instrument: decclient does a server-side XGetImage readback of the
pixmap and window and counts set pixels. That separated "the server never
drew it" from "the framebuffer view is wrong".
EVIDENCE (reproduced twice, the second time from a fresh machine)
no export vs 0xFF : 4096 / 4096 pixels differ
no export vs 0x00 : 0 / 4096 (the window background is black)
0xFF vs 0x00 : 4096 / 4096
0xAA vs 0x0F : 2048 / 4096 (the two stripe phases)
Tile byte 0xAA reproduces as 1-pixel vertical stripes, 0x0F as 4-pixel, with
no shear -- so the placement is right and the pixels are the client's.
Contents: xie/ holds DEC XIE 2.3 headers, 84 man pages and complete
client+server source; a libXie.a and decclient built from DEC's own code; the
XIE probes; and evidence/ with every measurement, including explicit
retractions of the earlier wrong readings (VRAM_IDENTICAL_FOR_BOTH_FILLS and
friends). xie/evidence/XIE_IMAGE_DISPLAYED.md is the report; frames are in
xie/evidence/png/.
The accelerator model stays opt-in: it answers the status poll and relays the
pixel stream, but performs no compositing, so it is a stand-in and the verified
default configuration is unchanged (a no-env run still parks in the level-0
diagnostics menu at PC=3FDCE400).
193 lines
8.2 KiB
C
193 lines
8.2 KiB
C
/*
|
|
* *****************************************************************
|
|
* * *
|
|
* * Copyright (c) Digital Equipment Corporation, 1991, 1994 *
|
|
* * *
|
|
* * All Rights Reserved. Unpublished rights reserved under *
|
|
* * the copyright laws of the United States. *
|
|
* * *
|
|
* * The software contained on this media is proprietary to *
|
|
* * and embodies the confidential technology of Digital *
|
|
* * Equipment Corporation. Possession, use, duplication or *
|
|
* * dissemination of the software and media is authorized only *
|
|
* * pursuant to a valid written license from Digital Equipment *
|
|
* * Corporation. *
|
|
* * *
|
|
* * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure *
|
|
* * by the U.S. Government is subject to restrictions as set *
|
|
* * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, *
|
|
* * or in FAR 52.227-19, as applicable. *
|
|
* * *
|
|
* *****************************************************************
|
|
*/
|
|
/*
|
|
* HISTORY
|
|
*/
|
|
/*
|
|
**************************************************************************
|
|
** DIGITAL EQUIPMENT CORPORATION **
|
|
** CONFIDENTIAL **
|
|
** NOT FOR MODIFICATION OR REDISTRIBUTION IN ANY MANNER WHATSOEVER **
|
|
**************************************************************************
|
|
*/
|
|
/* BuildSystemHeader added automatically */
|
|
/* $Header: /alphabits/u3/x11/ode/rcs/x11/src/extensions/include/xtraplibp.h,v 1.1.2.3 92/04/27 12:33:25 Leela_Obilichetti Exp $ */
|
|
|
|
#ifndef __XTRAPLIBP__
|
|
#define __XTRAPLIBP__
|
|
|
|
|
|
/*****************************************************************************
|
|
Copyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA
|
|
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
documentation for any purpose and without fee is hereby granted,
|
|
provided that the above copyright notice appear in all copies and that
|
|
both that copyright notice and this permission notice appear in
|
|
supporting documentation, and that the name of Digital not be
|
|
used in advertising or publicity pertaining to distribution of the
|
|
software without specific, written prior permission.
|
|
|
|
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
|
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
|
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
|
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
SOFTWARE.
|
|
|
|
*****************************************************************************/
|
|
/*
|
|
*
|
|
* CONTRIBUTORS:
|
|
*
|
|
* Dick Annicchiarico
|
|
* Robert Chesler
|
|
* Dan Coutu
|
|
* Gene Durso
|
|
* Marc Evans
|
|
* Alan Jamison
|
|
* Mark Henry
|
|
* Ken Miller
|
|
*
|
|
* DESCRIPTION:
|
|
* This header file contains the function prototypes for client/toolkit
|
|
* routines sorted by module (globally defined routines *only*).
|
|
*/
|
|
#if (__STDC__ || defined vaxc)
|
|
#define FUNCTION_PROTOS
|
|
#endif
|
|
#ifdef FUNCTION_PROTOS
|
|
# define P(s) s
|
|
#else
|
|
# define P(s) ()
|
|
#endif
|
|
|
|
/* XETrapContext.c */
|
|
XETC *XECreateTC P((Display *dpy , CARD32 valuemask , XETCValues *value ));
|
|
int XEChangeTC P((XETC *tc , CARD32 mask , XETCValues *values ));
|
|
void XEFreeTC P((XETC *tc ));
|
|
int XETrapSetMaxPacket P((XETC *tc , Bool set_flag , CARD16 size ));
|
|
int XETrapSetCommandKey P((XETC *tc , Bool set_flag , KeySym cmd_key ,
|
|
Bool mod_flag ));
|
|
int XETrapSetTimestamps P((XETC *tc , Bool set_flag , Bool delta_flag ));
|
|
int XETrapSetWinXY P((XETC *tc , Bool set_flag ));
|
|
int XETrapSetCursor P((XETC *tc , Bool set_flag ));
|
|
int XETrapSetXInput P((XETC *tc , Bool set_flag ));
|
|
int XETrapSetColorReplies P((XETC *tc , Bool set_flag ));
|
|
int XETrapSetGrabServer P((XETC *tc , Bool set_flag ));
|
|
int XETrapSetStatistics P((XETC *tc , Bool set_flag ));
|
|
int XETrapSetRequests P((XETC *tc , Bool set_flag , ReqFlags requests ));
|
|
int XETrapSetEvents P((XETC *tc , Bool set_flag , EventFlags events ));
|
|
Bool XESetCmdGateState P((XETC *tc , CARD8 type, Bool *gate_closed ,
|
|
CARD8 *next_key , Bool *key_ignore ));
|
|
|
|
/* XETrapRequests.c */
|
|
int XEFlushConfig P((XETC *tc ));
|
|
int XEResetRequest P((XETC *tc ));
|
|
int XEGetVersionRequest P((XETC *tc , XETrapGetVersRep *ret ));
|
|
int XEGetLastInpTimeRequest P((XETC *tc , XETrapGetLastInpTimeRep *ret ));
|
|
int XEGetAvailableRequest P((XETC *tc , XETrapGetAvailRep *ret ));
|
|
int XEStartTrapRequest P((XETC *tc ));
|
|
int XEStopTrapRequest P((XETC *tc ));
|
|
int XESimulateXEventRequest P((XETC *tc , CARD8 type , CARD8 detail ,
|
|
CARD16 x , CARD16 y , CARD8 screen ));
|
|
int XEGetCurrentRequest P((XETC *tc , XETrapGetCurRep *ret ));
|
|
int XEGetStatisticsRequest P((XETC *tc , XETrapGetStatsRep *ret ));
|
|
|
|
/* XECallbacks.c */
|
|
int XEAddRequestCB P((XETC *tc , CARD8 req , void_function func , BYTE *data ));
|
|
int XEAddRequestCBs P((XETC *tc , ReqFlags req_flags , void_function func ,
|
|
BYTE *data ));
|
|
int XEAddEventCB P((XETC *tc , CARD8 evt , void_function func , BYTE *data ));
|
|
int XEAddEventCBs P((XETC *tc , EventFlags evt_flags , void_function func ,
|
|
BYTE *data ));
|
|
|
|
/* XETrapDispatch.c */
|
|
void XETrapDispatchXLib P((XETrapDataEvent *event , XETC *tc));
|
|
|
|
/* XEWrappers.c */
|
|
Boolean XETrapDispatchEvent P((XEvent *pevent , XETC *tc ));
|
|
XtInputMask XETrapAppPending P((XtAppContext app));
|
|
void XETrapAppMainLoop P((XtAppContext app , XETC *tc ));
|
|
int XETrapAppWhileLoop P((XtAppContext app , XETC *tc , Bool *done ));
|
|
#ifdef X11R3
|
|
Widget XtAppInitialize P((XtAppContext *app , String application_class ,
|
|
XrmOptionDescRec *options , Cardinal num_options , Cardinal *argc_in_out ,
|
|
String *argv_in_out , String *fallback_resources ,
|
|
ArgList args_in , Cardinal num_args_in));
|
|
#endif
|
|
int XETrapWaitForSomething P((XtAppContext app ));
|
|
|
|
/* XEPrintInfo.c */
|
|
void XEPrintRelease P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintPlatform P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintAvailFlags P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintAvailPktSz P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintStateFlags P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintMajOpcode P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintCurXY P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintTkFlags P((FILE *ofp , XETC *tc ));
|
|
void XEPrintLastTime P((FILE *ofp , XETC *tc ));
|
|
void XEPrintCfgFlags P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintRequests P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintEvents P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintCurPktSz P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintCmdKey P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintEvtStats P((FILE *ofp , XETrapGetStatsRep *pstats ));
|
|
void XEPrintReqStats P((FILE *ofp , XETrapGetStatsRep *pstats ));
|
|
void XEPrintAvail P((FILE *ofp , XETrapGetAvailRep *pavail ));
|
|
void XEPrintTkState P((FILE *ofp , XETC *tc ));
|
|
void XEPrintCurrent P((FILE *ofp , XETrapGetCurRep *pcur ));
|
|
void XEPrintStatistics P((FILE *ofp , XETrapGetStatsRep *pstats ));
|
|
|
|
/* XEStringMapping.c */
|
|
INT16 XEEventStringToID P((char *string ));
|
|
INT16 XERequestStringToID P((char *string ));
|
|
CARD32 XEPlatformStringToID P((char *string ));
|
|
char *XEEventIDToString P((CARD8 id ));
|
|
char *XERequestIDToExtString P((register CARD8 id ));
|
|
char *XERequestIDToString P((CARD8 id ));
|
|
char *XEPlatformIDToString P((CARD32 id ));
|
|
|
|
/* getopt.c */
|
|
int *XEgetopterr();
|
|
int *XEgetoptind();
|
|
int *XEgetoptopt();
|
|
char **XEgetoptarg();
|
|
int getopt P((int argc , char **argv , char *optstring ));
|
|
|
|
/* sleep.c */
|
|
void usleep P((unsigned long usecs ));
|
|
|
|
/* XEKeybCtrl.c */
|
|
int XEEnableCtrlKeys P((void (*rtn)() ));
|
|
int XEClearCtrlKeys P((void ));
|
|
int XEEnableCtrlC P((void (*rtn)() ));
|
|
int XEEnableCtrlY P((void (*rtn)() ));
|
|
int XEDeclExitHndlr P((void (*rtn)() ));
|
|
|
|
#undef P
|
|
|
|
#endif /* __XTRAPLIBP__ */
|