Claims
- 1. A deferred graphics pipeline processor comprising:
a mode extraction unit configured to receive a data stream and separate said data stream into vertices data and non-vertices data including pipeline state data; a polygon memory operatively associated with said extraction unit to store said non-vertices data; a mode injection unit receiving inputs from said polygon memory; a processing unit configured to receive said pipeline state data from said mode injection unit, said processing unit associated with a cache; said cache configured to store at least some previously received pipeline state data, said mode injection unit being operatively associated with said cache and maintaining status information identifying said stored data and not transmitting said stored data, thereby reducing communication bandwidth.
- 2. A 3D graphics pipeline for generating a rendered image from a plurality of graphics primitives, said pipeline comprising:
a mode extraction unit extracting and storing pipeline state information from data flowing through said pipeline and associating said stored pipeline state information with said graphics primitives; a processing unit configured to perform an operation on at least one of said graphics primitives, said processing unit operatively associated with a cache for caching at least some received pipeline state information; and a mode injection unit configured to retrieve first stored pipeline state information associated with a first primitive, based on a determination that said first stored pipeline state information is not cached, and injecting said first stored pipeline state information into the data flowing through the pipeline.
- 3. The 3D graphics pipeline of claim 2, the pipeline further comprising:
a plurality of tag memories storing a unique identifier for each piece of pipeline state information that is cached; and a plurality of data caches storing each piece of pipeline state information that is cached.
- 4. The 3D graphics pipeline of claim 3, the pipeline further comprising:
logic inputting the unique identifiers into one or more tag memories to determine which pieces of pipeline state information are missing from the data caches; and logic retrieving the missing pipeline state information and sending the retrieved pipeline state information down the pipeline ahead of associated graphics primitives for storage into the data caches, thereby guaranteeing needed state information is residing in the data caches at the time it is needed.
- 5. A computing system for 3-D graphics rendering, generating a final rendered image, comprising:
a general-purpose computer having a processor; and a 3-D graphics processor coupled to said processor and comprising:
(1) a mode extraction unit extracting and storing pipeline state information from data flowing through the pipeline and associating the stored pipeline state information with the graphics primitives; (2) a processing unit configured to perform an operation on at least one of the graphics primitives, said processing unit operatively associated with a cache for caching received pipeline state information; and (3) a mode injection unit configured to retrieve first stored pipeline state information associated with a first primitive, based on a determination that said first information is not cached, and injecting the retrieved pipeline state information into the data flowing through the pipeline.
- 6. The system of claim 5, said processor further comprising:
a plurality of tag memories storing a unique identifier for each piece of pipeline state information that is cached; a plurality of data caches storing each piece of pipeline state information that is cached; logic inputting the unique identifiers into one or more tag memories to determine which pieces of pipeline state information are missing from the data caches; and logic retrieving the missing pipeline state information and sending the retrieved pipeline state information down the pipeline ahead of associated graphics primitives for storage into the data caches, thereby guaranteeing needed state information is residing in the data caches at the time it is needed.
- 7. A method for generating a rendered image from a plurality of graphics primitives, the method comprising:
maintaining current pipeline state information, the current pipeline state information divided into a plurality of state partitions; indicating one or more changed state partitions, the changed state partitions being one or more of the state partitions in which the current pipeline state information has changed; storing a multiplicity of the changed state partitions; generating associations between the graphics primitives and corresponding stored state partitions; determining when one or more of the stored changed state partitions is needed to process one of the graphics primitives; and retrieving one or more of the stored changed state partitions by using the generated associations.
- 8. The method of claim 7, further comprising:
storing spatial data of the primitives; storing non-spatial data of the primitives; and generating associations between the spatial data of the primitives and the non-spatial data of the primitives.
- 9. The method of claim 8, further comprising:
spatially sorting the primitives according to a set of tiles within the image, the tiles being regions within the image; and generating a list for each of the tiles of the stored primitives that overlap the tiles.
- 10. The method of claim 7, further comprising:
receiving a data packet of variable width, the packet updating part of the current pipeline state information.
- 11. The method of claim 7, further comprising:
maintaining at least some of the plurality of state partitions in front-back pairs in which only one partition in each pair is relevant for a particular one of the primitives; and generating associations between each of the graphics primitives and precisely one of the two state partitions in each of the front-back pairs of state partitions.
- 12. The method of claim 7, further comprising:
receiving labels attached to corresponding state partitions, the labels used to refer to a plurality of labeled state partitions so as to reduce the amount of data fed into the pipeline.
- 13. The method of claim 7, wherein the current pipeline state information further comprises instructions that are executed to perform lighting computations.
- 14. The method of claim 7, further comprising:
maintaining a plurality of dirty flags, each of the dirty flags corresponding to one of the state partitions, each dirty flag indicating whether the corresponding state partition has changed since the last time the corresponding state partition was stored.
- 15. The method of claim 7, further comprising:
comparing at least some of an incoming pipeline state information to at least some of the current pipeline state information.
- 16. The method of claim 7, further comprising:
generating a set of pointers, each of the pointers used for locating one of the state partitions, at least some of the set of pointers being shared amongst a plurality of the primitives.
- 17. The method of claim 7, further comprising:
storing pieces of the pipeline state information in the retrieved state partitions in a plurality of data cache memories so that the number of times state partitions are retrieved from storage is reduced as compared to a pipeline not storing pieces of the pipeline state information in the retrieved state partitions.
- 18. The method of claim 17, further comprising:
storing a unique identifier in one or more of a plurality of tag memories, one of the unique identifiers for each of the pieces of pipeline state information that are cached in one of the data cache memories; and inputting the unique identifiers into one or more of the tag memories to determine which pieces of the pipeline state information are missing from the data caches.
- 19. The method of claim 8, further comprising:
generating a set of pointers for each primitive, each of the sets of pointers used for locating the non-spatial data of the primitives, the set of pointers comprising an address and an offset.
- 20. The method of claim 7, further comprising:
performing hidden surface removal to cull out parts of the primitives that definitely do not contribute to the final rendered image.
- 21. The method of claim 7, further comprising:
operating on a selected one of the primitives and providing a clipping guard band, the clipping guard band being an additional area around the image, the operating on the selected one of the primitives comprising:
(a) not clipping and not discarding the selected primitive if the selected primitive is completely within the bounds of the clipping guard band; (b) discarding the selected primitive if the selected primitive is completely outside the image; and (c) clipping the selected primitive if the selected primitive is not completely within the bounds of the clipping guardband and not completely outside the image.
RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Patent Application Serial No. 60/097,336 entitled Graphics Processor with Deferred Shading filed Aug. 20, 1998, incoporated by reference.
[0002] This application is also related to the following U.S. Patent Applications, each of which are incorporated herein by reference: Ser. No. 09/213,990, filed Dec. 17, 1998, entitled HOW TO DO TANGENT SPACE LIGHTING IN A DEFERRED SHADING ARCHITECTURE (Atty. Doc. No. A-66397);
[0003] Ser. No. ______, filed ______, entitled APPARATUS AND METHOD FOR PERFORMING SETUP OPERATIONS IN A 3-D GRAPHICS PIPELINE USING UNIFIED PRIMITIVE DESCRIPTORS (Atty. Doc. No. A-66382);
[0004] Ser. No. ______, filed ______, entitled POST-FILE SORTING SETUP (Atty. Doc. No. A-66383);
[0005] Ser. No. ______, filed ______, entitled TILE RELATIVE Y-VALUES AND SCREEN RELATIVE X-VALUES (Atty. Doc. No. A-66384);
[0006] Ser. No. ______, filed ______, entitled SYSTEM, APARATUS AND METHOD FOR SPATIALLY SORTING IMAGE DATA IN A THREE-DIMENSIONAL GRAPHICS PIPELINE (Atty. Doc. No. A-66380);
[0007] Ser. No. ______, filed ______, entitled SYSTEM, APPARATUS AND METHOD FOR GENERATING GUARANTEED CONSERVATIVE MEMORY ESTIMATE FOR SORTING OBJECT GEOMETRY IN A THREE-DIMENSIONAL GRAPHICS PIPELINE (Atty. Doc. No. A-66381);
[0008] Ser. No. ______, filed ______, entitled SYSTEM, APPARATUS AND METHOD FOR BALANCING RENDERING RESOURCES IN A THREE-DIMENSIONAL GRAPHICS PIPELINE (Atty. Doc. No. A-66379);
[0009] Ser. No. ______, filed ______, entitled GRAPHICS PROCESSOR WITH PIPELINE STATE STORAGE AND RETRIEVAL (Atty. Doc. No. A-66378);
[0010] Ser. No. ______, filed ______, entitled METHOD AND APPARATUS FOR GENERATING TEXTURE (Atty. Doc. No. A-66398);
[0011] Ser. No. ______, filed ______, entitled METHOD AND APPARATUS FOR PERFORMING CONSERVATIVE HIDDEN SURFACE REMOVAL IN A GRAPHICS PROCESSOR WITH DEFERRED SHADING (Attomey Doc. No. A-66386);
[0012] Ser. No. ______, filed ______, entitled DEFERRED SHADING GRAPHICS PIPELINE PROCESSOR HAVING ADVANCED FEATURES (Atty. Doc. No. A-6634)
[0013] Ser. No. ______, filed ______, entitled APPARATUS AND METHOD FOR GEOMETRY OPERATIONS IN A 3D GRAPHICS PIPELINE (Atty. Doc. No. A-66373);
[0014] Ser. No. ______, filed ______, entitled APPARATUS AND METHOD FOR FRAGMENT OPERATIONS IN A 3D GRAPHICS PIPELINE (Atty. Doc. No. A-66399); and
[0015] Ser. No. ______, filed ______, entitled DEFERRED SHADING GRAPHICS PIPELINE PROCESSOR (Atty. Doc. No. A-66360).
Provisional Applications (1)
|
Number |
Date |
Country |
|
60097336 |
Aug 1998 |
US |
Continuations (1)
|
Number |
Date |
Country |
Parent |
09378439 |
Aug 1999 |
US |
Child |
10290414 |
Nov 2002 |
US |