Graphics processing
AssigneeArm Limited
InventorsRafal Stepuch, Philip Carlos Garcia, Wing-Tsi Henry Wong
Life of this patent
Estimating the term…
Abstract
Disclosed herein are techniques for storing primitive state data associated with primitives within a sequence of primitives using variable format commands in which the command format that is used is selected based on which properties (attributes) are enabled for the sequence of primitives in question. Thus, a same opcode command can be used to store different types of state data corresponding to different ones of the properties (attributes) that can be enabled for a sequence of primitives based on which properties (attributes) are actually enabled for the sequence of primitives in question.
Claims21
A method of processing data for use by a graphics processor when generating a render output, the method comprising:
- processing one or more sequences of primitives to produce, for respective sets of primitives within the one or more sequences of primitives, respective data structures storing data to be used when rendering the respective set of primitives to which the data structure relates,
- wherein a respective data structure for a given set of primitives comprises one or more sequences of commands, each sequence of commands corresponding to a respective one of the sequences of primitives being processed, and each sequence of commands including a respective set of primitive type commands for storing data identifying individual primitives that are to be rendered for the region of the render output to which the data structure relates and further including one or more state type commands for storing state data associated with respective processing operations to be performed when rendering those primitives,
- wherein a particular type of state command is operable and configured to variably store different types of state data relating to a certain set of properties that can be selectively enabled for a given sequence of primitives based on which of those properties are enabled for the sequence of primitives to which that state data relates,
- the method thus further comprising:
- for a sequence of primitives for which a corresponding sequence of commands is to be included into a respective data structure:
- determining, based on which one or more properties of the certain set of properties that can be selectively enabled for a given sequence of primitives are enabled for the sequence of primitives, a respective command format for such particular type of state command that is to be used for the sequence of commands corresponding to that sequence of primitives.
A method of processing data for use by a graphics processor when generating a render output, the method comprising:
- obtaining, for a set of primitives, a respective data structure storing data to be used when rendering the respective set of primitives to which the data structure relates,
- the respective data structure comprising one or more sequences of commands, each sequence of commands corresponding to a respective sequence of primitives to be processed for the render output, and each sequence of commands including a respective set of primitive type commands for storing data identifying individual primitives that are to be rendered for the region of the render output to which the data structure relates and further including one or more state type commands for storing state data associated with respective processing operations to be performed when rendering those primitives,
- wherein a particular type of state command is operable and configured to variably store different types of state data relating to a certain set of properties that can be selectively enabled for a given sequence of primitives based on which of those properties are enabled for the sequence of primitives to which that state data relates,
- the method thus further comprising:
- determining a respective command format for such particular type of state command that is to be used for a respective sequence of primitives for which a corresponding sequence of commands is included into the data structure;
- and
- when decoding the corresponding sequence of commands for the sequence of primitives, in response to encountering such particular type of state command, decoding that particular type of state command according to the determined command format for that sequence of primitives.
A method of operating a graphics processor to generate a render output in which the render output is sub-divided into a plurality of tiles for rendering, the method comprising:
- performing a first, geometry sorting pass to sort one or more sequences of primitives to be processed for the render output, the first, geometry sorting pass processing the one or more sequences of primitives to produce, for respective regions of the render output, corresponding data structures identifying respective sets of primitives that are to be rendered for the region of the render output to which the data structure relates,
- wherein a data structure produced by the first, geometry sorting pass for a respective region of the render output comprises one or more sequences of commands, each sequence of commands corresponding to a respective one of the sequences of primitives to be processed for the render output, and each sequence of commands including a respective set of primitive type commands for storing data identifying individual primitives that are to be rendered for the region of the render output to which the data structure relates and further including one or more state type commands for storing state data associated with respective processing operations to be performed when rendering those primitives,
- wherein there is a set of different available command types that can be included into the data structure for storing different types of data, and
- wherein the set of different available command types includes a particular type of state command that is operable and configured to variably store different types of state data relating to a certain set of properties that can be selectively enabled for a given sequence of primitives based on which of those properties are enabled for the sequence of primitives to which that state data relates;
- the method further comprising:
- thereafter performing a second, rendering pass to render the tiles into which the render output is sub-divided for rendering, wherein the second, rendering pass uses the data structures produced by the first, geometry sorting operation to determine which primitives within the sequence of primitives to render for which tiles,
- whereby for a tile to be rendered,
- the method comprises:
- obtaining a respective data structure relating to a region of the render output encompassed by that tile and decoding the commands within the respective data structure to determine the primitive data and associated state data to be used when rendering that tile,
- wherein when such a particular type of state command is encountered within the data structure, the particular type of state command is decoded based on which of the one or more properties of the set of properties that can be selectively enabled for a sequence of primitives are enabled for the sequence of primitives to which that particular type of state command relates.
A graphics processing system including a graphics processor that is operable to generate a render output in which the render output is sub-divided into a plurality of tiles for rendering, the graphics processor comprising:
- a geometry sorting circuit that is operable and configured to sort one or more sequences of primitives to be processed for the render output, the first, geometry sorting pass processing the one or more sequences of primitives to produce, for respective regions of the render output, corresponding data structures identifying respective sets of primitives that are to be rendered for the region of the render output to which the data structure relates,
- wherein a data structure produced by the first, geometry sorting pass for a respective region of the render output comprises one or more sequences of commands, each sequence of commands corresponding to a respective one of the sequences of primitives to be processed for the render output, and each sequence of commands including a respective set of primitive type commands for storing data identifying individual primitives that are to be rendered for the region of the render output to which the data structure relates and further including one or more state type commands for storing state data associated with respective processing operations to be performed when rendering those primitives,
- wherein there is a set of different available command types that can be included into the data structure for storing different types of data, and
- wherein the set of different available command types includes a particular type of state command that is operable and configured to variably store different types of state data relating to a certain set of properties that can be selectively enabled for a given sequence of primitives based on which of those properties are enabled for the sequence of primitives to which that state data relates;
- and
- a rendering circuit that is operable and configured to render the tiles into which the render output is sub-divided for rendering, wherein the rendering circuit includes a reading circuit that is configured to read in data structures produced by the geometry sorting circuit to determine which primitives within the sequence of primitives to render for which tiles,
- whereby for a tile to be rendered,
- the reading circuit is configured to:
- obtain a respective data structure relating to a region of the render output encompassed by that tile and decode the commands within the respective data structure to determine the primitive data and associated state data to be used when rendering that tile,
- wherein when such a particular type of state command is encountered within the data structure, the reading circuit decodes the particular type of state command based on which of the one or more properties of the set of properties that can be selectively enabled for a sequence of primitives are enabled for the sequence of primitives to which that particular type of state command relates.
Dependencies are inferred from the claim text.