# US 2023/0267568 A1 · Method and apparatus for buffer sharing

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

- Number: US 2023/0267568 A1
- Document ID: US20230267568A1
- Status: Published application
- Kind: A1
- Application number: 18/162,376
- Filed: 2023-01-31
- Published: 2023-08-24
- Earliest claimed: 2020-04-02
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Zhifang Long; Yejun Guo; Jiang Ji; Yu Wang; Wenju He
- Web page: https://patentgrep.com/patent/US20230267568A1

## CPC

- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5061: {Partitioning or combining of resources}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06T 1/60: Memory management
- G06F 2212/656: Address space sharing
- G06F 2212/657: Virtual address space management
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Embodiments are generally directed to methods and apparatuses for buffer sharing. An embodiment of a method comprises: receiving a plurality of graphics data comprising a first graphics data, each of the plurality of graphics data mapped to a corresponding buffer in a Graphics Processing Unit (GPU) memory, wherein the first graphics data is mapped to a first buffer in the GPU memory; receiving a second graphics data mapped to a second buffer in the GPU memory; comparing the first buffer mapped by the first graphics data with the second buffer mapped by the second graphics data; and remapping the second graphics data to the first buffer if the first buffer is identical with the second buffer.

## Claims

### Claim at position 1

-18. (canceled)

### Claim 19

An apparatus comprising:
a memory to store graphics data; and
a graphics processor coupled to the memory, the graphics processor to:
compare a first buffer mapped by first graphics data with a second buffer mapped by second graphics data;
remap the second graphics data to the first buffer if the first buffer is identical to the second buffer; and
switch a first buffer indicator associated with the first buffer with a second buffer indicator associated with the second buffer, wherein the second buffer is removed from the memory coupled to the graphics processor.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the graphics processor to:
receive a set of graphics data comprising the first graphics data, wherein the set of graphics data is mapped to a corresponding buffer in the graphics memory, wherein the first graphics data is mapped to the first buffer in the graphics memory;
receive the second graphics data mapped to the second buffer in the graphics memory;
compare a first data attribute of the first graphics data with a second data attribute of the second graphics data;
compare a first checksum of the first buffer with a second checksum of the second buffer if the first data attribute of the first graphics data is identical with the second data attribute of the second graphics data; and
compare first content of the first buffer with second content of the second buffer if the first checksum of the first buffer is identical with the second checksum of the second buffer.

### Claim 21 (depends on 19)

The apparatus of claim 19, wherein the buffer indicator of the second buffer is destroyed, and a data indicator of the second graphics data, which is initially bound with the second buffer indicator of the second buffer, is bound with the first buffer indicator of the first buffer after the switching, and wherein the buffer indicator includes a buffer handle to indicate a unique buffer in the graphics memory.

### Claim 22 (depends on 19)

The apparatus of claim 19, wherein the graphics processor to:
increment a count of a first buffer indicator of the first buffer after the remapping;
decrement the count of the first buffer indicator of the first buffer when the second graphics data is removed after the remapping; and
decrement counts of other buffer indicators corresponding to an instance of a graphics application when the instance is ended after the remapping.

### Claim 23

A method comprising:
comparing a first buffer mapped by first graphics data with a second buffer mapped by second graphics data;
remapping the second graphics data to the first buffer if the first buffer is identical to the second buffer; and
switching a first buffer indicator associated with the first buffer with a second buffer indicator associated with the second buffer, wherein the second buffer is removed from a graphics memory associated with a graphics processor of a computing device.

### Claim 24 (depends on 23)

The method of claim 23, further comprising:
receiving a set of graphics data comprising the first graphics data, wherein the set of graphics data is mapped to a corresponding buffer in the graphics memory, wherein the first graphics data is mapped to the first buffer in the graphics memory;
receiving the second graphics data mapped to the second buffer in the graphics memory;
comparing a first data attribute of the first graphics data with a second data attribute of the second graphics data;
comparing a first checksum of the first buffer with a second checksum of the second buffer if the first data attribute of the first graphics data is identical with the second data attribute of the second graphics data; and
comparing first content of the first buffer with second content of the second buffer if the first checksum of the first buffer is identical with the second checksum of the second buffer.

### Claim 25 (depends on 23)

The method of claim 23, wherein the buffer indicator of the second buffer is destroyed, and a data indicator of the second graphics data, which is initially bound with the second buffer indicator of the second buffer, is bound with the first buffer indicator of the first buffer after the switching, and wherein the buffer indicator includes a buffer handle to indicate a unique buffer in the graphics memory.

### Claim 26 (depends on 23)

The method of claim 23, further comprising:
incrementing a count of a first buffer indicator of the first buffer after the remapping;
decrementing the count of the first buffer indicator of the first buffer when the second graphics data is removed after the remapping; and
decrementing counts of other buffer indicators corresponding to an instance of a graphics application when the instance is ended after the remapping.

### Claim 27

At least one computer-readable medium having stored thereon instructions which, when executed, cause a computing device to perform operations comprising:
comparing a first buffer mapped by first graphics data with a second buffer mapped by second graphics data;
remapping the second graphics data to the first buffer if the first buffer is identical to the second buffer; and
switching a first buffer indicator associated with the first buffer with a second buffer indicator associated with the second buffer, wherein the second buffer is removed from the graphics memory associated with a graphics processor of the computing device.

### Claim 28 (depends on 27)

The computer-readable medium of claim 27, wherein the operations further comprise:
receiving a set of graphics data comprising the first graphics data, wherein the set of graphics data is mapped to a corresponding buffer in the graphics memory, wherein the first graphics data is mapped to the first buffer in the graphics memory;
receiving the second graphics data mapped to the second buffer in the graphics memory;
comparing a first data attribute of the first graphics data with a second data attribute of the second graphics data;
comparing a first checksum of the first buffer with a second checksum of the second buffer if the first data attribute of the first graphics data is identical with the second data attribute of the second graphics data; and
comparing first content of the first buffer with second content of the second buffer if the first checksum of the first buffer is identical with the second checksum of the second buffer.

### Claim 29 (depends on 27)

The computer-readable medium of claim 27, wherein the buffer indicator of the second buffer is destroyed, and a data indicator of the second graphics data, which is initially bound with the second buffer indicator of the second buffer, is bound with the first buffer indicator of the first buffer after the switching, and wherein the buffer indicator includes a buffer handle to indicate a unique buffer in the graphics memory.

### Claim 30 (depends on 27)

The computer-readable medium of claim 27, wherein the operations further comprise:
incrementing a count of a first buffer indicator of the first buffer after the remapping;
decrementing the count of the first buffer indicator of the first buffer when the second graphics data is removed after the remapping; and
decrementing counts of other buffer indicators corresponding to an instance of a graphics application when the instance is ended after the remapping.
