Method for allocating tasks, graphics processing unit, system, medium and manufacturing system

By using topological information to group and split geometry processing tasks in multi-core graphics processing units, the problem of graphics rendering efficiency and correctness in multi-core processing is solved and an efficient rendering process is achieved.

CN116894754BActive Publication Date: 2024-09-13IMAGINATION TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310254851.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-03-30
Filing Date
2023-03-15
Publication Date
2024-09-13
Estimated Expiration
2043-03-15

AI Technical Summary

Technical Problem

In multi-core graphics processing units, how to effectively split and distribute geometry processing tasks to ensure parallel processing of the rendering process, avoid rendering errors and improve efficiency, especially when processing triangle primitives that share vertices.

Method used

Receive element buffer instructions and topology information in geometry processing tasks through the main unit, group elements into primitives, and split the task into multiple triggers, assigning them to multiple cores for processing, utilizing topology information to ensure that each core Process complete primitives, reducing memory bandwidth requirements and rendering errors.

Benefits of technology

It achieves efficient splitting and distribution of geometry processing tasks in multi-core graphics processing units, ensuring the correctness and efficiency of the rendering process, reducing rendering time, and avoiding the generation of incomplete triangles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116894754B
    Figure CN116894754B
Patent Text Reader

Abstract

The present application relates to a method for allocating tasks, a graphics processing unit, a system, a medium and a manufacturing system. The present invention provides a multi-core graphics processing unit (GPU) and a method for operating a GPU. The GPU includes at least a first core and a second core. At least one core in the multi-core GPU includes a master unit, and the master unit is configured to allocate geometry processing tasks between at least the first core and the second core.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multi-core graphics processing unit and a method for distributing geometry processing tasks among cores of the multi-core graphics processing unit. Background Art

[0002] In computer graphics, "rendering" is the process of converting a 3D model describing a virtual scene into one or more 2D images representing views of the scene from a particular viewpoint (or viewpoints). Because this is a computationally intensive process, for typical virtual scenes, a hardware accelerator is usually provided that specializes in performing the necessary calculations. Such a hardware accelerator is known in the art as a graphics processing unit (GPU).

[0003] Different GPUs may have different hardware architectures, reflecting different strategies for performing the calculations necessary for 3D rendering. One exemplary GPU uses a "tile-based deferred rendering" pipeline.

[0004] This method divides the rendering process into two different stages. One of the two stages - the geometry processing stage (or simply the geometry stage) - involves processing the geometric data that describes the 3D model of the scene. The geometric data is converted from 3D space to 2D coordinates of the image based on the specific viewpoint to be rendered. The output of this stage is the converted geometry, which is stored in a "parameter buffer".

[0005] The basic operation of the geometry phase is to figure out what primitive shapes are inside each tile. The most common primitive is a triangle. These triangles are connected together to form objects. Triangles are described by their vertices (corner points). Each vertex includes position information (the location of the vertex) and can include additional information such as color. The vertex information is stored in a vertex buffer. The position of each vertex in the buffer is its index number. In other words, the index is a pointer to the corresponding vertex. A list of indices can be stored in an index buffer. Two associated vertices (or indices) form a line primitive. Associated three vertices (or indices) form a triangle primitive. Depending on the situation, it may be more efficient to read and parse the index instead of the vertex when creating the primitive because the index is smaller (in memory).

[0006] The geometry phase of a rendering operation begins when the GPU receives a draw call from the application driver. A draw call contains instructions for the geometry processing task (specifically, which triangles to draw) and all the information needed to perform the geometry processing. In some cases, the draw call includes the base address of an index buffer. The indices contained in the index buffer point to vertices in the vertex buffer. In other cases, there is no index buffer and the draw call includes the base address of the vertex buffer. The draw call also defines additional information needed to interpret the indices or vertices, such as topology information. The topology defines how the indices or vertices are interpreted—for example, whether they define individual triangles, three vertices at a time, or a triangle "strip" where each index adds a new triangle to the end of the strip.

[0007] In order to reduce rendering time, it is desirable to use a multi-core GPU to process rendering tasks including geometry processing tasks in parallel. Summary of the invention

[0008] In order to process draw calls in parallel, the rendering tasks contained in the draw calls must be split into smaller task groups that can be processed on each core of the multi-core system. In one exemplary solution according to the comparative example, the splitting of the draw calls can be performed by a central hub that is connected to each core in the multi-core system via a dedicated communication link.

[0009] The rendering tasks contained in a draw call cannot be split up in an arbitrary way. In order to correctly construct all triangles and avoid rendering errors, each triangle must have three vertices. Partial triangles with one or two vertices will not be rendered, and the final image will contain errors. As mentioned above, it is more efficient to work by index rather than by vertex when creating primitives. In the simple four-core example, a draw call may specify that eight triangles are to be drawn. If each triangle is specified by three unique vertices / indices, then splitting the draw call can be as simple as providing six indices to each core so that it can draw two triangles. However, this is often not the case. In general, eight triangles can be specified by fewer than twenty-four unique indices because some triangles will be connected (sharing one or more vertices, as in the case of the triangle strips mentioned above). Therefore, more information is needed to determine how many indices should be provided to each core.

[0010] In order to properly split the draw calls, the topology information contained within the draw calls can be used to group the indices together into triangle primitives. Using the topology information, the central hub can split the rendering tasks so that it keeps each primitive intact, preventing any incomplete triangles and taking into account any shared indices.

[0011] In the exemplary comparative example discussed above, the central hub is intended to work with otherwise independent GPU cores, which are designed to be able to operate independently (separate from each other, and with or without the central hub). Therefore, the cores that communicate with the central hub are configured to receive draw calls directly from the application driver, which means that they can only receive information in index format and not primitive format. However, as explained above, in order to correctly split the tasks contained in the draw call, the central hub must convert from index format to primitive format. Therefore, the central hub needs to convert from index to primitive format, split the draw call, and then convert back to index format before sending the task to the core.

[0012] The present invention provides a multi-core graphics processing unit (GPU) and a method for operating the GPU. The GPU includes at least a first core and a second core. At least one core in the multi-core GPU includes a master unit, and the master unit is configured to distribute geometry processing tasks between at least the first core and the second core.

[0013] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0014] According to one aspect, a method of distributing a set of geometry processing tasks in a graphics processing unit including a plurality of cores is provided, the method comprising:

[0015] The set of geometry processing tasks is received by a master unit in one of the plurality of cores, wherein the set of geometry processing tasks comprises:

[0016] an indication of a set of elements in the element buffer; and

[0017] Topology information, wherein the topology information defines the semantics of the element buffer;

[0018] The master unit groups the elements into primitives based on the topological information;

[0019] Splitting, by the master unit, the set of geometry processing tasks into at least a first trigger and a second trigger, wherein the first trigger includes an indication of a first starting primitive in the element buffer and an instruction to render a first number of primitives starting from the first starting primitive, and the second trigger includes an indication of a second starting primitive in the element buffer and an instruction to render a second number of primitives starting from the second starting primitive;

[0020] allocating, by the master unit, the first trigger to a first core among the plurality of cores;

[0021] allocating, by the master unit, the second trigger to a second core among the plurality of cores;

[0022] sending, by the main unit, the first trigger to the first core; and

[0023] The second trigger is sent by the main unit to the second core.

[0024] Primitives, also called geometric primitives, are shapes that are combined to form objects within a scene. The most basic primitive shapes include triangles (defined by three vertices) and lines (defined by two vertices). Depending on the object being rendered, a group of primitives may be discontinuous in space, sharing no vertices, or may share one or more vertices with other primitives, such as in a triangle strip or triangle fan.

[0025] Vertices that define a set of primitives are stored in a vertex buffer. Each vertex includes position information, indicating where it is in the scene, and often contains additional information about its appearance (e.g., color and opacity). In some examples, an index buffer is associated with the vertex buffer. The index buffer contains a list of indices, each index pointing to the position of a vertex in the vertex buffer.

[0026] Grouping vertices into primitives can be done by reading and parsing the vertices themselves, or by reading and parsing indices that refer to these vertices. In other words, either the vertices or the indices can be grouped. In the case where each vertex includes a large amount of information, directly reading and parsing the vertices may be inefficient. In these cases, it may be preferable to read and parse the indices representing the vertices instead. This can reduce memory bandwidth requirements because each index only points to a vertex and does not include additional information such as the appearance of the vertex. However, when each vertex does not contain a large amount of information, it may be more efficient to perform geometry processing tasks without using indices (e.g., because the indirection associated with the index buffer has some overhead in terms of memory access latency and / or memory usage).

[0027] As used herein, the terms "element" and "element buffer" are used to encompass vertices and vertex buffers and indices and index buffers, respectively.

[0028] It is not possible to tell from the element list alone which elements combine to form a primitive. By extension, it is also unclear whether any primitives share elements. For example, the four elements ABCD that form part of the element buffer can represent three triangles arranged in a triangle fan (triangles ABC, ACD, and ADB), or two triangles in a triangle strip (triangles ABC and BCD). However, in order to correctly split the geometry processing tasks, the main unit needs to be able to correctly identify the primitives defined in the element buffer so that it can identify the starting primitive and determine the number of primitives to be rendered. Similarly, the core that processes the trigger needs to be able to find its starting primitive in the element buffer and correctly find the next primitive to process.

[0029] To achieve this, topology information is sent to the master together with the geometry processing tasks. The topology information defines the semantics of the element buffer, which means it tells the master how to read the element buffer. For example, the topology information can define the element buffer as:

[0030] A triangle list where each primitive is described by three elements;

[0031] A triangle strip where each primitive except the starting primitive is constructed from two elements from the previous primitive plus one new element;

[0032] A triangular fan where each primitive consists of a shared central element, another element from the previous primitive, and a new leading edge element.

[0033] In a complete triangle fan, the leading edge element of the last primitive may be one of the (non-central) elements of the starting primitive of the triangle fan. In other words, the topology information defines the configuration of the primitives in the element buffer.

[0034] Using the topological information, the master unit can group the elements in the element buffer into primitives. Grouping these elements can mean associating the elements with each other. In the case of grouping the elements, the master unit splits the geometry processing task into a first trigger and a second trigger. The splitting can involve identifying the starting primitive for each trigger and the number of primitives to be rendered starting from the starting primitive.

[0035] Topology information may also be sent by the master unit to the core, or otherwise made available to the core. For example, the topology information may be represented by an identification number that may be sent by the master unit to the core. The core may use the topology information to associate elements in the element buffer to primitives so that each core processes the correct primitive. For example, consider a core that is provided with a first trigger indicating that the core is to process three primitives in an element buffer comprising elements ABCDEFGHI, and that the core will start processing from the first primitive in the buffer. The core may use the topology information to determine whether the element buffer is a triangle list type (in which case it should render triangles ABC, DEF, and GHI) or a triangle strip (in which case it should render triangles ABC, BCD, and CDE).

