# US 2016/0364828 A1 · Facilitating dynamic runtime transformation of graphics processing commands for improved graphics performance at computing devices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0364828 A1
- Document ID: US20160364828A1
- Status: Published application
- Kind: A1
- Application number: 14/738,679
- Filed: 2015-06-12
- Published: 2016-12-15
- Earliest claimed: 2015-06-12
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: James A. Valerio; Abhishek Venkatesh; Satyajit Sarangi; Michael Apodaca; Thomas F. Raoux; Hashem Hashemi; Rama S.B. Harihara
- Web page: https://patentgrep.com/patent/US20160364828A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 9/30178: {of compressed or encrypted instructions}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism is described for facilitating dynamic runtime transformation of graphics processing commands for improved graphics performance on computing devices. A method of embodiments, as described herein, includes detecting a command stream associated with an application, where the command stream includes dispatches. The method may further include evaluating processing parameters relating to each of the dispatches, where evaluating further includes associating a first plan with one or more of the dispatches to transform the command stream into a transformed command stream. The method may further include associating, based on the first plan, a second plan to the one or more of the dispatches, where the second plan represents the transformed command stream. The method may further include executing the second plan, where execution of the second plan includes processing the transformed command stream in lieu of the command stream.

## Claims

### Claim 1

An apparatus comprising:
reception/detection logic to detect a command stream associated with an application, wherein the command stream includes dispatches;
evaluation logic to evaluate processing parameters relating to each of the dispatches, wherein the evaluation logic is further to associate a first plan with one or more of the dispatches to transform the command stream into a transformed command stream;
building/mapping logic to associate, based on the first plan, a second plan to the one or more of the dispatches, wherein the second plan represents the transformed command stream; and
execution/application logic to execute the second plan, wherein execution of the second plan includes processing the transformed command stream in lieu of the command stream.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the first plan comprises an optimization plan, and wherein the second plan comprises an intermediary plan.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the command stream issued by the application is received at a graphics driver of a graphics processing unit (GPU), and wherein the transformed command stream is executed at the GPU via the graphics driver, wherein the application represents a workload having a plurality of frames, and wherein a dispatch represents a work unit of the workload such that the work unit represents a portion of an image represented a corresponding frame.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the command stream corresponds to a kernel of the application, wherein the first plan is further to transform the kernel into a transformed kernel having instructions corresponding to the transformed command stream.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processing parameters comprise one or more characteristics relating to execution of the command stream, wherein the one or more characteristics include at least one of size of the dispatches, processing order of the dispatches, number of threads in a group of threads associated with each dispatch, number of groups of threads associated with each dispatch, memory usage, cache usage, bottlenecking locations or reasons, amounts and types and frequencies of hardware allocation, compression format types, shader constraints, and shader execution dispatch width.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein transforming the command stream into the transformed command stream comprises at least one of changing processing orders of the dispatches, resizing the dispatches, building dependency graphs relating to the dispatches, and mapping one or more of the dispatches from a main memory to a local cache, wherein mapping includes remapping read commands or write commands associated with the one or more of the dispatches from the main memory to the local cache.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein resizing the dispatches comprises increasing a number of the dispatches by merging smaller of the dispatches into bigger dispatches, or reducing the number of the dispatches by breaking bigger of the dispatches into smaller dispatches.

### Claim 8 (depends on 1)

The apparatus of claim 1, further comprising a database to store one or more of the command stream, the transformed command stream, the first plan, and the second plan, wherein the database includes a Cloud-based storage accessible over one or more networks.

### Claim 9

A method comprising:
detecting a command stream associated with an application, wherein the command stream includes dispatches;
evaluating processing parameters relating to each of the dispatches, wherein evaluating further includes associating a first plan with one or more of the dispatches to transform the command stream into a transformed command stream;
associating, based on the first plan, a second plan to the one or more of the dispatches, wherein the second plan represents the transformed command stream; and
executing the second plan, wherein execution of the second plan includes processing the transformed command stream in lieu of the command stream.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first plan comprises an optimization plan, and wherein the second plan comprises an intermediary plan.

### Claim 11 (depends on 9)

The method of claim 9, wherein the command stream issued by the application is received at a graphics driver of a graphics processing unit (GPU), and wherein the transformed command stream is executed at the GPU via the graphics driver, wherein the application represents a workload having a plurality of frames, and wherein a dispatch represents a work unit of the workload such that the work unit represents a portion of an image represented a corresponding frame.

