Skip to content

panfrost: Don't copy uniforms when the size is zero

Icecream95 requested to merge icecream95/mesa:zero-uniforms into master

This fixes a crash for debug builds when using Gallium HUD with QuakeSpasm when gamma correction shaders (a QuakeSpasm feature, not part of Mesa) are used.

There is probably a bug somewhere causing this but I think there is an argument to be made that having a uniform set of zero bytes is valid, so this is a feature, not a bug.

Merge request reports

Loading