gSPSegment.3p
838 Bytes
.TH gSPSegment 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gSPSegment, gsSPSegment
\- set segment registers with base address
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"
gSPSegment(Gfx *gdl, int seg, int base)
gsSPSegment(int seg, int base)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I seg
segment number. There are 16 segment registers indexed 0-15.
.TP
.I base
physical address base.
.SH DESCRIPTION
All pointers embedded in the Reality Coprocessor display list are
segment addresses composed of a segment base and offset address.
The base physical addresses for these segments are set using the
.I gSPSegment
command.
The actual addresses read by the RSP go thru the following translation:
.Ex
real_address = base_address[segment_number] + offset.
.Ee
.SH SEE ALSO
.IR osVirtualToPhysical (3P)