[0036] The sum of the first number and the second number of primitives may be less than the total number of primitives in the set of geometry processing tasks. In other words, the master unit may split additional triggers from the set of geometry processing tasks. More generally, the number of primitives allocated to all cores in the plurality of cores at any given time may be less than the total number of primitives.

[0037] Each trigger may be a reference to a set of consecutive primitives within the element buffer. The split may create the first trigger and the second trigger simultaneously. Alternatively, the set of tasks may be split in a serial manner, thereby creating the first trigger and the second trigger at different times.

[0038] The first core may process the first trigger, and the second core may process the second trigger. The processing of the triggers may include converting 3D coordinates of primitives in the scene to 2D coordinates of an image of the scene, and projecting the primitives onto the 2D image (e.g., by changing the size of the primitives to account for depth).

[0039] In some examples, the set of geometry processing tasks may also include an indication of the number of elements in the element buffer. In some other examples, the master unit may determine the number of elements in the element buffer. To achieve this, the element buffer may include a termination marker indicating the last element in the buffer.

[0040] The first core may include a slave unit, a first processing unit, and a second processing unit, and the method may also include: receiving a first trigger by the slave unit of the first core; splitting the first trigger into at least a third trigger and a fourth trigger by the slave unit of the first core; sending the third trigger by the slave unit of the first core to the first processing unit; sending the fourth trigger by the slave unit of the first core to the second processing unit; processing the third trigger by the first processing unit; and processing the fourth trigger by the second processing unit. The third trigger may include an indication of a third starting primitive in the element buffer and an instruction to render a third number of primitives starting from the third starting primitive. Similarly, the fourth trigger may include an indication of a fourth starting primitive in the element buffer and an instruction to render a fourth number of primitives starting from the fourth starting primitive.

[0041] The slave unit of the first core may receive the first trigger directly from the core including the master unit. Alternatively, another hardware unit in the first core may receive the first trigger and forward it to the slave unit of the first core.

[0042] The slave units of the first core may perform a second level of splitting which enables them to distribute the geometry tasks among the processing units of the core. The splitting performed by the slave units may be performed in the same way as the splitting performed by the master unit.

[0043] The splitting performed by the slave unit may enable the processing units of the first core to process tasks in parallel in the same manner that the splitting performed by the master unit enables the cores to process tasks in parallel. This may help to reduce the overall processing time for a set of tasks. Additionally, the splitting performed by the slave unit may be useful when the first number and the second number of primitives to be processed are greater than the buffer capacity of the processing unit. In such cases, the flip-flops may be split into smaller subsets of primitives that are more suitable for the buffer capacity of the processing unit.

[0044] The sum of the third number and the fourth number is less than or equal to the first number. In other words, the first trigger can be split into two or more triggers. The third starting primitive can be the same as the first starting primitive.

[0045] The second core may further include a slave unit and one or more processing units. The second core may include two processing units, and the slave unit of the second core may split the second flip-flop in the same manner as described for the first core.

[0046] In some examples, the first core and the second core may not include a processing unit. Instead, the slave unit may include processing hardware for processing draw triggers.

[0047] If the first number of primitives is greater than a threshold, a slave unit of the first core may split the first flip-flop.

[0048] The threshold may be a buffer size of one of the processing units.The slave unit of the first core may determine whether the number of primitives in the first flip-flop is greater than the threshold.

[0049] In a similar manner, the master unit may split the set of geometry processing tasks only when the number of primitives in the element buffer is greater than a master split threshold.

[0050] The splitting by the slave unit of the first core may include: generating, by the slave unit, a first local interleaving flag associated with the third flip-flop; generating, by the slave unit, a second local interleaving flag associated with the fourth flip-flop; sending, by the slave unit, the first local interleaving flag to the first processing unit; and sending, by the slave unit, the second local interleaving flag to the second processing unit. The first local interleaving flag and the second local interleaving flag may define an order of the third flip-flop and the fourth flip-flop within a set of geometry processing tasks.

[0051] In image rendering systems, applications typically provide a list of tasks to the GPU in a specific order. In order to render the image correctly, these tasks should be processed by the GPU in that order. However, in multi-core systems, this order may be violated if, for example, one core or processing unit processes its tasks faster than another core or processing unit.

[0052] To ensure the integrity of the final image, the outputs of the geometry processing tasks should be combined so that they retain the order in which the tasks were originally submitted. To achieve this, an interleaving flag can be associated with a trigger. The interleaving flag can indicate how the outputs of the trigger should be combined to restore the original order of the tasks.

[0053] Within a flip-flop, tasks retain their original order. However, when a flip-flop is split, this order may be violated, as described above. A slave unit can generate a local interleaving flag when splitting a flip-flop so that the outputs of the split flip-flops can be reassembled so that they retain the original order of the tasks.

[0054] The element buffer may be associated with an instance number that defines the number of times a primitive in the element buffer is to be rendered. When the first core has completed processing the last primitive in the element buffer, the core may continue processing the first trigger from the first primitive in the element buffer if the instance just processed is less than the instance number.

[0055] In graphics processing, it is common for certain objects (and, by extension, their constituent primitives) to appear more than once in a scene. The number of times an object appears in a scene is its number of instances. Rather than sending multiple draw triggers to various cores to create multiple instances of one or more primitives, or to copy one or more primitives in an element buffer, it is faster and requires less memory to send a single trigger representing a single instance accompanied by an instance number. The number of instances indicates the number of times a trigger (and, by extension, one or more primitives in a trigger) needs to be processed. Based on the number of instances, a first core can process the trigger multiple times to create multiple instances of a primitive without requiring the main unit to send a large amount of data to the first core.

[0056] In some examples, the element buffer may include the instance number. In other examples, the instance number may be distinct from the element buffer, but associated with it. In some examples, a set of geometry processing tasks sent to the master unit will include an indication of the instance number.

[0057] The method may also include: determining, by a main unit, the number of primitives for each instance in an element buffer based on topology information, wherein the number of primitives for each instance is the number of complete primitives in the element buffer; sending, by the main unit, the number of primitives for each instance in the element buffer to at least a first core; detecting, by the first core, when the first core has processed the last primitive in the element buffer based on a first starting primitive and the number of primitives for each instance; and continuing, by the first core, to process the first trigger starting from the first primitive in the element buffer.

[0058] In this way, the first core can avoid processing dangling elements. Dangling elements are elements in the element buffer that do not form a complete primitive. For example, in a triangle list element buffer containing two primitives, there can be eight elements. In the triangle list format, two triangles are represented by six elements. Therefore, the last two elements in the buffer do not form a complete triangle primitive and are dangling elements. By determining when the core has processed the last complete primitive in the element buffer, the core can simply ignore these elements.

[0059] The core can determine when it has processed the last complete primitive in the element buffer by subtracting the number of starting primitives from the number of primitives for each instance. When this number of primitives has been processed, the core has reached the last complete primitive in the element buffer and can continue processing from the first primitive in the element buffer. When starting / continuing processing from the first primitive in the element buffer, the core can again detect when it has processed the last complete primitive in the buffer, and if there are still primitives to be processed, it can again continue processing from the first primitive in the buffer.

[0060] The element buffer may be associated with an instance number, the instance number defining the number of times a primitive in the element buffer is to be rendered. The instance number may be at least two. The first trigger may include a first primitive of a first instance of the element buffer. The second trigger may include a second primitive of the first instance of the element buffer, and may also include a primitive of a second instance of the element buffer.

[0061] The first trigger and the second trigger may indicate processing of different primitives. When the first trigger and the second trigger are associated with the same instance of an element buffer, they may indicate processing of different primitives in the instance of the element buffer. In other words, the master unit may split the processing of multiple instances of the element buffer into different triggers. For example, when the element buffer contains four primitives (primitives 1 to 4 in the buffer) constituting an object with three instances, the master unit may split from the group of tasks: a first trigger including instructions starting at primitive 1 and processing three primitives; and a second trigger including instructions starting at primitive 4 and processing nine primitives. The first trigger indicates processing of a portion of a first instance of the object, and the second trigger indicates processing of the remainder of the first instance of the object and the second and third instances of the object.

[0062] The set of geometry processing tasks may also include state information. Splitting the set of geometry processing tasks by the master unit may include splitting the set of geometry processing tasks into a first trigger, a second trigger, and the state information. The method may also include: sending the state information by the master unit to the first core; and sending the state information by the master unit to the second core.

[0063] The master unit may send the state information to all cores in the graphics processing unit, or at least to all cores configured to perform geometry processing tasks. In some examples, the master unit may send the state information only to cores that have been assigned triggers.

[0064] The state information is constant for all tasks in the set of geometry processing tasks. In some examples, for a core to process any task in the set of geometry processing tasks, the core requires the state information. An example of state information is topology information, which applies to the entire element buffer and is therefore relevant to all geometry processing tasks.

[0065] The state information may be sent separately from the first trigger and the second trigger. Furthermore, the state information may be sent only once to the first core and the second core (and optionally to each core) for a set of geometry processing tasks, regardless of the number of draw triggers split from the set of geometry processing tasks and sent to each core. In other words, although the master unit may send multiple draw triggers to a core, it will only send the state information to the core once.

[0066] Splitting the set of geometry processing tasks may include: generating, by the master unit, a first global interleaving flag associated with the first flip-flop; generating, by the master unit, a second global interleaving flag associated with the second flip-flop; sending, by the master unit, the first global interleaving flag to the first core; and sending, by the master unit, the second global interleaving flag to the second core. The global interleaving flag may define an order of the first flip-flop and the second flip-flop within the set of geometry processing tasks.

[0067] As explained above, the order in which geometry processing tasks are processed should be the same order in which the application submitted them. However, this cannot be guaranteed when tasks are processed in parallel. Instead, the outputs of the tasks can be combined to restore the original order of the tasks.

[0068] When splitting the set of geometry processing tasks into triggers, the master unit can generate a global tag that indicates the order in which the triggers should be reorganized to restore the order in which the set of tasks was originally submitted. For example, the master unit can send a global tag of 1 to the first core in addition to the first trigger. The master unit can also send a global tag of 2 to the second core in addition to the second trigger. When the first trigger and the second trigger have been processed, their outputs can be reorganized based on their global tags. In this example, the output of the first trigger will be before the output of the second trigger because the first trigger has a smaller global tag number.

