Closed Bug 1615633 Opened 6 years ago Closed 3 years ago

WR_FEATURE_TEXTURE_RECT shader compilation fails on GLES

Categories

(Core :: Graphics: WebRender, defect, P3)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jnicol, Assigned: jnicol)

References

Details

Attachments

(1 obsolete file)

If I run webrender with ShaderPrecacheFlags::FULL_COMPILE it tries to compile all shaders, and fails when compiling ones using GL_TEXTURE_RECTANGLE. This is not supported on GLES. We should mark it as such here so that we don't attempt to compile it.

For posterity, this is the error we get:

ERROR 2020-02-18T10:07:08Z: webrender::device::gl: Failed to compile shader: brush_image
0:273(9): error: illegal use of reserved word `sampler2DRect'
0:273(9): error: syntax error, unexpected ERROR_TOK

ERROR 2020-02-18T10:07:08Z: webrender::device::gl: | #elif defined WR_FEATURE_TEXTURE_RECT
ERROR 2020-02-18T10:07:08Z: webrender::device::gl: > uniform sampler2DRect sColor0;
ERROR 2020-02-18T10:07:08Z: webrender::device::gl: | uniform sampler2DRect sColor1;

It is not supported, so running wrench with the --precache flag
fails to compile the texture rect shader variants. Without the
precache flag, webrender does not attempt to use such shaders, so this
is not an issue in the wild.

Should we close this? Looks like the patch is accepted but not landed?

Flags: needinfo?(jnicol)

This was fixed as part of bug 1615633

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(jnicol)
Resolution: --- → FIXED
Attachment #9127228 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: