# US 2021/0174571 A1 · Kernel software driven color remapping of rendered primary surfaces

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

- Number: US 2021/0174571 A1
- Document ID: US20210174571A1
- Status: Published application
- Kind: A1
- Application number: 16/712,771
- Filed: 2019-12-12
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: Advanced Micro Devices, Inc.; ATI Technologies ULC
- Applicants: Advanced Micro Devices, Inc.; ATI Technologies ULC
- Inventors: Jason Wen-Tse Wu; Parimalkumar Patel; Jia Hui Li; Chao Zhan
- Web page: https://patentgrep.com/patent/US20210174571A1

## CPC

- G06T 15/04: Texture mapping
- G06F 9/3877: {using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12)}
- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 16/9017: {using directory or table look-up (use of a directory or look-up table in file systems G06F16/13)}
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G09G 3/36: using liquid crystals
- G09G 5/10: Intensity circuits
- G09G 5/399: using two or more bit-mapped memories, the operations of which are switched in time, e.g. ping-pong buffers
- G09G 2320/0252: Improving the response speed
- G09G 2340/10: Mixing of images, i.e. displayed pixel being the result of an operation, e.g. adding, on the corresponding input pixels
- G09G 2340/14: Solving problems related to the presentation of information to be displayed
- G09G 2340/16: Determination of a pixel data signal depending on the signal applied in the previous frame
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

Systems, apparatuses, and methods for implementing kernel software driven color remapping of rendered primary surfaces are disclosed. A system includes at least a general processor, a graphics processor, and a memory. The general processor executes a user-mode application, a user-mode driver, and a kernel-mode driver. A primary surface is rendered on the graphics processor on behalf of the user-mode application. The primary surface is stored in memory locations allocated for the primary surface by the user-mode driver and the kernel-mode driver is notified when the primary surface is ready to be displayed. Rather than displaying the primary surface, the kernel-mode driver causes the pixels of the primary surface to be remapped on the graphics processor using a selected lookup table (LUT) so as to generate a remapped surface which stored in memory locations allocated for the remapped surface by the user-mode driver. Then, the remapped surface is displayed.

## Claims

### Claim 1

A system comprising:
a memory subsystem; and
a first processor coupled to the memory subsystem, wherein the first processor is configured to:
detect an indication that rendering of a surface of a first size is being initiated;
allocate an amount of memory in the memory subsystem for storing at least two surfaces of the first size responsive to detecting the indication;
cause a first surface to be rendered and stored in a first portion of the allocated memory;
cause the first surface to be remapped with a selected lookup table (LUT) to generate a second surface which is stored in a second portion of the allocated memory; and
cause the second surface to be driven to a display.

### Claim 2 (depends on 1)

The system as recited in claim 1, wherein the first processor is further configured to:
execute a user-mode driver to allocate memory in the memory subsystem for two surfaces;
execute a first user application to cause the first surface to be rendered and stored in the first half of the allocated memory;
execute a kernel-mode driver to cause the first surface to be remapped with the selected LUT to generate the second surface which is stored in the second half of the allocated memory; and
execute the kernel-mode driver to cause the second surface to be driven to the display.

### Claim 3 (depends on 2)

The system as recited in claim 2, wherein the first processor is further configured to execute a second user application which provides, to the kernel-mode driver, an index which identifies the selected LUT for remapping the first surface.

### Claim 4 (depends on 2)

The system as recited in claim 2, wherein executing the kernel-mode driver causes a plurality of shaders to be launched on a second processor for remapping the first surface with the selected LUT to generate the second surface.

### Claim 5 (depends on 2)

The system as recited in claim 2, wherein the first processor is further configured to execute the kernel-mode driver to delay a flip of frame buffers responsive to receiving a flip request with respect to the first surface.

### Claim 6 (depends on 5)

The system as recited in claim 5, wherein the first processor is further configured to cause the frame buffers to flip responsive to generation of the second surface completing.

### Claim 7 (depends on 1)

The system as recited in claim 1, wherein the first surface is a composite frame comprising a plurality of pixels.

### Claim 8

A method comprising:
detecting, by a first processor, an indication that rendering of a surface of a first size is being initiated;
allocating an amount of memory in the memory subsystem for storing two surfaces of the first size responsive to detecting the indication;
causing a first surface to be rendered and stored in a first half of the allocated memory;
causing the first surface to be remapped with a selected lookup table (LUT) to generate a second surface which is stored in a second half of the allocated memory; and
causing the second surface to be driven to a display.

### Claim 9 (depends on 8)

The method as recited in claim 8, further comprising:
executing, by a first processor, a user-mode driver to allocate memory in a memory subsystem for two surfaces;
executing the first user application to cause the first surface to be rendered and stored in the first half of the allocated memory;
executing a kernel-mode driver to cause the first surface to be remapped with the selected LUT to generate the second surface which is stored in the second half of the allocated memory; and
executing the kernel-mode driver to cause the second surface to be driven to the display.

### Claim 10 (depends on 9)

The method as recited in claim 9, further comprising executing a second user application which provides, to the kernel-mode driver, an index which identifies the selected LUT for remapping the first surface.

### Claim 11 (depends on 9)

The method as recited in claim 9, wherein executing the kernel-mode driver causes a plurality of shaders to be launched on a second processor for remapping the first surface with the selected LUT to generate the second surface.

### Claim 12 (depends on 9)

The method as recited in claim 9, further comprising executing the kernel-mode driver to delay a flip of frame buffers responsive to receiving a flip request with respect to the first surface.

### Claim 13 (depends on 12)

The method as recited in claim 12, further comprising causing the frame buffers to flip responsive to generation of the second surface completing.

### Claim 14 (depends on 8)

The method as recited in claim 8, wherein the first surface is a composite frame comprising a plurality of pixels.

### Claim 15

An apparatus comprising:
a first processor configured to:
detect an indication that rendering of a surface of a first size is being initiated;
allocate an amount of memory in the memory subsystem for storing two surfaces of the first size responsive to detecting the indication; and
a second processor configured to:
render and store the first surface in a first half of the allocated memory;
remap the first surface with a selected lookup table (LUT) to generate a second surface;
store the second surface in a second half of the allocated memory; and
drive the second surface to a display.

### Claim 16

An apparatus comprising, wherein the first processor is further configured to:
execute a user-mode driver to allocate memory for two surfaces responsive to receiving, from a first user application, a request to render a single surface to be displayed;
execute the first user application to cause the first surface to be rendered; and
execute a kernel-mode driver to cause the first surface to be remapped with the selected LUT to generate the second surface.

### Claim 17 (depends on 16)

The apparatus as recited in claim 16, wherein the first processor is further configured to execute a second user application which provides, to the kernel-mode driver, an index which identifies the selected LUT for remapping the first surface.

### Claim 18 (depends on 16)

The apparatus as recited in claim 16, wherein the first processor is further configured to execute the kernel-mode driver to delay a flip of frame buffers responsive to receiving a flip request with respect to the first surface.

### Claim 19 (depends on 18)

The apparatus as recited in claim 18, wherein the first processor is further configured to cause the frame buffers to flip responsive to generation of the second surface completing.

### Claim 20 (depends on 15)

The apparatus as recited in claim 15, wherein the first surface is a composite frame comprising a plurality of pixels.
