| CPC G06F 9/5027 (2013.01) [G06F 9/4843 (2013.01)] | 20 Claims |

|
1. A method of operating a data processing system that comprises a host processor and a processing resource operable to execute data processing tasks for applications executing on the host processor, the method comprising:
preparing, on the host processor, in response to receiving a request for data processing to be executed by the processing resource from an application executing on the host processor, a command stream layout, the command stream layout indicating a sequence of commands for a command stream for execution by the processing resource to cause the processing resource to execute processing tasks for the application, wherein preparing the command stream layout comprises the host processor generating one or more indicators of command stream generation work that is to be executed by the processing resource to populate the command stream corresponding to the command stream layout for execution by the processing resource, wherein the one or more indicators trigger the processing resource to execute command stream generation work to generate command stream data for inclusion into the command stream corresponding to the command stream layout;
providing, by the host processor, the command stream layout and the one or more indicators of command stream generation work to the processing resource;
storing, by the processing resource, a command stream corresponding to the command stream layout in a command stream buffer for execution; and
executing, by the processing resource and corresponding to the command stream layout, the commands in the command stream from within the command stream buffer to execute processing tasks for the application, wherein the storing comprises:
in response to the processing resource receiving the one or more indicators from the host processor:
executing, by the processing resource, the indicated command stream generation work to generate command stream data for inclusion into the command stream; and
writing, by the processing resource, the generated command stream data into the command stream in the command stream buffer corresponding to the command stream layout for execution by the processing resource.
|