The present disclosure generally relates to the field of electronics. More particularly, an embodiment relates to an adaptive partition mechanism with arbitrary tile shape for tile based rendering GPU (Graphics Processing Unit) architecture.
As integrated circuit (IC) fabrication technology improves, manufacturers are able to integrate additional functionality onto a single silicon substrate. As the number of these functionalities increases, however, so does the number of components on a single IC chip. Additional components add additional signal switching, in turn, generating more heat. The additional heat may damage an IC chip by, for example, thermal expansion. Also, the additional heat may limit usage locations and/or applications of a computing device that includes such chips. For example, a portable computing device may solely rely on battery power. Hence, as additional functionality is integrated into portable computing devices, the need to reduce power consumption becomes increasingly important, for example, to maintain battery power for an extended period of time. Non-portable computing systems also face cooling and power generation issues as their IC components use more power and generate more heat.
One type of component that tends to use a relatively significant amount of power and have a significant effect on performance is the graphics circuitry included on some integrated circuit chips. Hence, controlling the power consumption and/or operations of the graphics circuitry may have a direct effect on overall system power consumption and/or performance.
The detailed description is provided with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different figures indicates similar or identical items.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of various embodiments. However, various embodiments may be practiced without the specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to obscure the particular embodiments. Further, various aspects of embodiments may be performed using various means, such as integrated semiconductor circuits (“hardware”), computer-readable instructions organized into one or more programs (“software”), or some combination of hardware and software. For the purposes of this disclosure reference to “logic” shall mean either hardware, software, firmware, or some combination thereof.
Some embodiments provide an adaptive partition mechanism with arbitrary tile shape for tile based rendering graphics logic. As discussed herein, a “tile” generally refers to a portion of a scene or image frame under consideration for processing by graphics logic (e.g., for graphics processing, rendering, etc.). The graphics logic may include a GPU (Graphics Processing Unit) or other types of logic that perform computation(s) relating to graphics task(s), such as operation(s) that manipulate an image, frame, scene, etc., e.g., as will be further discussed herein. While some embodiments are discussed with reference to graphics logic, embodiments are not limited to graphics related logic and may be also applied to other types of non-graphic (e.g., general purpose) logic. Moreover, various embodiments may be performed for any type of computing device such as a desktop computer, a mobile computer (such as a smartphone, tablet, UMPC (Ultra-Mobile Personal Computer), laptop computer, Ultrabook™ computing device, smart watch, smart glasses, etc.), a work station, etc., which may be embodied on a SOC (System On Chip) platform in an embodiment.
Moreover, the scenes, images, or frames discussed herein (e.g., which may be processed by the graphics logic in various embodiments) may be captured by an image capture device (such as a digital camera (that may be embedded in another device such as a smart phone, a tablet, a laptop, a stand-alone camera, etc.) or an analog device whose captured images are subsequently converted to digital form). Also, the scenes, images, or frames discussed herein may be generated by art design, game design, or any kind of 3D/2D (two dimensional/three dimensional) industry design. For example, a scene may refer to a set of geometry structure and related texture maps, lighting effects, etc. Moreover, the image capture device may be capable of capturing multiple frames in an embodiment. Further, one or more of the frames in the scene are designed/generated on a computer in some embodiments. Also, one or more of the frames of the scene may be presented via a display (such as the display discussed with reference to
Moreover, some tile-based SOC GPU architectures may utilize a parameter buffer free design, which can improve performance and reduce power consumption by avoiding read and write operations for parameter data. Correspondingly, a two-pass vertex shading mechanism may be used to obtain the parameter position for tile mapping (e.g., to find the tiles to which a primitive belongs) and property calculation. As discussed herein, a “primitive” generally refers to a (e.g., geometric) shape (such as a point, line, triangle, etc.) that the graphics logic is capable of handling (e.g., drawing, storing, etc.). Vertex rendering of primitives which span over several tiles will cost more (e.g., in terms of power consumption and/or performance hit) due to duplicate read operations and calculations of vertex data.
To this end, some embodiments provide an adaptive tile partition approach to alleviate redundant vertex data read and calculation operations in a parameters buffer free design. Accordingly, such embodiments reduce power consumption and/or increase performance, and may also decrease buffer size requirements and semiconductor bump costs.
Some embodiments may be applied in computing systems that include one or more processors (e.g., with one or more processor cores), such as those discussed with reference to
In an embodiment, the processor 102-1 may include one or more processor cores 106-1 through 106-M (referred to herein as “cores 106,” or “core 106”), a cache 108, and/or a router 110. The processor cores 106 may be implemented on a single integrated circuit (IC) chip. Moreover, the chip may include one or more shared and/or private caches (such as cache 108), buses or interconnections (such as a bus or interconnection 112), graphics and/or memory controllers (such as those discussed with reference to
In one embodiment, the router 110 may be used to communicate between various components of the processor 102-1 and/or system 100. Moreover, the processor 102-1 may include more than one router 110. Furthermore, the multitude of routers 110 may be in communication to enable data routing between various components inside or outside of the processor 102-1.
The cache 108 may store data (e.g., including instructions) that are utilized by one or more components of the processor 102-1, such as the cores 106. For example, the cache 108 may locally cache data stored in a memory 114 for faster access by the components of the processor 102 (e.g., faster access by cores 106). As shown in
As shown in
Based on the screen position information of primitives, graphics logic (e.g., logic 140) adaptively partitions tiles with arbitrary shapes (e.g., and not necessarily rectangular) to reduce the number of primitives which span over different tiles; thus, reducing the redundant computation and memory read operations. Such a tile partition mechanism adaptively sets the tile shape to match the shape of high cost primitives, and automatically avoids the tile boundary across the dense primitives areas.
As can be seen in
By contrast, some embodiments use an adaptive tile partition mechanism, which can avoid the redundant processing of high cost primitive. Moreover, this solution doesn't need extreme large tile buffer.
As a result, the parameter buffer 304 causes additional memory traffic but it is used because the primitive data may reside in more than one tile (which is referred to as an intersection of primitive and tile). The parameter buffer 304 requires a relatively large portion of memory to record the properties generated by vertex shader logic 306 and per-tile data structure. For some benchmarks, the size of the parameter buffer can be 10 MB to 100 MB. Also, each access to the parameter buffer 304 will cost extra bandwidth.
Moreover, larger tile size may not avoid the intersection effectively. For the existing large tile solution, it may produce about 10%-20% of the redundant vertex shader computation on some benchmarks. Redundant memory access by these computations may be even larger. Furthermore, a large tile size design needs to equip a relatively large size of on-chip tile buffer (e.g., one MB for some cases, which significantly increases the chip area and cost.
In some embodiments, the intersection of primitives and tiles are reduced, which in turn reduce or avoid the waste produced by the additional memory traffic and computations.
In
PIC=(αSαβL)*V
In the above formula, “S” refers to the vertex element size in bytes, “L” is the vertex shader length (corresponding to the number of instructions in the shader logic), α and β are the weight of S and L in PIC, α+3=1.0, respectively (which can be tuned), and “V” is the number of vertices of the primitive. Further, the primitives belonging to the same draw call have the same PIC value.
“PIC of atomic Tile” (PICT) may be defined as the sum of PIC values of primitives that span over a current atomic tile. A high PICT means a high rendering cost of those primitives in the corresponding atomic tile. These kinds of atomic tiles are ineligible to be used as boundary of the Super Tile. Further the PICT value of each atomic tile may be stored in a Primitive Intersection Cost Buffer (PICB), such as shown in
In an embodiment, the PICB is created by the following pseudo code:
initialize PICB to zero;
far each primitive
In an embodiment, a Super Tile generating algorithm (e.g., performed by logic 140) is used to obtain a Super Tile partition mechanism. In the boundary of Super Tile, a number of high cost primitives are grouped into a super tile without spanning over each other. The Super Tile generation is an expanding procedure based on PICB, in an embodiment. It starts with covering the highest cost atomic Tiles with a small and rectangle Super Tile. The algorithm then grows the seed the Super Tile from its (e.g., four) boundaries with a searching based third part algorithm (e.g., such as a Knapsack problem solver). The Super Tile's size may not exceed the tile buffer size available on-chip.
Referring to
Once no more draw calls remain to process per operation 602, an operation 608 determines whether more super tiles need to be generated. The shape and layout of Super Tiles will be decided by a Super Tile Generating module (e.g., of logic 140) at an operation 610. In an embodiment, the input to operation 610 is from PICB (e.g., of
Referring to
Moreover, the processors 702 may have a single or multiple core design. The processors 702 with a multiple core design may integrate different types of processor cores on the same integrated circuit (IC) die. Also, the processors 702 with a multiple core design may be implemented as symmetrical or asymmetrical multiprocessors. In an embodiment, one or more of the processors 702 may be the same or similar to the processors 102 of
A chipset 706 may also communicate with the interconnection network 704. The chipset 706 may include a graphics memory control hub (GMCH) 708, which may be located in various components of system 700 (such as those shown in
The GMCH 708 may also include a graphics interface 714 that communicates with a display device 716. In one embodiment, the graphics interface 714 may communicate with the display device 716 via an accelerated graphics port (AGP) or Peripheral Component Interconnect (PCI) (or PCI express (PCIe) interface). In an embodiment, the display 716 (such as a flat panel display) may communicate with the graphics interface 714 through, for example, a signal converter that translates a digital representation of an image stored in a storage device such as video memory or system memory into display signals that are interpreted and displayed by the display 716. The display signals produced by the display device may pass through various control devices before being interpreted by and subsequently displayed on the display 716.
A hub interface 718 may allow the GMCH 708 and an input/output control hub (ICH) 720 to communicate. The ICH 720 may provide an interface to I/O device(s) that communicate with the computing system 700. The ICH 720 may communicate with a bus 722 through a peripheral bridge (or controller) 724, such as a peripheral component interconnect (PCI) bridge, a universal serial bus (USB) controller, or other types of peripheral bridges or controllers. The bridge 724 may provide a data path between the CPU 702 and peripheral devices. Other types of topologies may be utilized. Also, multiple buses may communicate with the ICH 720, e.g., through multiple bridges or controllers. Moreover, other peripherals in communication with the ICH 720 may include, in various embodiments, integrated drive electronics (IDE) or small computer system interface (SCSI) hard drive(s), USB port(s), a keyboard, a mouse, parallel port(s), serial port(s), floppy disk drive(s), digital output support (e.g., digital video interface (DVI)), or other devices.
The bus 722 may communicate with an audio device 726, one or more disk drive(s) 728, and a network interface device 730 (which is in communication with the computer network 703). Other devices may communicate via the bus 722. Also, various components (such as the network interface device 730) may communicate with the GMCH 708 in some embodiments. In addition, the processor 702 and the GMCH 708 may be combined to form a single chip. Furthermore, a graphics accelerator may be included within the GMCH 708 in other embodiments.
Furthermore, the computing system 700 may include volatile and/or nonvolatile memory (or storage). For example, nonvolatile memory may include one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), a disk drive (e.g., 728), a floppy disk, a compact disk ROM (CD-ROM), a digital versatile disk (DVD), flash memory, a magneto-optical disk, or other types of nonvolatile machine-readable media that are capable of storing electronic data (e.g., including instructions).
As illustrated in
In an embodiment, the processors 802 and 804 may be one of the processors 702 discussed with reference to
At least one embodiment may be provided within the processors 802 and 804. For example, one or more components of system 800 may include logic 140 of
The chipset 820 may communicate with a bus 840 using a PtP interface circuit 841. The bus 840 may communicate with one or more devices, such as a bus bridge 842 and I/O devices 843. Via a bus 844, the bus bridge 842 may communicate with other devices such as a keyboard/mouse 845, communication devices 846 (such as modems, network interface devices, or other communication devices that may communicate with the computer network 703), audio I/O device 847, and/or a data storage device 848. The data storage device 848 may store code 849 that may be executed by the processors 802 and/or 804.
In some embodiments, one or more of the components discussed herein can be embodied as a System On Chip (SOC) device.
As illustrated in
The I/O interface 940 may be coupled to one or more I/O devices 970, e.g., via an interconnect and/or bus such as discussed herein with reference to other figures. I/O device(s) 970 may include one or more of a keyboard, a mouse, a touchpad, a display, an image/video capture device (such as a camera or camcorder/video recorder), a touch screen, a speaker, or the like. Furthermore, SOC package 902 may include/integrate the logic 140 in an embodiment. Alternatively, the logic 140 may be provided outside of the SOC package 902 (i.e., as a discrete logic).
The following examples pertain to further embodiments. Example 1 includes an apparatus comprising: logic, the logic at least partially comprising hardware logic, to determine a primitive intersection cost value for each atomic tile of an image at least partially based on a vertex element size, a vertex shader length, and a number of the vertices of a primitive of the image. Example 2 includes the apparatus of example 1, wherein the atomic tile is to comprise an undividable rectangle pixel block. Example 3 includes the apparatus of example 1, wherein the logic is further to generate a super tile based on the primitive intersection cost value for each atomic tile value. Example 4 includes the apparatus of example 3, wherein the logic is further to perform one or more vertex shading operations on the super tile. Example 5 includes the apparatus of example 3, wherein the logic is further to perform one or more raster operations on the super tile. Example 6 includes the apparatus of example 1, wherein the logic is further to load vertex data and perform screen position calculations, wherein the vertex data is to comprise a vertex position, vertex normal, and texture coordinators. Example 7 includes the apparatus of example 1, wherein the logic is to determine the primitive intersection cost value at least partially based on the vertex element size, the vertex shader length, the number of the vertices, a weight of the vertex element size, and a weight of the vertex shader length. Example 8 includes the apparatus of example 1, wherein a processor is to comprise the logic. Example 9 includes the apparatus of example 1, wherein a processor having one or more processor cores, the logic, or memory are on a single integrated circuit die.
Example 10 includes a method comprising: determining a primitive intersection cost value for each atomic tile of an image at least partially based on a vertex element size, a vertex shader length, and a number of the vertices of a primitive of the image. Example 11 includes the method of example 10, further comprising generating a super tile based on the primitive intersection cost value for each atomic tile value. Example 12 includes the method of example 11, further comprising performing one or more vertex shading operations on the super tile. Example 13 includes the method of example 11, further comprising performing one or more raster operations on the super tile. Example 14 includes the method of example 10, further comprising loading vertex data and performing screen position calculations, wherein the vertex data is to comprise a vertex position, vertex normal, and texture coordinators. Example 15 includes the method of example 10, further comprising determining the primitive intersection cost value at least partially based on the vertex element size, the vertex shader length, the number of the vertices, a weight of the vertex element size, and a weight of the vertex shader length.
Example 16 includes a computer-readable medium comprising one or more instructions that when executed on a processor configure the processor to perform one or more operations of any one of examples 10 to 15.
Example 17 includes a system comprising: a processor having one or more processor cores; memory to store data, corresponding to at least one frame of a scene, to be accessed by at least one of the one or more processor cores; a display device to present the at least one frame of the scene; logic to determine a primitive intersection cost value for each atomic tile of the frame at least partially based on a vertex element size, a vertex shader length, and a number of the vertices of a primitive of the frame. Example 18 includes the system of example 17, wherein the atomic tile is to comprise an undividable rectangle pixel block. Example 19 includes the system of example 17, wherein the logic is further to generate a super tile based on the primitive intersection cost value for each atomic tile value. Example 20 includes the system of example 19, wherein the logic is further to perform one or more vertex shading operations on the super tile. Example 21 includes the system of example 19, wherein the logic is further to perform one or more raster operations on the super tile. Example 22 includes the system of example 17, wherein the logic is further to load vertex data and perform screen position calculations, wherein the vertex data is to comprise a vertex position, vertex normal, and texture coordinators. Example 23 includes the system of example 17, wherein the logic is to determine the primitive intersection cost value at least partially based on the vertex element size, the vertex shader length, the number of the vertices, a weight of the vertex element size, and a weight of the vertex shader length. Example 24 includes the system of example 17, wherein the processor is to comprise the logic. Example 25 includes the system of example 17, wherein one or more of the processor cores, the logic, or the memory are on a single integrated circuit die.
Example 26 includes a computer-readable medium comprising one or more instructions that when executed on a processor configure the processor to perform one or more operations to: determine a primitive intersection cost value for each atomic tile of an image at least partially based on a vertex element size, a vertex shader length, and a number of the vertices of a primitive of the image. Example 27 includes the computer-readable medium of example 26, further comprising one or more instructions that when executed on the processor configure the processor to perform one or more operations to cause generation of a super tile based on the primitive intersection cost value for each atomic tile value. Example 28 includes the computer-readable medium of example 27, further comprising one or more instructions that when executed on the processor configure the processor to perform one or more operations to cause performance of one or more vertex shading operations on the super tile. Example 29 includes the computer-readable medium of example 27, further comprising one or more instructions that when executed on the processor configure the processor to perform one or more operations to cause performance of one or more raster operations on the super tile. Example 30 includes the computer-readable medium of example 26, further comprising one or more instructions that when executed on the processor configure the processor to perform one or more operations to cause loading of vertex data and performing screen position calculations, wherein the vertex data is to comprise a vertex position, vertex normal, and texture coordinators. Example 31 includes the computer-readable medium of example 26, further comprising one or more instructions that when executed on the processor configure the processor to perform one or more operations to cause determination of the primitive intersection cost value at least partially based on the vertex element size, the vertex shader length, the number of the vertices, a weight of the vertex element size, and a weight of the vertex shader length.
Example 32 includes an apparatus comprising means to perform a method as set forth in any preceding example.
Example 33 includes a machine-readable storage including machine-readable instructions, when executed, to implement a method or realize an apparatus as set forth in any preceding claim.
In various embodiments, the operations discussed herein, e.g., with reference to
Additionally, such computer-readable media may be downloaded as a computer program product, wherein the program may be transferred from a remote computer (e.g., a server) to a requesting computer (e.g., a client) by way of data signals provided in a carrier wave or other propagation medium via a communication link (e.g., a bus, a modem, or a network connection).
Reference in the specification to “one embodiment” or “an embodiment” means that a particular feature, structure, and/or characteristic described in connection with the embodiment may be included in at least an implementation. The appearances of the phrase “in one embodiment” in various places in the specification may or may not be all referring to the same embodiment.
Also, in the description and claims, the terms “coupled” and “connected,” along with their derivatives, may be used. In some embodiments, “connected” may be used to indicate that two or more elements are in direct physical or electrical contact with each other. “Coupled” may mean that two or more elements are in direct physical or electrical contact. However, “coupled” may also mean that two or more elements may not be in direct contact with each other, but may still cooperate or interact with each other.
Thus, although embodiments have been described in language specific to structural features and/or methodological acts, it is to be understood that claimed subject matter may not be limited to the specific features or acts described. Rather, the specific features and acts are disclosed as sample forms of implementing the claimed subject matter.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2014/081164 | 6/30/2014 | WO | 00 |