Skip to content

nir/format_convert: handle clamping smaller bit sizes

Alyssa Rosenzweig requested to merge alyssa/mesa:nir/fmtcvt into main

asahi will pass in 16bits, works fine if we convert before clamping. note we don't try to be clever and make a smaller immediate because it would require extra logic for negatives to make sure we don't have garbage in upper bits (nir_validate checks that). do the simple, obviously correct thing.

Merge request reports