This application claims benefit of Chinese (PRC) patent application number 200810126867.6, filed Jul. 10, 2008, which is herein incorporated by reference.
The present invention relates to graphic processing; more specifically, the invention relates to raster graphics.
With the present technology development progressing, a raster normally comprises a plurality of units in order to meet the performance required. Each one of the units in the raster occupies a certain area on the chip. As the chip size decreasing, reducing size of the area that the raster occupies on the chip becomes desirable.
Currently, the reduction of the raster size is achieved by replacing the conventional four-units raster (four 8×8) with one-unit raster (one 8×8). Further, the throughput of the raster is decreased from 256 pixels per clock (ppc) to 64 ppc. Please refer to
Accompanied with the consequence in raster size reduction, i.e. throughput change, some functions of the raster are lost. For example, a fast-clear function is lost because it is only activated in the 16×4 processing. Other performances, such as transformations, are also affected as the processing size is changed.
Therefore, it is required to have a raster that is small and also achieves the desired processing performance requirement.
To solve the above problems, an embodiment of the present invention provides a raster module. The rater module comprises a coarse raster for rasterizing input data; and a fine raster receiving data from the coarse raster, wherein the fine raster comprises a buffer for buffering data from the coarse raster.
Another embodiment of the present invention provides a graphic processing unit, comprising a raster module comprising a coarse raster for rasterizing input data; and a fine raster receiving data from the coarse raster unit, comprising a buffer for buffering data from the coarse raster.
Yet another embodiment of the present invention provides a method of rasterization, comprising coarse rastering an input data to form a rasterised data; adding a flag into the rasterised data; and transferring the rasterised data with the flag to a fine raster; determining whether to buffer the rasterised data according to the flag.
The process flow diagram of raster is illustrated in FIG. 3., which illustrates the flow chart 300 of a raster process according to an embodiment of the present invention. In step 310, input data is received by a coarse raster. The input data is coarse rasterised by the coarse raster as shown in step 320, and then in step 330 a flag is added into the rasterised data. Subsequently, the rasterised data is transferred from the coarse raster to a fine raster. After receiving the rasterised data, the fine raster determines whether to buffer the rasterised data or not according to the flag. In the above process, the flag is set as “TRUE” by the coarse raster when an n×n (e.g., 8×8) pixel block is received. As a result, the fine raster reads the flag, which is “TRUE”, and the n×n pixel block is stored in a buffer. When the next n×n pixel block is received from the coarse raster, the two n×n pixel blocks merge together in the buffer to form a 2n×n (e.g., 16×8) pixel block. The fine raster then rasterises the 2n×n pixel block, thus the rasterisation of the fine raster can be performed n×½n at a time. Therefore, the embodiment of the present invention provides a raster module with reduced size without compensating performance or losing functions.
Although the embodiments disclosed above are discussed in the scope of providing solutions in response to a need for raster data, one of ordinary skill in the art can easily adopt the same raster module or method for the providing of other type of purposes. Variations, modifications, and other implementations of what is described herein will occur to those of ordinary skill in the art without departing from the spirit and scope of the present invention as claimed. Accordingly, the present invention is to be defined not by the preceding illustrative description but instead by the spirit and scope of the following claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 200810126867.6 | Jul 2008 | CN | national |