Skip to content

intel/vulkan/grl: add some validation that we're not going to overflow

Dylan Baker requested to merge dbaker/mesa:submit/grl-assume-bitfield into main

What does this MR do and why?

intel/vulkan/grl: add some validation that we're not going to overflow

Coverity has spotted a place where we could in theory overflow. In
reality it wont happen as the potential overflow is a bitfield with a
maximum of two values. Add an `assume()` statement to help out the
compiler and document our assumption.

fixes: dc1aedef2bd054884685ad971a3ef5be07ecd101

Merge request reports