[0069] In some examples, a global tag can be associated with multiple triggers. For example, the master unit can split a set of geometry processing tasks into ten triggers. Triggers 1 to 5 can be associated with global tag 1 and sent to the first core, while triggers 6 to 10 can be associated with global tag 2 and sent to the second core.

[0070] A global interleaving flag can also be associated with multiple local interleaving flags. The local flags act the same way for the global flags as they do for the set of geometry processing tasks, in that the local flags indicate how the outputs of a set of flops split from a parent flops should be combined in order to preserve the original order of the tasks in the parent flops.

[0071] The first core and the second core may be connected via a register bus configured to carry a register write command. Sending the first trigger may include outputting a first register write command by the master unit, the first register write command being addressed to the first core and including an indication of the first trigger. Sending the second trigger may include outputting a second register write command by the master unit, the second register write command being addressed to the second core and including an indication of the second trigger.

[0072] The first register write command and the second register write command may include a first trigger and a second trigger, respectively. The master unit may output the register write command directly to the register bus, or to another hardware unit connected to the register bus in the core where the master unit is located.

[0073] The first core may include a master unit. In other words, the first core may be a core including a master unit, and may allocate the first trigger to itself and send the first trigger to its own slave unit.

[0074] The plurality of cores may include a third core. The third core may include a slave unit and a master unit. Splitting the set of geometry processing tasks by the master unit may include splitting the set of geometry processing tasks into a first trigger, a second trigger, and a fifth trigger. The master unit may assign the fifth trigger to the third core and send the fifth trigger to the slave unit of the third core. The third core may include one or more processing units that may process the fifth trigger.

[0075] The element buffer may be an index buffer, and each element of the element buffer may be an index in the index buffer. Each index in the index buffer may indicate a position of a vertex in the vertex buffer.

[0076] The element buffer may be a vertex buffer, and each element of the element buffer may be a vertex in the vertex buffer.

[0077] There is also provided a graphics processing unit comprising a plurality of cores, wherein one of the plurality of cores comprises a main unit, the main unit being configured to:

[0078] A set of geometry processing tasks is received, the set of geometry processing tasks comprising:

[0079] an indication of a set of elements in the element buffer; and

[0080] Topology information, wherein the topology information defines the semantics of the element buffer;

[0081] Based on the topological information, grouping the elements in the element buffer into primitives;

[0082] splitting the set of geometry processing tasks into at least a first trigger and a second trigger, wherein the first trigger includes an indication of a first starting primitive in the element buffer and instructions to render a first number of primitives starting from the first starting primitive, and the second trigger includes an indication of a second starting primitive in the element buffer and instructions to render a second number of primitives starting from the second starting primitive;

[0083] assigning the first trigger to a first core among the plurality of cores;

[0084] assigning the second trigger to a second core among the plurality of cores;

[0085] sending the first trigger to the first core; and

[0086] The second trigger is sent to the second core.

[0087] One of the first core and the second core may be a core including a main unit. Both the first core and the second core may each include a main unit, however, only one of the main units may be active.

[0088] The first core may include a slave unit, a first processing unit, and a second processing unit. The slave unit of the first core may be configured to: receive the first trigger; split the first trigger into at least a third trigger and a fourth trigger, wherein the third trigger includes an indication of a third starting primitive in the element buffer and an instruction to render a third number of primitives starting from the third starting primitive, and the fourth trigger includes an indication of a fourth starting primitive in the element buffer and an instruction to render a fourth number of primitives starting from the fourth starting primitive; send the third trigger to the first processing unit; and send the fourth trigger to the second processing unit. The first processing unit may be configured to process the third trigger; and the second processing unit may be configured to process the fourth trigger.

[0089] The slave unit of the first core may receive the first trigger directly from the core where the master unit is located, or another hardware unit in the first core may receive the first trigger and forward it to the slave unit.

[0090] If the first number of primitives is greater than a threshold, the slave unit of the first core may be configured to split the first flip-flop. The threshold may be a buffer size of one of the first processing unit and the second processing unit. The slave unit may be configured to determine whether the number of primitives in the first flip-flop is greater than the threshold.

[0091] The slave unit may be configured to: generate a first local interleaving flag associated with the third flip-flop; generate a second local interleaving flag associated with the fourth flip-flop; send the first local interleaving flag to the first processing unit; and send the second local interleaving flag to the second processing unit. The local interleaving flag may define an order of the third flip-flop and the fourth flip-flop within the set of geometry processing tasks. The first local flag may be sent with the third flip-flop, and the second local flag may be sent with the fourth flip-flop.

[0092] The element buffer may be associated with an instance number that defines the number of times a primitive in the element buffer is to be rendered. The first core may be configured to continue processing the first trigger from a first primitive in the element buffer after processing a last primitive in the element buffer. The last primitive in the element buffer is a last complete primitive in the buffer.

[0093] The master unit may be configured to: determine the number of primitives per instance in the element buffer based on the topology information, wherein the number of primitives per instance is the number of complete primitives contained in one instance of the element buffer; and send the number of primitives per instance to at least the first core. The first core may be configured to detect when the last primitive in the element buffer has been processed based on the first starting primitive and the number of primitives per instance; and continue processing the first trigger starting from the first primitive in the element buffer.

[0094] The first core may include a processing unit configured to process a trigger, detect when a last primitive in the element buffer has been processed, and continue processing the first trigger starting from a first primitive in the element buffer.

[0095] The set of geometry processing tasks may further include state information, and splitting the tasks may include splitting the tasks into a first trigger, a second trigger, and the state information. The master unit may be configured to send the state information to the first core and the second core.

[0096] The master unit may be configured to: generate a first global interleaving flag associated with the first flip-flop; generate a second global interleaving flag associated with the second flip-flop; send the first global interleaving flag to the first core; and send the second global interleaving flag to the second core. The global interleaving flag may define an order of the first flip-flop and the second flip-flop within the set of geometry processing tasks.

[0097] The first core and the second core (and more generally, all cores in the GPU) may be connected via a register bus configured to carry register write commands. The master unit may be configured to output a first register write command and a second register write command, the first register write command being addressed to the first core and including an indication of the first trigger, the second register write command being addressed to the second core and including an indication of the second trigger. The first register write command and the second register write command may include a first trigger and a second trigger, respectively. The master unit may output the register write command directly to the register bus, or to another hardware unit in the core where the master unit is located that is connected to the register bus.

[0098] The GPU may include a third core including a slave unit. The master unit may be configured to split the set of geometry processing tasks into the first trigger, the second trigger, and a fifth trigger. The master unit may allocate and send the fifth trigger to the third core.

[0099] There is also provided a graphics processing system comprising a GPU as outlined above; and a graphics processing system configured to perform the method as outlined above. The graphics processing system may be embodied in hardware on an integrated circuit.

[0100] A method of manufacturing a graphics processing system or GPU as outlined above using an integrated circuit manufacturing system is also provided. The method may include: processing a computer-readable description of a graphics processing system or GPU using a layout processing system to generate a circuit layout description of an integrated circuit containing the graphics processing system; and manufacturing the graphics processing system or GPU according to the circuit layout description using an integrated circuit production system.

[0101] Also provided is a computer readable code configured to cause the method as outlined above to be performed when the code is run; and a computer readable storage medium on which the computer readable code is encoded. The computer readable storage medium may be a non-transitory computer readable storage medium.

[0102] There is also provided an integrated circuit definition data set which, when processed in an integrated circuit manufacturing system, configures the integrated circuit manufacturing system to manufacture a graphics processing system or GPU as outlined above.

[0103] Also provided is a computer-readable storage medium (optionally non-transitory) having stored thereon a computer-readable description of a graphics processing system or GPU as outlined above, which, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit including the graphics processing system or GPU.

[0104] Also provided is a computer-readable storage medium (optionally non-transitory) having stored thereon a computer-readable description of a graphics processing system or GPU as outlined above, which, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to: use a layout processing system to process the computer-readable description of the graphics processing system or GPU to generate a circuit layout description of an integrated circuit including the graphics processing system or GPU; and use the integrated circuit generation system to manufacture the graphics processing system or GPU based on the circuit layout description.

[0105] There is also provided an integrated circuit manufacturing system configured to manufacture a graphics processing system or GPU as outlined above. The integrated circuit manufacturing system may include: a computer-readable storage medium (optionally non-transitory) having stored thereon a computer-readable description of a graphics processing system or GPU as outlined above; a layout processing system configured to process the computer-readable description to generate a circuit layout description of an integrated circuit containing the graphics processing system or GPU; and an integrated circuit generation system configured to manufacture the graphics processing system or GPU according to the circuit layout description.

[0106] The layout processing system may be configured to determine location information of logic components of a circuit derived from an integrated circuit description in order to generate a circuit layout description of an integrated circuit including a graphics processing system or GPU.

[0107] A computer program code for performing any of the methods described herein may be provided. A non-transitory computer readable storage medium may be provided on which computer readable instructions are stored, which when executed at a computer system cause the computer system to perform any of the methods described herein.

[0108] As will be apparent to those skilled in the art, the above-described features may be combined as appropriate and may be combined with any of the aspects of the examples described herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] Examples will now be described in detail with reference to the accompanying drawings, in which:

[0110] Figure 1 is a block diagram of a GPU according to an example;

[0111] Figure 2A is a diagram of the index buffer;

[0112] Figure 2B It is a diagram of a triangular sector;

[0113] Figure 2C is a diagram of a triangle bar;

[0114] Figure 3 is a diagram of an index buffer including dangling indices;

[0115] Figure 4 is an illustration of processing the index buffer according to the example;

[0116] Figure 5 is a flowchart illustrating a method according to an example;

[0117] Figure 6 yes Figure 5 A continuation of the flowchart of ;

[0118] Figure 7 yes Figure 5 A continuation of the flowchart of ;

[0119] Figure 8 yes Figure 5 A continuation of the flowchart of ;

[0120] Fig. 9 A computer system is shown in which a graphics processing system is implemented; and

[0121] Fig.10 An integrated circuit manufacturing system for producing an integrated circuit including a GPU or graphics processing system is shown.

[0122] The accompanying drawings show various examples. It will be appreciated by the skilled person that the element boundaries (e.g., boxes, groups of boxes, or other shapes) shown in the accompanying drawings represent an example of boundaries. In some examples, it may be the case that an element can be designed as multiple elements, or multiple elements can be designed as one element. Where appropriate, common reference numerals are used throughout the accompanying drawings to indicate similar features. DETAILED DESCRIPTION

[0123] The following description is presented by way of example to enable those skilled in the art to make and use the invention.The present invention is not limited to the embodiments described herein, and various modifications to the disclosed embodiments will be apparent to those skilled in the art.

