Set a max-resource-size limit for WebGL resources

NEW
Unassigned

Status

()

P3
normal
3 years ago
2 years ago

People

(Reporter: jgilbert, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [gfx-noted])

(Reporter)

Description

3 years ago
MAX_TEXTURE_SIZE and friends don't really capture what we want. MAX_TEXTURE_SIZE, if it allows 1024x16384 textures, also allows 16384x16384 to be requested. While this may cause a GL_OOM, it doesn't always. Sometimes the driver will thrash around trying to defragment enough memory to provide for an unreasonable request like this.

We should mime D3D's resource limit formula, and unconditionally generate GL_OOM for anything above that.
You need to log in before you can comment on or make changes to this bug.