tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5a7797f073eb9796f546468aa30085d420627777
parent 9b8d38ca2d35f64b726b89b138eaa945bd02271f
Author: Nicolas Silva <nical@fastmail.com>
Date:   Tue,  9 Dec 2025 08:19:07 +0000

Bug 2004043 - Update the quad gpu data diagram. r=gfx-reviewers,jnicol

Differential Revision: https://phabricator.services.mozilla.com/D275067

Diffstat:
Mgfx/wr/webrender/res/ps_quad.glsl | 29+++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/gfx/wr/webrender/res/ps_quad.glsl b/gfx/wr/webrender/res/ps_quad.glsl @@ -10,20 +10,21 @@ /// ///```ascii /// (int gpu buffer) -/// +---------------+ (float gpu buffer) -/// (instance-step vertex attr) | Int header | +-----------+ -/// +-----------------------------+ | | | Transform | -/// | Quad instance (uvec4) | +--> | transform id +--> +-----------+ -/// | | | | z id | -/// | x: int prim address +---+ +---------------+ (float gpu buffer) -/// | y: float prim address +--------------------------> +-----------+--------------+-+-+ -/// | z: quad flags | (float gpu buffer) | Quad Prim | Quad Segment | | | -/// | edge flags | +--------------------+ | | | | | -/// | part index | | Picture task | | bounds | rect | | | -/// | segment index | | | | clip | uv rect | | | -/// | w: picture task address +--> | task rect | | color | | | | -/// +-----------------------------+ | device pixel scale | +-----------+--------------+-+-+ -/// | content origin | +/// +------------------+ +/// |Int header (ivec4)| (float gpu buffer) +/// (instance-step vertex attr) | | +-----------+ +/// +-----------------------------+ | x: transform id +--> | Transform | +/// | Quad instance (uvec4) | +--> | y: z id | +-----------+ +/// | | | | zw: pattern data | +/// | x: int prim address +---+ +------------------+ (float gpu buffer) +/// | y: float prim address +--------------------------> +-------------------+--------------+-+-+ +/// | z: quad flags | (float gpu buffer) | Quad Prim | Quad Segment | | | +/// | edge flags | +--------------------+ | | | | | +/// | part index | | Picture task | | bounds | rect | | | +/// | segment index | | | | clip | uv rect | | | +/// | w: picture task address +--> | task rect | | pattern transform | | | | +/// +-----------------------------+ | device pixel scale | | color | | | | +/// | content origin | +-------------------+--------------+-+-+ /// +--------------------+ /// /// To use the quad infrastructure, a shader must define the following entry