Closed Bug 1722640 Opened 3 years ago Closed 3 years ago

Warnings in WR shader

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1691761

People

(Reporter: fabrice, Unassigned)

Details

I saw these warnings, running on linux x86_64:

[2021-07-28T00:57:11Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aClipRect_TL", count: 4, kind: F32 } is not found in the shader cs_clip_rectangle. Expected at 8, found at -1
[2021-07-28T00:57:11Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aClipRect_TR", count: 4, kind: F32 } is not found in the shader cs_clip_rectangle. Expected at 10, found at -1
[2021-07-28T00:57:11Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aClipRect_BL", count: 4, kind: F32 } is not found in the shader cs_clip_rectangle. Expected at 12, found at -1
[2021-07-28T00:57:11Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aClipRect_BR", count: 4, kind: F32 } is not found in the shader cs_clip_rectangle. Expected at 14, found at -1

I think this is probably because the WR_FEATURE_FAST_PATH variant of that shader still declares these attributes even though they're not used. Tweaking the usage of #ifdef in this shader should allow us to remove those warnings.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.