Page MenuHome

Fix unused fb slot problem of some bugged AMD GPUs

Authored by Germano Cavalcante (mano-wii) on Dec 5 2018, 6:55 PM.



The function describes everything.
On some bugged AMD GPUs, if there is an empty color slot between the color slots, all textures after this slot are apparently skipped/discarded.

A user already reported a similar issue on an AMD forum:

Diff Detail

rB Blender

Event Timeline

Clément Foucault (fclem) requested changes to this revision.Dec 5 2018, 10:53 PM

After fixing the integer underflow it does not crash here.


GPUAttachmentType is unsigned (at least here on linux) so it cannot go negative and just provoke integer underflow.

This revision now requires changes to proceed.Dec 5 2018, 10:53 PM
  • fix integer underflow;
This revision is now accepted and ready to land.Dec 5 2018, 11:30 PM
This revision was automatically updated to reflect the committed changes.