PROCESSOR-ASSISTED 2D GRAPHICS RENDERING LOGIC
Presented herein is processor assisted two dimensional shape rendering logic. In one embodiment, there is presented a system for rendering graphics. The system comprises a controller and logic. The controller decomposes graphics objects into primitives. The logic determines pixel locations for said graphics objects, using said primitives.
1 . A system for rendering graphics, said system comprising:
a controller for decomposing graphics objects into primitives; and
logic for determining pixel locations for said graphics objects, using said primitives, wherein said logic block comprises an end point generator for generating end points for said graphics objects that are associated with scan lines.
2 . The system of claim 1 , wherein the controller further comprises a processor.
3 . The system of claim 1 , wherein said graphics objects comprise trapezoids.
4 . The system of claim 1 , wherein the end point generator generates the end points using a Bresenham algorithm.
5 . The system of claim 4 , wherein the end point generator further comprises
a first Bresenham engine for generating a first end point associated with each scan line; and
a second Bresenham engine for generating a second end point associated with each scan line.
6 . The system of claim 1 , wherein the logic block further comprises:
a tile fetcher for fetching a tile pattern; and
a pixel generator for generating pixels based at least one said tile pattern.
7 . The system of claim 6 , wherein the logic block further comprises:
a destination fetcher for fetching background pixels; and
wherein the pixel generator generates that pixels based at least on said tile pattern and said background pixels.
8 . The system of claim 7 , wherein the logic block further comprises:
a pipeline command bus for providing commands to the destination fetcher, the tile fetcher, and the pixel generator.
9 . The system of claim 8 , wherein the logic block further comprises a host interface for receiving primitives from the controller.
10 . A circuit for rendering graphics, said circuit comprising:
a controller configured to decompose graphics objects into primitives; and
logic operatively coupled to said controller to determine pixel locations for said graphics objects, using said primitives, wherein said logic block comprises an end point generator configured to generate end points for said graphics objects that are associated with scan lines.
11 . The circuit of claim 10 , wherein the controller further comprises a processor.
12 . The circuit of claim 10 , wherein said graphics objects comprise trapezoids.
13 . The circuit of claim 10 , wherein the end point generator generates the end points using a Bresenham algorithm.
14 . The circuit of claim 13 , wherein the end point generator further comprises
a first Bresenham engine configured to generate a first end point associated with each scan line; and
a second Bresenham engine connected to the first Bresenham engine and configured to generate a second end point associated with each scan line.
15 . The circuit of claim 10 , wherein the logic block further comprises:
a tile fetcher configured to fetch a tile pattern; and
a pixel generator operatively coupled to the file fetcher to generate pixels based at least one said tile pattern.
16 . The circuit of claim 15 , wherein the logic block further comprises:
a destination fetcher configured to fetch background pixels; and
wherein the pixel generator is operatively coupled to the destination fetcher to generate pixels based at least on said tile pattern and said background pixels.
17 . The circuit of claim 16 , wherein the logic block further comprises:
a pipeline command bus operatively coupled to the to the destination fetcher, the tile fetcher, and the pixel generator to provide commands to the destination fetcher, the tile fetcher, and the pixel generator.