pxPacketFlush(sp, pp);
pxPacketAddPrim0(pxScreenPrivPtr sp, pxPacketPtr pp){	u_int32_t *pb;	int sel;	PX_TRACE("pxPacketAddPrim0");	pxPacketFlush(sp, pp);	if (!sp->queueing)		sel = (sp->pbsel ^= 1);	else {		/* Allocate a buffer and assign it a unique ID. */		pp->ident = (idgen += 2) | 1;		pp->bufnum = sp->sxc->sxc_head;		sel = pp->bufnum;		sp->sxc->sxc_done[sel] = pp->ident;	}	pb = sp->buf + sel * (STIC_PACKET_SIZE / sizeof(u_int32_t));	memcpy(pb, pp->head, pp->hdrsz * sizeof(u_int32_t));	pp->head = pb;	pp->curpb = pb + pp->hdrsz;	pp->primcnt = 0;	pb[1] &= 0x00ffffff;}