1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 7<TITLE>GP Command Templates</TITLE> 8</HEAD> 9<BODY> 10<H1 align="left">GP Command Templates</H1> 11<H2>Description</H2> 12<P>The Graphics Processor (GP) has 4 basic command types:</P> 13<H3>CP Commands</H3> 14<P>These commands are used to write to CP registers. All CP commands have the following format:</P> 15<PRE>| 8 bits | 8 bits | 32 bits | 16| cmd. token | reg. addr. | reg. value |</PRE> 17<P>CP has its own unique register address space.</P> 18<H3>XF Immediate Commands</H3> 19<P>These commands are used to write XF registers. All immediate XF commands have the following format:</P> 20<PRE>| 8 bits | 16 bits | 16 bits | 32 bits * length | 21| cmd. token | length - 1 | 1st addr. | reg. value(s) |</PRE> 22<P>Maximum length (the number of values being sent) is 16.<br>Note that a length field of 0 indicates that data is to be sent to Register 1.<br></P> 23<P><br> XF has its own unique register address space.</P> 24<H3>XF Indexed Commands</H3> 25<P>These commands are also used to write XF registers. There are 4 different XF index units that are typically used in the following ways:</P> 26<UL> 27<LI>A: position coordinate matrices 28<LI>B: normal matrices 29<LI>C: texture coordinate generation matrices 30<LI>D: light objects 31</UL> 32<P>All indexed XF commands have the the following format:</P> 33<PRE>| 8 bits | 16 bits | 4 bits | 12 bits | 34| cmd. token | index value | length - 1 | 1st addr. |</PRE> 35<P>Maximum length (the number of values being sent) is 16.<br>Note that a length field of 0 indicates that data is to be sent to Register 1, and so on.<br></P> 36<P>XF has its own unique register address space.</P> 37<H3>BP Commands</H3> 38<P>These commands are used to write all bypass (raster state) registers (SU through PE).<br>All BP commands have the following format:</P> 39<PRE>| 8 bits | 8 bits | 24 bits | 40| cmd. token | reg. addr. | reg. value |</PRE> 41<P>When specifying a BP command, the register address and value are combined into a single U32 value.<br></P> 42<P>BP has its own unique register address space.</P> 43<H2>Revision History</H2> 44<P>03/01/2006 Initial version.</P> 45</BODY> 46</HTML>