### Claim 12 (depends on 9)

The method of claim 9, wherein the command stream corresponds to a kernel of the application, wherein the first plan is further to transform the kernel into a transformed kernel having instructions corresponding to the transformed command stream.

### Claim 13 (depends on 9)

The method of claim 9, wherein the processing parameters comprise one or more characteristics relating to execution of the command stream, wherein the one or more characteristics include at least one of size of the dispatches, processing order of the dispatches, number of threads in a group of threads associated with each dispatch, number of groups of threads associated with each dispatch, memory usage, cache usage, bottlenecking locations or reasons, amounts and types and frequencies of hardware allocation, compression format types, shader constraints, and shader execution dispatch width.

### Claim 14 (depends on 9)

The method of claim 9, wherein transforming the command stream into the transformed command stream comprises at least one of changing processing orders of the dispatches, resizing the dispatches, building dependency graphs relating to the dispatches, and mapping one or more of the dispatches from a main memory to a local cache, wherein mapping includes remapping read commands or write commands associated with the one or more of the dispatches from the main memory to the local cache.

### Claim 15 (depends on 14)

The method of claim 14, wherein resizing the dispatches comprises increasing a number of the dispatches by merging smaller of the dispatches into bigger dispatches, or reducing the number of the dispatches by breaking bigger of the dispatches into smaller dispatches.

### Claim 16 (depends on 9)

The method of claim 9, further comprising storing, at a database, one or more of the command stream, the transformed command stream, the first plan, and the second plan, wherein the database includes a Cloud-based storage accessible over one or more networks.

### Claim 17

At least one machine-readable medium comprising a plurality of instructions, executed on a computing device, to facilitate the computing device to perform one or more operations comprising:
detecting a command stream associated with an application, wherein the command stream includes dispatches;
evaluating processing parameters relating to each of the dispatches, wherein evaluating further includes associating a first plan with one or more of the dispatches to transform the command stream into a transformed command stream;
associating, based on the first plan, a second plan to the one or more of the dispatches, wherein the second plan represents the transformed command stream; and
executing the second plan, wherein execution of the second plan includes processing the transformed command stream in lieu of the command stream.

### Claim 18 (depends on 17)

The machine-readable medium of claim 17, wherein the first plan comprises an optimization plan, and wherein the second plan comprises an intermediary plan.

### Claim 19 (depends on 17)

The machine-readable medium of claim 17, wherein the command stream issued by the application is received at a graphics driver of a graphics processing unit (GPU), and wherein the transformed command stream is executed at the GPU via the graphics driver, wherein the application represents a workload having a plurality of frames, and wherein a dispatch represents a work unit of the workload such that the work unit represents a portion of an image represented a corresponding frame.

### Claim 20 (depends on 17)

The machine-readable medium of claim 17, wherein the command stream corresponds to a kernel of the application, wherein the first plan is further to transform the kernel into a transformed kernel having instructions corresponding to the transformed command stream.

### Claim 21 (depends on 17)

The machine-readable medium of claim 17, wherein the processing parameters comprise one or more characteristics relating to execution of the command stream, wherein the one or more characteristics include at least one of size of the dispatches, processing order of the dispatches, number of threads in a group of threads associated with each dispatch, number of groups of threads associated with each dispatch, memory usage, cache usage, bottlenecking locations or reasons, amounts and types and frequencies of hardware allocation, compression format types, shader constraints, and shader execution dispatch width.

### Claim 22 (depends on 17)

The machine-readable medium of claim 17, wherein transforming the command stream into the transformed command stream comprises at least one of changing processing orders of the dispatches, resizing the dispatches, building dependency graphs relating to the dispatches, and mapping one or more of the dispatches from a main memory to a local cache, wherein mapping includes remapping read commands or write commands associated with the one or more of the dispatches from the main memory to the local cache.

### Claim 23 (depends on 22)

The machine-readable medium of claim 22, wherein resizing the dispatches comprises increasing a number of the dispatches by merging smaller of the dispatches into bigger dispatches, or reducing the number of the dispatches by breaking bigger of the dispatches into smaller dispatches.

### Claim 24 (depends on 17)

The machine-readable medium of claim 17, wherein the one or more operations further comprise storing, at a database, one or more of the command stream, the transformed command stream, the first plan, and the second plan, wherein the database includes a Cloud-based storage accessible over one or more networks.