[0124] Embodiments will now be described by way of example only.

[0125] A set of geometry tasks may consist of a single draw call, or may include more than one draw call.

[0126] As will be explained, a set of geometry processing tasks reference an element buffer containing a set of elements. In some examples, the element buffer is an index buffer, and the elements are indices. Each index references a vertex in a vertex buffer. In other examples, the element buffer itself is a vertex buffer, and the elements are vertices. It should be understood that the present disclosure can be generalized to apply to any kind of element buffer, even in cases where a particular example references only an index buffer or only a vertex buffer.

[0127] In the following description, the terms "first", "second", "third", etc. are used to describe various elements and methods of the GPU. These terms are merely labels and do not imply a particular order or ranking of importance between elements unless otherwise explicitly stated.

[0128] According to an example of the present disclosure, a GPU is provided. The GPU includes a plurality of cores. At least one of the plurality of cores includes a master unit configured to receive geometry processing tasks and distribute them between a first core and a second core.

[0129] Figure 1 An exemplary GPU is depicted in FIG. 1 . It should be understood that although the following examples describe a GPU including three cores, the present disclosure can be generalized to apply to GPUs including two or more cores.

[0130] The GPU 100 includes a first core 110, a second core 120, and a third core 130. The first core 110 includes a master unit 111, a slave unit 112, and two processing units 113, 114. The slave unit 112 communicates with the master unit 111 and the two processing units 113, 114. The second core 120 includes a master unit 121, a slave unit 122, and two processing units 123, 124. The slave unit 122 communicates with the master unit 121 and the two processing units 123, 124. The third core 130 includes a master unit 131, a slave unit 132, and two processing units 133, 134. The slave unit 132 communicates with the master unit 131 and the two processing units 133, 134. The processing units are configured to process geometry processing tasks. In some examples, the slave unit(s) of each core may include one or more processing units.

[0131] The first core 110, the second core 120, and the third core 130 are connected via a register bus 140 and communicate with each other so that the master unit 131 of the third core 130 can send information to the slave units 112, 122 of the first core 110 and the second core 120 via the register bus 140. Since the amount of these communications is small, the register bus can be used for master-slave communication. For example, when the master unit 140 sends a trigger to the core instead of encoding the entire index buffer into the trigger, the master unit 140 can instead only provide enough information to the slave unit to find the necessary information. An example of this is sending the address in the memory of the index buffer to the slave unit.

[0132] In this example, the master units 111, 121 are inactive. Figure 1, which are represented by the shading of these units in . In some examples, the first core 110 and the second core 120 need not include a master unit. More generally, in some examples, all cores may not include a master unit except for the core that includes an active master unit. In some examples, the core that includes an active master unit may not include a slave unit or a processing unit. However, using the same core that includes both a master unit and a slave unit makes the GPU architecture easier to scale - that is, it becomes simpler to design a larger (or smaller) GPU by adding (or removing) cores without disrupting the overall layout, and designs with different numbers of cores are easier to verify correctness because there are fewer different units overall. Because the on-chip size of the master unit is relatively small, including an inactive master unit does not consume a lot of chip space, and redundancy is also provided if a master unit in another core fails.

[0133] The main unit 131 is configured to receive a set of geometry processing tasks from an application driver. As described above, the set of geometry processing tasks includes a reference to an element buffer containing a set of elements. In this example, the set of geometry processing tasks includes the address of an index buffer containing indices corresponding to vertices in a vertex buffer, and topological information defining the semantics of the index buffer. An index buffer (and, by extension, a vertex buffer) represents a set of primitives. Each primitive is defined by a set of indices and, by extension, a set of vertices.

[0134] The topology information defines the semantics of the index buffer, meaning that it indicates to the master unit 131 how to interpret the index buffer. The indices in the index buffer can represent many different groups of primitives, depending on how the indices are grouped together. In general, it is impossible to tell from the list of indices how these indices should be grouped into primitives without additional information. Indices can be grouped together in many different ways, resulting in different (and incorrect) primitives. Only one interpretation of the index buffer will result in the correct set of primitives needed to produce the desired rendered image.

[0135] Common index buffer topologies include triangle lists, triangle strips, and triangle fans. In the triangle list topology, for each primitive, there are three indices in the buffer (or in other words, the buffer contains three times as many indices as primitives). In the triangle strip topology, each primitive except the starting primitive consists of two indices shared with the previous primitive plus a new index. In the triangle fan topology, each primitive is defined by a central index shared with all other primitives and two additional indices, at least one of which is shared with a neighboring primitive in the fan.

[0136] The master unit 131 is also configured to group, for each primitive, the indices defining the primitive in the index buffer. In other words, the master unit 131 uses the topology information to associate the indices representing each primitive in the index buffer. This will refer to FIG. 2A to FIG. 2C Further explanation.

[0137] Figure 2A An index buffer 200 containing five indices, ABCDE, is depicted. In the example, the master unit 131 receives this index buffer 200 for processing. Without topological information telling the master unit how to group the indices in the index buffer, it is unclear how many primitives are contained in the buffer and what primitives are to be processed. For example, the master unit cannot determine whether the indices in the buffer represent triangles ABC, ACD, ADE, and AEB ( Figure 2B The triangular fan 210 shown in FIG. 210 ) or the triangles ABC, BCD and CDE ( Figure 2C ). Therefore, the master unit cannot determine whether the primitive to be processed is a triangle fan 210 or a triangle strip 220. Only by using the topology information can the master unit distinguish between these different index buffer topologies and correctly group the indices into primitives.

[0138] In an image, some objects (and, by extension, their corresponding primitives) appear more than once. The number of times an object appears in a scene is its number of instances. In order to render such an object, the primitives that make up the object must be processed a number of times defined by the number of instances of the object. This can be achieved by duplicating the primitives in the index buffer to ensure that the primitives are processed multiple times. However, this solution is memory inefficient because it duplicates existing information. A better solution is to associate the number of instances with the index buffer. Based on this information, the master unit can determine that the primitives in the index buffer must be processed more than once, and can generate a trigger indicating that the correct number of primitives (a total of the number of primitives in the buffer multiplied by the number of instances) should be processed. The core can then process the trigger as usual, resulting in duplicated primitives without the need for duplicate data in the index buffer or a separate copy of the index buffer.

[0139] The main unit 131 is also configured to determine the number of primitives for each instance in the index buffer. The number of primitives for each instance in the index buffer is the number of complete primitives contained in the index buffer and can be determined once the indices have been grouped using the topological information. The number of primitives for each instance includes only complete primitives. A complete primitive is a primitive that contains the correct number of indices for its shape. For example, a complete triangle primitive has three indices. Although applications typically provide index buffers that contain only complete primitives, this is not always the case. Sometimes, the index buffer contains additional indices that do not form a complete primitive, represented as "dangling" indices. Figure 3 An example of this is shown in .

[0140] Figure 3 The index buffer 300 contains 14 indices (labeled A to N) and is of triangle list type. Using this topology information, the indices can be grouped into four complete primitives (labeled 0 to 3). However, there are two extra indices 310 at the end of the index buffer. Since the index buffer is in triangle list format, each primitive must have three corresponding indices. The two extra indices 310 cannot form a complete triangle primitive, so they are dangling indices. Figure 3 In the example of , the master unit 131 will determine that the number of indices for each instance of the index buffer 300 is four. The number of primitives per instance will be used to avoid processing dangling indices, which will be explained in further detail below.

[0141] The master unit 131 is also configured to send the number of primitives of each instance to the first core 110 and the second core 120 .

[0142] The master unit 131 is also configured to split the set of geometry processing tasks into a first trigger and a second trigger. The first trigger includes an indication of a first starting primitive and an instruction to render a first number of primitives starting from the first starting primitive. The first starting primitive is a primitive in the index buffer from which the first trigger should be processed. In this example, using Figure 3 (with triangle list topology) and considering a single instance, the first starting primitive is primitive 0 (which based on the topology information can be identified as being formed by indices ABC), and the first trigger indicates that two primitives (primitive 0 and primitive 1) are processed.

[0143] Similarly, the second trigger includes an instruction to render a second number of primitives and an indication of a second starting primitive. The second starting primitive is primitive 2 (which can be identified as index GHI based on the topology information), and the second trigger indicates that two primitives (primitive 2 and primitive 3) are processed. In this way, when processed, these two triggers will be processed for all primitives represented in index buffer 300.

[0144] The master unit 131 is also configured to separate state information from the set of geometry processing tasks. State information refers to information required by the core to process geometry processing tasks. State information is associated with all triggers and contains information essential to processing any trigger. An example of state information is topology information. Regardless of which trigger is sent to the core, the core needs topology information in order to find the starting primitive and correctly process that primitive and subsequent primitives.

[0145] Although the splitting may produce many different triggers, it will only produce a single set of state information. Typically, a set of geometry processing tasks involves an amount of work that far exceeds the buffer capacity of the slave units of the GPU. For this reason, the master unit 131 typically splits the set of geometry processing tasks into many triggers, each of which is within the buffer capacity of the slave unit. In some examples, each trigger also does not exceed the buffer capacity of the processing unit. In other examples, the triggers may still exceed the buffer capacity of the processing unit. These triggers need to be further split by the slave units to produce triggers that can be buffered and processed by the processing units.

[0146] The master unit 131 typically does not immediately send all of the triggers that it splits from the group of geometry processing tasks to the cores. Instead, only a subset of the triggers is sent at any given time, with the other triggers being held to be sent later. In other words, for a group of geometry processing tasks, the master unit 131 sends multiple triggers to each core. However, the master unit 131 may only send state information to each core once. Since the state information applies to all triggers, it only needs to be sent once to each core that receives one or more triggers. While the state information could be sent multiple times to each core, for example, with each trigger, this would be inefficient and would unnecessarily increase communication overhead between cores.

[0147] The complexity of geometry processing tasks is not uniform. Different triggers, even if they include the same number of tasks, may vary in overall complexity. Therefore, these triggers will require different lengths of time to process. This time difference may cause skew between cores, where one core completes its task before another core, thereby reducing the degree of parallelization in the GPU. In order to compensate for this variation in task complexity and reduce skew, the master unit can load balance the cores. Load balancing can be achieved by tracking how busy each core is (how much unfinished work each core currently has) and assigning additional tasks to the least busy core. This can help prevent one core from becoming idle while another core still has tasks to process. To achieve this, the master unit 131 typically sends a small portion of the total work to each core at any given time, and uses the remaining work to then load balance the cores. If too much work is sent to a core at any given time, this may destroy the load balance between the cores by creating an insurmountable workload imbalance. On the contrary, splitting a large task set into triggers for a smaller task set may be preferred because this allows for more fine-tuning of the workload of the core. For this reason, the master unit may split the set of geometry processing tasks into triggers that are smaller than the buffer capacity of the slave units.

