Page MenuHome

Fix T103412: Resolve selection outline rendering with Metal backend on AMD.
ClosedPublic

Authored by Jason Fielder (jason_apple) on Jan 6 2023, 3:44 PM.

Details

Summary

AMD GPUs do not appear to produce consistent results with other GPUs when using textureGather in the Metal backend. Disabling for now to ensure correct function of outline rendering.

This may require an additional sub-pixel offset in the texture sampling calls, to achieve correct behaviour.

Authored by Apple: Michael Parkin-White

Ref T103412
Ref T96261

Diff Detail

Repository
rB Blender

Event Timeline

Jason Fielder (jason_apple) requested review of this revision.Jan 6 2023, 3:44 PM
Jason Fielder (jason_apple) created this revision.
Clément Foucault (fclem) requested changes to this revision.Jan 7 2023, 5:15 PM

Fine with the approach. Just suggesting a better codestyle.

source/blender/gpu/metal/mtl_shader_generator.mm
584–592

And make the string not const. Keep it easier to read.

This revision now requires changes to proceed.Jan 7 2023, 5:15 PM
This revision is now accepted and ready to land.Mon, Jan 16, 1:34 AM
NOTE: This should not have any direct dependencies and should be able to land directly in master. As there are changes to mtl_shader_generator.mm, Viewport compositor compute patch and GLSL translation optimization patches will likely need rebasing after this has landed.