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 12<H2>Description</H2> 13<P>The Graphics Processor (GP) has 4 basic command types:</P> 14 15<H3>CP Commands</H3> 16<P>These commands are used to write to CP registers. All CP commands have the following format:</P> 17<PRE>| 8 bits | 8 bits | 32 bits | 18| cmd. token | reg. addr. | reg. value |</PRE> 19<P>CP has its own unique register address space.</P> 20 21<H3>XF Immediate Commands</H3> 22<P>These commands are used to write XF registers. All immediate XF commands have the following format:</P> 23<PRE>| 8 bits | 16 bits | 16 bits | 32 bits * length | 24| cmd. token | length - 1 | 1st addr. | reg. value(s) |</PRE> 25<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> 26<P>XF has its own unique register address space.</P> 27 28<H3>XF Indexed Commands</H3> 29<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> 30<UL> 31<LI>A: position coordinate matrices 32<LI>B: normal matrices 33<LI>C: texture coordinate generation matrices 34<LI>D: light objects 35</UL> 36<P>All indexed XF commands have the the following format:</P> 37<PRE>| 8 bits | 16 bits | 4 bits | 12 bits | 38| cmd. token | index value | length - 1 | 1st addr. |</PRE> 39<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> 40<P>XF has its own unique register address space.</P> 41 42<H3>BP Commands</H3> 43<P>These commands are used to write all bypass (raster state) registers (SU through PE).<br>All BP commands have the following format:</P> 44<PRE>| 8 bits | 8 bits | 24 bits | 45| cmd. token | reg. addr. | reg. value |</PRE> 46<P>When specifying a BP command, the register address and value are combined into a single U32 value.<br></P> 47<P>BP has its own unique register address space.</P> 48 49<H2>Revision History</H2> 50<P> 512006/03/01 Initial version.<br> 52</P> 53 54<hr><p>CONFIDENTIAL</p></body> 55</HTML>