[0148] When splitting a set of geometry processing tasks, the master unit 131 can compare the number of primitives in the index buffer to the master split threshold. If the number of primitives is less than the master split threshold, it may be more efficient to just forward the tasks to the core rather than spending time and resources to split the set of tasks.

[0149] In some examples, master unit 131 may split the set of geometry processing tasks so that each trigger includes instructions to render a number of primitives greater than or equal to the master split threshold. In other examples, master unit 131 may split the set of geometry processing tasks so that each trigger includes instructions to render a number of primitives less than the master split threshold. Master unit 131 may split the set of tasks so that each core has a trigger, even if this requires each trigger to be associated with a smaller number of primitives than the split threshold. When splitting tasks into triggers, master unit 131 may split the tasks so that each trigger consists of adjacent tasks in the set of tasks.

[0150] In some examples (explained in more detail below), if the first trigger contains a number of primitives greater than a slave split threshold, the slave unit 112 may further split the first trigger among several processing units. In some examples, the master unit may be configured to split the set of tasks into triggers less than the split threshold of the slave units.

[0151] The master unit 131 is configured to assign a first trigger to the first core 110 and assign a second trigger to the second core 120. The master unit 131 is configured to send the first trigger to the first core 110 and send the second trigger to the second core 120. Sending each trigger includes outputting a register write command by the master unit 131 including an instruction to render a number of primitives and an indication of a starting primitive. Sending the first trigger involves outputting a first register write command addressed to the first core 110, which includes an instruction to render a first number of primitives and an indication of a first starting primitive. Similarly, sending the second trigger involves outputting a second register write command addressed to the second core 120 by the master unit 131, which includes an instruction to render a second number of primitives and an indication of a second starting primitive. The register write commands are sent via the register bus 140.

[0152] The first core 110 is configured to receive the first trigger via the register bus 140. Because the first core 110 includes multiple processing units, it can process geometric tasks in parallel. To achieve this, the slave unit 112 can split the trigger into two or more smaller triggers, which can be distributed between the processing units 113, 114 and processed in parallel. The slave unit 112 is configured to determine whether the first number of primitives is greater than a slave splitting threshold. If the first number of primitives is less than this threshold, the slave unit 112 will not split the first trigger, but will send the first trigger to one of the first processing unit 113 or the second processing unit 114 for processing.

[0153] However, if the first number of primitives is greater than the slave split threshold, the slave unit 112 is configured to split the first trigger into at least a third trigger and a fourth trigger. This split is similar to the split performed by the master unit 131, and generates a third trigger and a fourth trigger, wherein the third trigger includes an instruction to render a third number of primitives and an indication of a third starting primitive, and the fourth trigger includes an instruction to render a fourth number of primitives and an indication of a fourth starting primitive.

[0154] The slave unit 112 is configured to send the third trigger to the first processing unit 113, and send the fourth trigger to the second processing unit 114. The processing unit 113 is configured to process the third trigger, and the processing unit 114 is configured to process the fourth trigger. More generally, the processing units in a core are configured to receive triggers from the slave units of the core and process the triggers.

[0155] The processing units 113, 114 are configured to detect when the last primitive in the index buffer has been processed when processing a trigger. The last primitive in the index buffer is the last complete primitive in the index buffer (meaning that dangling indices are ignored). For this example, consider Figure 3 The last primitive in the index buffer is primitive 3. The processing units 113, 114 can detect when the last primitive in the index buffer has been processed based on the number of primitives per instance, the starting primitive of the trigger being processed, and the number of primitives in the triggered triggers that have been processed. This will refer to Figure 4 Explain in more detail.

[0156] Figure 4 Shows the Figure 3The trigger processes an index buffer 300, where the number of instances of the index buffer is three. The trigger indicates that the starting primitive is the third primitive in the buffer (primitive 2), and instructs the processing unit to process seven primitives. Processing the trigger causes the first instance of the buffer (instance 0) to be partially processed (only primitives 2 and 3 are processed), the second instance (instance 1) to be fully processed, and the third instance (instance 2) to be partially processed (only primitive 0 is processed). Although Figure 4 Not shown, but the main unit 131 will also be together with Figure 4 At least two additional triggers are generated together with the triggers of , . At least one of these additional triggers indicates that primitives 0 and 1 are processed, thereby completing instance 0. At least another of these additional triggers indicates that primitives 1, 2, and 3 are processed, thereby completing instance 2. Figure 4 The possibility that the triggers of instance 0 and the additional triggers can be processed in parallel, the triggers can be processed on different cores at different times. In other words, the triggers can be processed in any order, including simultaneously. For this reason, the "completion" of the additional trigger for instance 0 can be completed before the completion of the Figure 4 In other words, the difference between which trigger starts processing an instance and which trigger finishes processing that instance depends on the order in which the triggers are processed, not on the triggers themselves.

[0157] In the case where the first processing unit 113 Figure 4 Prior to processing the trigger shown in , the main unit 131 has determined that the number of primitives for each instance of this index buffer is four, and has sent the number of primitives for each instance to the core. Using this information, and given that processing will begin at the third primitive in the buffer (primitive 2), the first processing unit 113 can determine that the second primitive it processes is the last primitive in the index buffer 300. While processing this last primitive (primitive 3), the processing unit 113 can continue to process the trigger from the first primitive in the index buffer 300 (primitive 0). Knowing the number of primitives for each instance in the index buffer, and continuing to process from primitive 0, the processing unit 113 can determine that the sixth primitive it processes is the last primitive in the index buffer 300. After processing this primitive, the processing unit 113 can again continue processing from primitive 0, repeating the above process until the processing unit 113 has processed the number of primitives indicated by the trigger. In this way, dangling indexes are not processed, and no attempt is made to process them.

[0158] The main unit 131 is configured to generate a global interleaving flag associated with the first trigger and the second trigger after splitting a set of geometry processing tasks into the first trigger and the second trigger and assigning the first trigger and the second trigger to the core. The global interleaving flag defines the order of the triggers within the set of geometry processing tasks. This order is important because image processing applications usually provide tasks to the GPU in the order in which they are expected to be processed. When these tasks are processed by a single core, this order is naturally respected, and the output of the task maintains the order, which is passed to later processing operations. However, when the task is split among multiple cores and processed in parallel, the order is no longer inherently executed-the task may or may not be processed and completed by different cores in its original order. In order to ensure that the output of the trigger (i.e., the result of processing related primitives) can be combined to restore the original order, the main unit 131 is configured to associate the first trigger with the first global interleaving flag and the second trigger with the second global interleaving flag. By reorganizing the output of the trigger according to the global interleaving flag of the trigger, the original order of the task can be restored.

[0159] In some examples, the master unit 131 generates a new global interleaving tag each time a group of tasks is split into triggers. In this way, each global interleaving tag is associated with a single trigger, and vice versa. This can be done before the master unit 131 assigns triggers to cores, because the master unit 131 may not yet determine which cores need additional tasks. In other examples, each global interleaving tag can be associated with multiple consecutive triggers. For example, the master unit 131 can split a group of geometry processing tasks into three triggers-a first trigger, a second trigger, and a third trigger, where the first trigger corresponds to the first part of the group of tasks, the second trigger corresponds to the second part of the group of tasks, and the third trigger corresponds to the third part of the group of tasks. In this case, the terms "first", "second", and "third" are related to the order of the tasks-the first part of the task is before the second part of the task, and the second part of the task is before the third part of the task. If the master unit assigns the first trigger and the second trigger to the first core 110, and the third trigger is assigned to the second core 120, the first trigger and the second trigger can be associated with the same global interleaving tag. This is because the first trigger and the second trigger correspond to a continuous group of tasks. Then, the global interleave flag only needs to indicate that the third flip-flop occurs after the first flip-flop and the second flip-flop so that the outputs of the first core 110 and the second core 120 can be correctly combined.

[0160] More generally, each consecutive set of flops that are all assigned to the same core (ie, each set of flops that corresponds to a consecutive set of tasks in the set of geometry processing tasks) may be associated with the same global interleaving flag.

[0161] In a similar manner, the slave unit 112 of the first core 110 is configured to generate a local interleaving flag when it splits a flip-flop. This is necessary for the same reason that it is necessary for the master unit 131 to generate the flag—when a core processes tasks using only one processing unit, the order in which the tasks are provided to the core is naturally maintained in the output of the processing unit. However, when tasks are processed in parallel using multiple processing units, this order may be violated. The local flags enable the correct order to be reconstructed.

[0162] Now refer to Figure 5 An exemplary method performed by GPU 100 is described.

[0163] In step 501 of method 500, the master unit 131 receives a set of geometry processing tasks from an application driver. The content of the set of geometry processing tasks has been explained above. In step 502, the master unit 131 groups the indexes into primitives based on the topology information. In step 503, the master unit 131 determines the number of primitives per instance in the index buffer. In step 504, the master unit 131 sends the number of primitives per instance to the first core 110 and the second core 120.

[0164] In step 505, the master unit 131 splits the set of geometry processing tasks into a first trigger, a second trigger, and state information. In this example, the first trigger and the second trigger relate to different instances (as explained above). In step 506, the master unit 131 sends the state information to the first core 110 and the second core 120. In step 507, the master unit 131 assigns the first trigger to the first core 110. In step 508, the master unit 131 assigns the second trigger to the second core 120. In step 509, the master unit 131 sends the first trigger to the first core 110, the sending including outputting 509B a first register write command addressed to the first core 110, which includes an instruction to render a first number of primitives and an indication of a first starting primitive. In step 510, the master unit 131 sends the second trigger to the second core 120, the sending including outputting 510B a second register write command addressed to the second core 120, which includes an instruction to render a second number of primitives and an indication of a second starting primitive.

[0165] In step 511, the first core 110 receives the first trigger. Because in this example, the first number of primitives of the first trigger is greater than a threshold (in this example, it is the buffer size of the processing units 113, 114), the slave unit 112 of the first core 110 splits 512 the first trigger into a third trigger and a fourth trigger (see Figure 6 ).

[0166] After splitting 512 the first trigger, in step 513, a first local interleaving flag associated with the third trigger is generated from unit 112. In step 514, the first local interleaving flag is sent from unit 112 to the first processing unit 113. In step 515, the third trigger is sent from unit 110 to the first processing unit 113. In step 516, the first processing unit 113 processes the third trigger. During processing 516 of the third trigger, the first processing unit 113 detects 517 when the last primitive in the index buffer has been processed, and if the third trigger has not yet been completed, the processing unit 113 continues 519 processing the third trigger from the first primitive in the index buffer. These detecting 517 and continuing 518 steps are repeated until the trigger is completely processed.

