Graphics library extensions

US11676321B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11676321-B2
Application numberUS-202016915340-A
CountryUS
Kind codeB2
Filing dateJun 29, 2020
Priority dateJun 8, 2012
Publication dateJun 13, 2023
Grant dateJun 13, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and system for performing graphics processing is provided. The method and system includes storing stencil buffer values in a stencil buffer; generating either or both of a reference value and a source value in a fragment shader; comparing the stencil buffer values against the reference value; and processing a fragment based on the comparing the stencil buffer values against the reference value.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for graphics processing, comprising: storing stencil buffer values in a stencil buffer; generating a reference value in a fragment shader; comparing the stencil buffer values against the reference value generated by processing a fragment based on the comparing; and operating on the stencil buffer values based on a combination of the stored stencil buffer values, the reference value, and the source value, the operating including modifying the stencil buffer based on one of the reference value or the source value using an operation selection value that selects one of the source value and the reference value for the operating, wherein the operating includes any one or a combination of: keeping a stencil buffer value; setting a stencil buffer value to zero; setting a stencil buffer value to a maximum representable value; replacing a stencil buffer value with the reference value; replacing a stencil buffer value with the source value; incrementing a stencil buffer value by the source value with saturation; decrementing a stencil buffer value by the source value with saturation; bitwise inverting a stencil buffer value; incrementing a stencil buffer value by the source value without saturation such that decrementing the stencil buffer value causes a result of the operation to be masked by a number of bits representable by the stencil buffer; decrementing a stencil buffer value by the source value without saturation; logically ANDing a stencil buffer value and the source value; logically XORing a stencil buffer value and the source value; logically ORing a stencil buffer value and the source value; logically NORing a stencil buffer value and the source value; logically XORing a stencil buffer value and the source value; and replacing a stencil buffer value with a logically inverted result of logically XORing a stencil buffer value and the source value; and logically NANDing a stencil buffer value and the source value. 2. The method of claim 1 , wherein incrementing and decrementing with saturation clamps the stencil buffer value between 0 and the maximum representable value. 3. The method of claim 1 , wherein decrementing without saturation is performed such that decrementing the stencil buffer value causes the result of the operation to be masked by a number of bits representable by the stencil buffer. 4. The method of claim 1 , wherein the stencil buffer values are unsigned integers. 5. The method of claim 1 , wherein the processing includes discarding the fragment. 6. A system, comprising: a stencil buffer configured to store stencil buffer values; and a processor configured to: generate a reference value in a fragment shader; compare the stencil buffer values against the reference value generated by the fragment shader or a source value supplied by an application; process a fragment based on the comparing; and operate on the stencil buffer values based on a combination of the stored stencil buffer values, the reference value, and the source value, the operating including modifying the stencil buffer based on one of the reference value or the source value using an operation selection value that selects one of the source value and the reference value for the operating, wherein the operating includes any one or a combination of the following operations: keeping a stencil buffer value; setting a stencil buffer value to zero; setting a stencil buffer value to a maximum representable value; replacing a stencil buffer value with the reference value; replacing a stencil buffer value with the source value; incrementing a stencil buffer value by the source value with saturation; decrementing a stencil buffer value by the source value with saturation; bitwise inverting a stencil buffer value; incrementing a stencil buffer value by the source value without saturation such that incrementing the stencil buffer value causes a result of the operation to be masked by a number of bits representable by the stencil buffer; decrementing a stencil buffer value by the source value without saturation such that decrementing the stencil buffer value causes the result of the operation to be masked by a number of bits representable by the stencil buffer; logically ANDing a stencil buffer value and the source value; logically XORing a stencil buffer value and the source value; logically ORing a stencil buffer value and the source value; logically NORing a stencil buffer value and the source value; logically XORing a stencil buffer value and the source value; and replacing a stencil buffer value with a logically inverted result of logically XORing a stencil buffer value and the source value; and logically NANDing a stencil buffer value and the source value. 7. The system of claim 6 , wherein incrementing and decrementing with saturation clamps the stencil buffer value between 0 and the maximum representable value. 8. The system of claim 6 , wherein decrementing without saturation is performed such that decrementing the stencil buffer value causes the result of the operation to be masked by a number of bits representable by the stencil buffer. 9. The system of claim 6 , wherein the stencil buffer values are unsigned integers. 10. The system of claim 6 , wherein the processing includes discarding the fragment.

Assignees

Inventors

Classifications

  • Processor architectures; Processor configuration, e.g. pipelining · CPC title

  • Shading · CPC title

  • Texture mapping · CPC title

  • G06T15/005Primary

    General purpose rendering architectures · CPC title

  • Filling planar surfaces by adding surface attributes, e.g. adding colours or textures · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11676321B2 cover?
A method and system for performing graphics processing is provided. The method and system includes storing stencil buffer values in a stencil buffer; generating either or both of a reference value and a source value in a fragment shader; comparing the stencil buffer values against the reference value; and processing a fragment based on the comparing the stencil buffer values against the referen…
Who is the assignee on this patent?
Advanced Micro Devices Inc
What technology area does this patent fall under?
Primary CPC classification G06T15/005. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jun 13 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).