Closed Bug 1617976 Opened 5 years ago Closed 5 years ago

Are we still uploading the dithering texture?

Categories

(Core :: Graphics: WebRender, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mstange, Unassigned)

References

(Blocks 2 open bugs)

Details

Profile: https://perfht.ml/32p8PsU

My impression was that gradient dithering has been turned off. However, I can see upload_texture_immediate being called from Renderer::new in the profile. There's one call to upload_texture_immediate in the function that I can see and it's uploading the dithering texture. Is this being hit or is the upload in the profile from a different call that's inlined into Renderer::new somehow?

Blocks: 1617979
Flags: needinfo?(gwatson)

The linked upload call is inside a if options.enable_dithering { branch, so it shouldn't be getting uploaded.

Which suggests either gradient dithering is enabled in that build (unlikely) or it's a different upload. TextureResolver::new (which is called from Renderer::new) does upload a 1x1 dummy texture - perhaps you're seeing that?

Flags: needinfo?(gwatson)

To expand on the above, that dummy texture is bound in some cases (I think the input textures in the first pass?) to keep some drivers / GPUs happy that there was no texture bound previously.

I see, yeah it might be the 1x1 dummy texture. Thanks!

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