[0167] In step 518, the slave unit 112 generates a second local interleaving flag associated with the fourth trigger. In step 519, the slave unit 112 sends the second local interleaving flag to the second processing unit 114. In step 520, the slave unit 112 sends the fourth trigger to the second processing unit 114. In step 521, the second processing unit 114 processes the fourth trigger. During the processing 521 of the fourth trigger, the second processing unit 114 detects 522 when the last primitive in the index buffer has been processed, and if the fourth trigger has not yet been completed, continues 523 to process the fourth trigger from the first primitive in the index buffer. As described above, this detection utilizes the number of primitives per instance.

[0168] Figure 7 yes Figure 5 Continuation of , and depicts a method performed by the GPU if the first number of primitives does not exceed the split threshold from the unit.

[0169] In step 524, the slave unit 112 sends the first trigger to the first processing unit 113. In step 525, the first processing unit 113 processes the first trigger. The processing comprises detection 526 and continuation 527 steps, corresponding to the steps described above for the third and fourth triggers.

[0170] Figure 8 yes Figure 5 In step 528, after the master unit has allocated 507 the first trigger to the first core 110 and allocated 508 the second trigger to the second core 120, the master unit 131 generates a first global interleaving tag associated with the first trigger and a second global interleaving tag associated with the second trigger. In step 529, the master unit 131 sends the first global interleaving tag to the first core 110, and in step 530, the master unit 131 sends the second global interleaving tag to the second core 120.

[0171] Although not shown, the second core 120 can perform steps corresponding to the steps explained above for the first core. For example, the slave unit 122 of the second core 120 can split the second flip-flop and generate a local interleaving flag. More generally, any slave unit of the GPU 100 can perform the method steps described above for the slave unit 112.

[0172] The first core 110, the second core 120, and the third core 130 (as well as any other cores in the GPU) may all be identical (eg, Figure 1 In some examples, the cores of the GPU can be separated into two or more groups. Each group can include a core that contains an active master unit that is responsible for distributing geometry processing tasks among the cores of its group and not distributing geometry processing tasks to cores of other groups.

[0173] It should be understood that the scope of the present disclosure is not limited to the above examples. Many variations are possible, including but not limited to the following.

[0174] In some examples, master unit 131 may assign one of the first trigger and the second trigger to the third core, and may send the trigger to slave unit 132 of third core 130. In some examples, master unit 131 may split the set of geometry processing tasks into more than two triggers. In some examples, master unit 131 may split the third trigger from the set of geometry processing tasks, and may assign the third trigger to the third core.

[0175] Although in the above example, the main unit 131 is part of the third core 130 different from the first core 110 and the second core 120, this is not necessarily the case. In some examples, one of the first core 110 and the second core 120 may include the main unit 131. In some examples, the GPU may include only two cores.

[0176] In another example, a GPU may include only a single core. This single core includes only one master unit and only one slave unit. In addition, a single slave unit includes only one processing unit. This GPU cannot process tasks in parallel. However, even if each trigger is ultimately assigned and sent to a single slave unit, it is still beneficial to configure the master unit to split the group of geometry processing tasks into multiple triggers. Splitting tasks is beneficial because it enables the same master unit to be used in multi-core GPUs, single-core GPUs that include multiple processing units (and are therefore capable of parallel processing), and single-core GPUs that cannot process in parallel (such as this example). By extension, it enables the above cores to operate in a multi-core system. If a second core is introduced into a GPU at any time, it is simple to implement parallel processing because the first core has been configured to split tasks into triggers. All that is required to implement parallel processing is that the first core assigns and sends some triggers to the second core.

[0177] In some examples, the master split threshold can be considered as a target number of primitives to be sent to each core. For example, the master unit 131 may not compare the number of primitives in the index buffer with the master split threshold. Instead, the master unit 131 may maintain a running count that represents the split threshold minus the number of primitives assigned to the core. In some cases, the number of primitives in the index buffer may be greater than the split threshold. In these cases, although the running count indicates that the primitives assigned to the core are less than the split threshold amount, the master unit 131 may continue to fill the trigger assigned to the core with primitives. When the running count indicates that the threshold number of primitives has been assigned to the core, a new trigger assigned to a different core is created and filled with primitives. The running count is reset for the new trigger. In this way, the group of tasks is split. For example, the threshold may be equal to a number X. The running count may start with a value of X, and the trigger assigned to the first core will be filled with primitives, thereby reducing the value of the running count of each primitive that fills the trigger by one, until the running count reaches a value of 0. At this point, a new trigger assigned to the second core will be created, and the process will be repeated for the new trigger.

[0178] In some cases, the number of primitives in the index buffer of one draw call is less than the split threshold. In these cases, the split threshold will not be met when filling the trigger with primitives from the index buffer. This means that all tasks in the draw call will be included in one trigger. However, since the split threshold has not been met, the master unit will not reset the run count. When the master unit receives a subsequent draw call, it creates a new trigger (assigned to the same core as before) and fills the trigger with tasks from the subsequent draw call. This series of triggers created within one cycle of the run count and all assigned to the same core maintains the original order of the geometry processing tasks. Therefore, the series of triggers can be associated with a global interleaving flag. In this way, the split can span two or more draw calls. However, the split threshold will eventually be met. When the split threshold is met, the master unit will create another trigger assigned to a different core, will reset the run count, and will fill the other trigger with tasks. Therefore, the group of tasks will be split.

[0179] In some examples, the slave unit 112 of the first core 120 determines whether the first number of tasks exceeds a slave split threshold. This threshold may be a buffer size of the processing units 113, 114 of the core 110. In some examples, the slave split threshold may be determined empirically. Similarly, the master split threshold may be determined empirically and may be adjusted to balance the competition considerations of creating small enough flip-flops so that no core is idle, while also creating large enough flip-flops so that each core is kept busy without frequently transmitting flip-flops on the register bus 140.

[0180] In the above example, the slave unit 112 of the first core 110 performs a split in which the first flip-flop is split into a third flip-flop and a fourth flip-flop. In some examples, the slave unit 112 can split the first flip-flop so that each resulting flip-flop is less than a slave split threshold. In other examples, the slave unit 112 can split the first flip-flop so that each resulting flip-flop is greater than (or equal to) the slave split threshold. In some examples, the slave unit 112 can split the first flip-flop so that there is at least one flip-flop for each processing unit 113, 114.

[0181] Like the global interleaving flag, the local interleaving flag can be associated with more than one flip-flop. The interleaving flags can be hierarchical in that multiple local interleaving flags can be associated with a global interleaving flag. The local interleaving flag indicates the order in which the outputs of different processing units within a core should be combined to restore the original order of the flip-flops sent to the core, and the global interleaving flag indicates the order in which the outputs of all flip-flops sent to all cores should be combined to fully restore the order of the set of geometry processing tasks.

[0182] The processing units of the core do not know whether the trigger they are processing has been split only by the master unit, or also by the slave unit. The processing units handle such triggers in the same manner. Similarly, the slave unit may not know whether the trigger has just been received from the master unit 131, or has been split once by the slave unit. In either case, the slave unit can determine whether the trigger exceeds the split threshold, and can handle the trigger as described above.

[0183] It should be understood that method steps 503 to 504, 506, 509B, 510B and steps 511 to 531 are optional. In some examples, some or all of these method steps may be omitted.

[0184] In some examples, slave units do not split the flops they receive from master unit 131. For example, when a core contains only a single processing unit, slave units of that core may not split the flops it receives from master unit 131. Thus, the slave units may not compare the flops to the split threshold. When a core receives multiple flops and does not process them in parallel, it does not need to generate a local interleaving flag, however, it may still generate a local interleaving flag for scalability reasons.

[0185] In some examples, master unit 131 may not calculate the number of primitives for each instance of the index buffer. Instead, this information may be provided to master unit 131 by an application.

[0186] In some examples, master unit 131 may not output a register write command, but may send a trigger by any suitable alternative means. In some examples, the trigger may not be transmitted over register bus 140. Instead, the cores may be linked by a dedicated connection configured to carry a trigger.

[0187] In some examples, each core may include an interface unit. The interface unit may communicate with the master unit and slave units of the core and the register bus 140. The interface unit of the core including the master unit 131 may receive register write commands from the master unit 131 and forward the register write commands to the cores to which they are addressed via the register bus 140. The interface units of the first core 110 and the second core 120 may receive register write commands and forward them to the slave units 112, 122. In the case where the master unit 131 assigns a trigger to the core in which it is located, it may send the trigger directly to the slave unit of the core instead of sending it via the interface unit of the core.

[0188] In some examples, the cores of the GPU are not identical. In some examples, the inactive master units 111, 121 of the first core 110 and the second core 120 of the GPU 100 may not exist. More generally, any inactive unit may be excluded. In some examples, the cores may have different numbers of processing units. It may be beneficial for a core with a larger number of processing units to split a set of tasks into a larger number of triggers than a core with a smaller number of processing units because this enables the core with a larger number of processing units to employ a greater degree of parallelism.

[0189] Although Figure 1 The third core 130 of the GPU 100 includes a slave unit 132 and processing units 133, 134, but this is not necessarily the case for all examples. In some examples, the third core 130 is not configured to process triggers and does not include a slave unit or a processing unit.

[0190] In some examples (such as Figure 1 In some embodiments, each slave unit may include one or more processing units. One or more processing units may include dedicated hardware configured to perform geometry processing tasks. In other examples, one or more processing units may not include dedicated hardware.

[0191] In the above example, the set of geometry processing tasks includes a reference to an index buffer. In some cases, it may be preferable to process geometry processing tasks using a vertex buffer (without using indices). In these cases, methods corresponding to the above methods may be performed, but they act directly on vertex buffers instead of index buffers.

[0192] In the example of GPU 100, the set of geometry processing tasks received by master unit 131 includes an indication of a set of vertices in a vertex buffer and topology information. The topology information defines the semantics of the vertex buffer, which corresponds to the method explained above for the index buffer, indicating how the master unit 131 should interpret the vertices in the vertex buffer. Master unit 131 is configured to group, for each primitive, the vertices in the vertex buffer that define the primitive.

[0193] As already explained, some primitives appear more than once in the scene. In order to avoid duplicating primitives in the vertex buffer or needing to copy the entire vertex buffer, an instance number can be associated with the vertex buffer. The main unit 131 is configured to determine the number of primitives per instance in the vertex buffer, thereby only considering complete primitives (those formed by the correct number of vertices for their shape).

[0194] The main unit 131 is also configured to determine the number of primitives per instance in the vertex buffer and send the number of primitives per instance to the first core 110 and the second core 120 .

[0195] The main unit 131 is configured to split the set of geometry processing tasks into a first trigger and a second trigger. The first trigger includes an indication of a first starting primitive and an instruction to render a first number of primitives starting from the first starting primitive. The first starting primitive is a primitive in the vertex buffer from which the first trigger should be processed. As in other examples, the second trigger includes an indication of a second starting primitive and an instruction to render a second number of primitives starting from the second starting primitive. The second starting primitive is a primitive in the vertex buffer from which the second trigger should be processed.

[0196] Fig. 9 904, memory 906, and other devices 914, such as a display 916, a speaker 918, and a camera 919. Processing blocks 910 (corresponding to cores 110, 120, 30, and register bus 140) are implemented on GPU 904. In other examples, processing blocks 910 may be implemented on CPU 902. The components of the computer system may communicate with each other via a communication bus 920.

[0197] Figure 1 The GPU in FIG. 1 is shown as comprising several functional blocks. This is merely schematic and is not intended to define a strict division between different logical elements of such an entity. Each functional block may be provided in any suitable manner. It should be understood that intermediate values ​​described herein as being formed by the GPU need not be physically generated by the GPU at any point in time, and may simply represent logical values ​​that conveniently describe the processing performed by the GPU between its inputs and outputs.

[0198] The GPU described herein may be embodied in hardware on an integrated circuit. The GPU described herein may be configured to perform any of the methods described herein. In general, any of the functions, methods, techniques, or components described above may be implemented in software, firmware, hardware (e.g., fixed logic circuitry), or any combination thereof. The terms "module," "functionality," "component," "element," "unit," "block," and "logic" may be used herein to generally represent software, firmware, hardware, or any combination thereof. In the case of a software implementation, a module, functionality, component, element, unit, block, or logic represents a program code that, when executed on a processor, performs a specified task. The algorithms and methods described herein may be performed by one or more processors that execute code, which prompts the processor to perform the algorithm / method. Examples of computer-readable storage media include random access memory (RAM), read-only memory (ROM), optical disks, flash memory, hard disk storage, and other memory devices that may use magnetic, optical, and other technologies to store instructions or other data and may be accessed by a machine.

[0199] As used herein, the terms computer program code and computer readable instructions refer to any kind of executable code for execution by a processor, including code expressed in machine language, interpreted language, or scripting language. Executable code includes binary code, machine code, byte code, code that defines an integrated circuit (such as a hardware description language or netlist), and code written in languages ​​such as C, Executable code can be, for example, any kind of software, firmware, script, module or library that, when properly executed, processed, interpreted, compiled, or run in a virtual machine or other software environment, enables the processor of a computer system supporting the executable code to perform the tasks specified by the code.

[0200] A processor, computer or computer system may be any kind of device, machine or special purpose circuit, or a collection or part thereof having processing capabilities so that it can execute instructions. A processor may be any kind of general or special purpose processor, such as a CPU, GPU, NNA, system on chip, state machine, media processor, application specific integrated circuit (ASIC), programmable logic array, field programmable gate array (FPGA), etc. A computer or computer system may include one or more processors.

[0201] It is also intended to cover software that defines the configuration of hardware as described herein, such as HDL (Hardware Description Language) software, such as for designing integrated circuits or for configuring programmable chips to implement desired functions. That is, a computer-readable storage medium may be provided having encoded thereon computer-readable program code in the form of an integrated circuit definition data set, which, when processed (i.e., run) in an integrated circuit manufacturing system, configures the system to manufacture a GPU or graphics processing system configured to perform any of the methods described herein, or to manufacture a GPU or graphics processing system that includes any of the devices described herein. The integrated circuit definition data set may be, for example, an integrated circuit description.

[0202] Thus, a method of manufacturing a GPU or graphics processing system as described herein in an integrated circuit manufacturing system may be provided. In addition, an integrated circuit definition data set may be provided, which, when processed in an integrated circuit manufacturing system, enables the method of manufacturing a GPU or graphics processing system to be performed.

[0203] The integrated circuit definition data set may be in the form of computer code, for example as a netlist, code for configuring a programmable chip, as a hardware description language that defines hardware suitable for fabrication at any level in an integrated circuit, including as register transfer level (RTL) code, as a high-level circuit representation such as Verilog or VHDL, and as a low-level circuit representation such as OASIS (RTM) and GDSII. Higher-level representations that logically define hardware suitable for fabrication in an integrated circuit (such as RTL) may be processed at a computer system configured to generate a manufacturing definition of the integrated circuit in the context of a software environment that includes definitions of circuit elements and rules for combining those elements to generate a manufacturing definition of the integrated circuit so defined by the representation. As is typically the case with software executed at a computer system to define a machine, one or more intermediate user steps (e.g., providing commands, variables, etc.) may be required to configure the computer system to generate a manufacturing definition of the integrated circuit to execute code that defines the integrated circuit to generate the manufacturing definition of the integrated circuit.

[0204] Now about Fig.10 An example of processing an integrated circuit definition data set at an integrated circuit manufacturing system to configure the system to manufacture a GPU or graphics processing system is described.

[0205] Fig.10An example of an integrated circuit (IC) manufacturing system 1002 is shown, which is configured to manufacture a GPU or graphics processing system as described in any example herein. Specifically, the IC manufacturing system 1002 includes a layout processing system 1004 and an integrated circuit generation system 1006. The IC manufacturing system 1002 is configured to receive an IC definition data set (e.g., defining a GPU or graphics processing system as described in any example herein), process the IC definition data set, and generate an IC (e.g., which includes a GPU or graphics processing system as described in any example herein) based on the IC definition data set. The processing of the IC definition data set configures the IC manufacturing system 1002 to manufacture an integrated circuit that includes a GPU or graphics processing system as described in any example herein.

[0206] The layout processing system 1004 is configured to receive and process an IC definition data set to determine a circuit layout. Methods for determining a circuit layout based on an IC definition data set are known in the art and may, for example, involve synthesizing RTL code to determine a gate-level representation of a circuit to be generated, such as in terms of logic components (e.g., NAND, NOR, AND, OR, MUX, and FLIP-FLOP components). By determining location information for the logic components, the circuit layout may be determined based on the gate-level representation of the circuit. This may be done automatically or with user involvement in order to optimize the circuit layout. When the layout processing system 1004 has determined the circuit layout, it may output the circuit layout definition to the IC generation system 1006. The circuit layout definition may be, for example, a circuit layout description.

[0207] As is known in the art, IC production system 1006 produces ICs according to the circuit layout definition. For example, IC production system 1006 may implement a semiconductor device manufacturing process to produce ICs, which may involve a multi-step sequence of photolithography and chemical processing steps during which electronic circuits are gradually formed on a wafer made of semiconductor material. The circuit layout definition may be in the form of a mask that may be used in a photolithography process to produce the IC according to the circuit definition. Alternatively, the circuit layout definition provided to IC production system 1006 may be in the form of a computer readable code that IC production system 1006 may use to form a suitable mask for producing the IC.

[0208] The different processes performed by the IC manufacturing system 1002 may all be implemented at one location, such as by one party. Alternatively, the IC manufacturing system 1002 may be a distributed system such that some processes may be performed at different locations and may be performed by different parties. For example, some of the following stages may be performed at different locations and / or by different parties: (i) synthesizing RTL code representing an IC definition data set to form a gate-level representation of a circuit to be generated; (ii) generating a circuit layout based on the gate-level representation; (iii) forming a mask based on the circuit layout; and (iv) using the mask to manufacture the integrated circuit.

[0209] In other examples, processing of the integrated circuit definition data set at the integrated circuit manufacturing system may configure the system to manufacture a GPU or graphics processing system without processing the IC definition data set to determine the circuit layout. For example, the integrated circuit definition data set may define a configuration of a reconfigurable processor such as an FPGA, and processing of the data set may configure the IC manufacturing system to generate (e.g., by loading the configuration data into the FPGA) a reconfigurable processor having the defined configuration.

[0210] In some embodiments, when processed in an integrated circuit manufacturing system, the integrated circuit manufacturing definition data set may enable the integrated circuit manufacturing system to generate an apparatus as described herein. Fig.10 An integrated circuit manufacturing system may be configured in the manner described to manufacture the apparatus described herein.

[0211] In some examples, the integrated circuit definition data set may include software that runs on, or in combination with, hardware defined at the data set. Fig.10 In the example shown, the IC production system can be further configured by the integrated circuit definition dataset to load firmware onto the integrated circuit according to the program code defined at the integrated circuit definition dataset when manufacturing the integrated circuit, or otherwise provide the integrated circuit with program code for use with the integrated circuit.

[0212] Compared with known implementations, the implementation of the concepts set forth in this application in devices, equipment, modules and / or systems (and in the methods implemented herein) can improve performance. Performance improvements can include one or more of improved computing performance, reduced delays, increased throughput and / or reduced power consumption. During the manufacture of such devices, equipment, modules and systems (e.g., in integrated circuits), a trade-off can be made between performance improvements and physical implementations to improve manufacturing methods. For example, a trade-off can be made between performance improvements and layout area to match the performance of known implementations, but using less silicon. For example, this can be accomplished by reusing functional blocks in a serial manner or sharing functional blocks between elements of devices, devices, modules and / or systems. In contrast, the concepts set forth in this application that bring improvements (e.g., reduced silicon area) to the physical implementation of devices, devices, modules and systems can be weighed against performance improvements. This can be accomplished, for example, by manufacturing multiple instances of a module within a predefined area budget.

[0213] Applicants hereby independently disclose each individual feature described herein and any combination of two or more such features, to the extent that such feature or combination can be implemented according to the common general knowledge of a person skilled in the art based on the specification as a whole, regardless of whether such feature or combination of features solves any problem disclosed herein. In view of the foregoing description, it will be clear to a person skilled in the art that various modifications can be made within the scope of the invention.

Claims

1. A method (500) for distributing a set of geometry processing tasks in a graphics processing unit (100) comprising a plurality of cores, the method comprising: The set of geometry processing tasks is received (501) by a master unit (131) in one of the plurality of cores, wherein the set of geometry processing tasks comprises: an indication of a set of elements in the element buffer; and Topology information, wherein the topology information defines the semantics of the element buffer, the topology information indicating how the set of elements should be grouped into primitives; The master unit (131) groups (502) the elements into primitives based on the topological information; Splitting (505), by the master unit, the set of geometry processing tasks into at least a first trigger and a second trigger, wherein the first trigger includes an indication of a first starting primitive in the element buffer and instructions to render a first number of primitives starting from the first starting primitive, and the second trigger includes an indication of a second starting primitive in the element buffer and instructions to render a second number of primitives starting from the second starting primitive; Allocating (507) the first trigger to a first core (110) of the plurality of cores by the master unit (131); Allocating (508) the second trigger to a second core (120) of the plurality of cores by the master unit (131); sending (509) the first trigger by the master unit to the first core; and The second trigger is sent (510) by the master unit to the second core.

2. The method (500) according to claim 1, wherein: The first core comprises a slave unit (112), a first processing unit (113) and a second processing unit (114), and wherein the method further comprises: Receiving (511) the first trigger by a slave unit (112) of the first core (110); Splitting (512) the first trigger into at least a third trigger and a fourth trigger by a slave unit (112) of the first core (110); wherein the third trigger includes an indication of a third starting primitive in the element buffer and an instruction to render a third number of primitives starting from the third starting primitive, and the fourth trigger includes an indication of a fourth starting primitive in the element buffer and an instruction to render a fourth number of primitives starting from the fourth starting primitive; Sending (515) the third trigger to the first processing unit by a slave unit of the first core; sending (520) the fourth trigger to the second processing unit by a slave unit of the first core; processing (516) the third trigger by the first processing unit; and The fourth trigger is processed (521) by the second processing unit.

3. The method (500) of claim 2, wherein: If the first number of primitives is greater than a threshold, the slave unit (112) of the first core (110) splits (512) the first flip-flop.

4. The method (500) according to claim 2 or 3, wherein: The splitting (512) performed by the slave unit (112) of the first core (110) includes: generating (513) by the slave unit (112) a first local interleaving flag associated with the third flip-flop; generating (518), by the slave unit (112), a second local interleaving flag associated with the fourth flip-flop; The slave unit (112) sends (514) the first local interleaving flag to the first processing unit (113); and The second local interleaving flag is sent (519) by the slave unit (112) to the second processing unit (114), Wherein, the local interleaving flag defines the order of the third trigger and the fourth trigger within the set of geometry processing tasks.

5. The method (500) of claim 1, 2 or 3, wherein: The element buffer is associated with an instance number, the instance number defining the number of times a primitive in the element buffer is to be rendered; and When the first core has completed processing of the last primitive in the element buffer, the core continues to process the first trigger from a first primitive in the element buffer if the number of instances just processed is less than the number of instances.

6. The method (500) according to claim 5, further comprising: Determining (503) by the master unit (131) the number of primitives per instance in the element buffer based on the topology information, wherein the number of primitives per instance is the number of complete primitives in the element buffer; Sending (504), by the master unit (131), at least to the first core (110), the number of primitives of each instance in the element buffer; detecting, by the first core (110), when the first core (110) has processed the last primitive in the element buffer based on the first starting primitive and the number of primitives per instance; and The first trigger continues to be processed by the first core (110) starting from the first primitive in the element buffer.

7. The method (500) of claim 1, 2 or 3, wherein: The element buffer is associated with an instance number, the instance number defining the number of times a primitive in the element buffer is to be rendered; The number of said instances is at least two; The first trigger includes a first primitive of a first instance of the element buffer; The second trigger includes a second primitive of the first instance of the element buffer and also includes a primitive of the second instance of the element buffer.

8. The method (500) of claim 1, 2 or 3, wherein: The set of geometry processing tasks also includes state information; The master unit (131) splits (505) the set of geometry processing tasks, including splitting the set of geometry processing tasks into the first trigger, the second trigger and the state information; and wherein the method further comprises: sending (506) the status information by the main unit (131) to the first core (110); and The status information is sent (506) by the main unit (131) to the second core (120).

9. The method (500) of claim 1, 2 or 3, wherein: The splitting (505) of the set of geometry processing tasks includes: generating (528), by the master unit (131), a first global interleaving flag associated with the first flip-flop; generating (529), by the master unit (131), a second global interleaving flag associated with the second flip-flop; The master unit (131) sends (530) the first global interleaving flag to the first core (110); and The second global interleaving flag is sent (531) by the master unit (131) to the second core (120), Wherein, the global interleaving flag defines the order of the first trigger and the second trigger within the set of geometry processing tasks.

10. The method (500) of claim 1, 2 or 3, wherein: The first core and the second core are connected via a register bus (140) configured to carry register write commands; Sending (509) the first trigger includes outputting (509B) by the master unit (131) a first register write command, the first register write command being addressed to the first core (110) and including an indication of the first trigger; and Sending (510) the second flip-flop includes outputting (510B) by the master unit (131) a second register write command, the second register write command being addressed to the second core (120) and including an indication of the second flip-flop.

11. The method (500) of claim 1, 2 or 3, wherein: The first core (110) includes the main unit.

12. The method (500) of claim 1, 2 or 3, wherein: A third core (130) of the plurality of cores includes a slave unit (132) and the master unit (131); The main unit (131) splits (505) the set of geometric processing tasks, including: splitting the set of geometric processing tasks into the first trigger, the second trigger and the fifth trigger; The main unit (131) distributes the fifth trigger to the third core (130); and The master unit (131) sends the fifth trigger to the slave unit (132) of the third core (130).

13. The method according to claim 1, 2 or 3, wherein: The element buffer is an index buffer, each element in the element buffer is an index in the index buffer, and each index in the index buffer indicates a position of a vertex in a vertex buffer.

14. The method according to claim 1, 2 or 3, wherein: The element buffer is a vertex buffer, and each element of the element buffer is a vertex in the vertex buffer.

15. A graphics processing unit (100) comprising a plurality of cores, wherein: One of the plurality of cores comprises a main unit (131), the main unit being configured to: A set of geometry processing tasks is received, the set of geometry processing tasks comprising: an indication of a set of elements in the element buffer; and Topology information, wherein the topology information defines semantics of the element buffer, the topology information indicating how the set of elements should be grouped into primitives; Based on the topological information, grouping the elements in the element buffer into primitives; splitting the set of geometry processing tasks into at least a first trigger and a second trigger, wherein the first trigger includes an indication of a first starting primitive in the element buffer and instructions to render a first number of primitives starting from the first starting primitive, and the second trigger includes an indication of a second starting primitive in the element buffer and instructions to render a second number of primitives starting from the second starting primitive; assigning the first trigger to a first core among the plurality of cores (110); assigning the second trigger to a second core of the plurality of cores (120); sending the first trigger to the first core (110); and The second trigger is sent to the second core (120).

16. The graphics processing unit (100) of claim 15, wherein: The first core (110) includes a slave unit (112), a first processing unit (113) and a second processing unit (114); The slave unit (112) of the first core (110) is configured to: receiving the first trigger; Splitting the first trigger into at least a third trigger and a fourth trigger, wherein the third trigger includes an indication of a third starting primitive in the element buffer and instructions to render a third number of primitives starting from the third starting primitive, and the fourth trigger includes an indication of a fourth starting primitive in the element buffer and instructions to render a fourth number of primitives starting from the fourth starting primitive; Sending the third trigger to the first processing unit (113); sending the fourth trigger to the second processing unit (114); The first processing unit (113) is configured to process the third trigger; and The second processing unit (114) is configured to process the fourth trigger.

17. The graphics processing unit (100) of claim 16, wherein: The slave unit (112) is configured to: generating a first local interleaving flag associated with the third flip-flop; generating a second local interleaving flag associated with the fourth flip-flop; sending the first local interleaving flag to the first processing unit (113); and sending the second local interleaving flag to the second processing unit (114), Wherein, the local interleaving flag defines the order of the third trigger and the fourth trigger within the set of geometry processing tasks.

18. The graphics processing unit (100) according to any one of claims 15 to 17, wherein: The element buffer is associated with an instance number, the instance number defining the number of times the primitive in the element buffer is to be rendered; and The first core (110) is configured to, after processing a last primitive in the element buffer, continue processing the first trigger from a first primitive in the element buffer.

19. The graphics processing unit (100) of claim 18, wherein: The main unit (131) is configured to: Determine the number of primitives per instance in the element buffer based on the topology information, wherein the number of primitives per instance is the number of complete primitives contained in one instance of the element buffer; and sending the number of primitives for each instance to at least the first core (110); And wherein the first core (110) is configured to: detecting when the last primitive in the element buffer has been processed based on the first starting primitive and the number of primitives per instance; and Processing of the first trigger continues starting with the first primitive in the element buffer.

20. The graphics processing unit (100) according to any one of claims 15 to 17, wherein: The element buffer is associated with an instance number, the instance number defining the number of times a primitive in the element buffer is to be rendered; The number of instances is at least two; The first trigger includes a first primitive of a first instance of the element buffer; The second trigger includes a second primitive of the first instance of the element buffer and also includes a primitive of a second instance of the element buffer.

21. The graphics processing unit (100) according to any one of claims 15 to 17, wherein: The main unit (131) is configured to: generating a first global interleaving flag associated with the first flip-flop; generating a second global interleaving flag associated with the second flip-flop; sending the first global interleave flag to the first core (110); and sending the second global interleaving flag to the second core (120), Wherein, the global interleaving flag defines the order of the first trigger and the second trigger within the set of geometry processing tasks.

22. A graphics processing system comprising a graphics processing unit according to any one of claims 15 to 21, or configured to perform a method according to any one of claims 1 to 14.

23. A method for manufacturing the graphics processing system according to claim 22 using an integrated circuit manufacturing system, the method comprising the steps of: processing the computer readable description of the graphics processing system using a layout processing system to generate a circuit layout description of an integrated circuit including the graphics processing system; and manufacturing the graphics processing system from the circuit layout description using an integrated circuit generation system.

24. A computer readable medium having computer readable code stored thereon, the computer readable code causing the method according to any one of claims 1 to 14 to be executed when executed.

25. A computer-readable storage medium having stored thereon a computer-readable description of a graphics processing system according to claim 22, wherein when the computer-readable description is processed in an integrated circuit manufacturing system, the integrated circuit manufacturing system performs the following operations: using a layout processing system to process the computer-readable description of the graphics processing system or GPU to generate a circuit layout description of an integrated circuit including the graphics processing system; and using an integrated circuit generation system to manufacture the graphics processing system based on the circuit layout description.

26. An integrated circuit manufacturing system, the integrated circuit manufacturing system being configured to manufacture the graphics processing system according to claim 22, the integrated circuit manufacturing system comprising: a computer-readable storage medium having stored therein a computer-readable description of the graphics processing system; a layout processing system configured to process the computer-readable description to generate a circuit layout description of an integrated circuit including the graphics processing system; and an integrated circuit generation system configured to manufacture the graphics processing system based on the circuit layout description.