Claims
- 1. A device for caching data in a graphics computer system, the device comprising:
- the graphics computer system configured to have a first graphics mode of operation and a second graphics mode of operation;
- a cache memory having a plurality of cache lines, the cache memory configured to cache the data, wherein the data comprises a first type of data and a second type of data;
- a first allocation of the plurality of cache lines in response to the first graphics mode of operation, wherein a first portion of the plurality of cache lines are allocated to cache only the first type of data and a second portion of the plurality of cache lines are allocated to cache only the second type of data with the first allocation; and
- a second allocation of the plurality of cache lines in response to the second graphics mode of operation, wherein a third portion of the plurality of cache lines are allocated to cache only the first type of data and a fourth portion of the plurality of cache lines are allocated to cache only the second type of data with the second allocation.
- 2. The device described in claim 1 wherein the first portion of the plurality of cache lines includes all the plurality of cache lines and the second portion of the plurality of cache lines includes none of the plurality of cache lines.
- 3. The device described in claim 2 wherein the first portion of the plurality of cache lines includes four line buffers.
- 4. The device described in claim 3 wherein the first type of data is texel information.
- 5. The device described in claim 1 wherein the data further comprises a third type of data, wherein the second allocation further caches the third type of data in a fifth portion of the plurality of cache lines.
- 6. The device described in claim 5 wherein the third portion of the plurality cache lines includes two line buffers, the fourth portion of the plurality cache lines includes one line buffer and the fifth portion of the plurality of cache lines includes one line buffer.
- 7. The device described in claim 6 wherein the first type of data is texel information, the second type of data is pixel information and the third type of data is Z information.
- 8. The device described in claim 1 wherein the graphics computer system includes a pipeline processor configured to process a task, the task propagating through an earlier stage and then a subsequent stage in the pipeline processor, the device further comprising:
- a data request signal generated by the earlier stage for requested data to be supplied to the subsequent stage; and
- a data caching mechanism including the cache memory, the data caching mechanism configured to supply the requested data to the subsequent stage in response to the data request signal from the earlier stage.
- 9. The device described in claim 8 wherein the pipeline processor is configured to have the first graphics mode of operation and the second graphics mode of operation.
- 10. The device described in claim 9 wherein the data caching mechanism further comprises:
- prefetch logic coupled to the cache memory and coupled to receive the data request signal, the prefetch logic configured to ascertain whether the requested data is cached in the cache memory; and
- fetch logic coupled to the prefetch logic and the subsequent stage, the fetch logic configured to fetch the requested data if the requested data is not cached in the cache memory, the fetch logic configured to supply the requested data to the subsequent stage, the fetch logic configured to cache the requested data in the cache memory.
- 11. The device described in claim 10 wherein a least recently updated (LRU) replacement policy is employed when the requested data are cached in the cache memory.
- 12. The device described in claim 11 wherein the data request signal comprises:
- an address signal indicating a memory address of the requested data;
- a direction signal indicating a direction in which the requested data are being read from a memory;
- a byte enable signal indicating bytes required from the memory address of the requested data;
- a type signal indicating the type of the requested data; and
- a mode signal, the mode signal indicating whether the pipeline processor is operating in the first graphics mode or in the second graphics mode.
- 13. The device described in claim 12 wherein only a portion of the requested data corresponding with the direction in which the requested data are read from the memory are cached in the cache memory.
- 14. The device described in claim 12 wherein fetch logic comprises shifting and merging logic, the shifting and merging logic configured to shift and merge a first and a second data entry in response to a shift/mask signal to generate the requested data.
- 15. The device described in claim 10 wherein the data caching mechanism further comprises an intermediate queue coupled between the prefetch logic and the fetch logic.
Parent Case Info
This is a divisional of application Ser. No. 08/616,540, filed Mar. 15, 1996, now U.S. Pat. No. 5,761,720.
US Referenced Citations (9)
Foreign Referenced Citations (1)
Number |
Date |
Country |
456847 |
Jan 1992 |
EPX |
Non-Patent Literature Citations (2)
Entry |
Cragon, Memory Systems and Pipelined Processors, pp. 408-412; 1996. |
Mano, Computer System Architecture, 2nd Ed., pp. 501 and 508; 1982. |
Divisions (1)
|
Number |
Date |
Country |
Parent |
616540 |
Mar 1996 |
|