Skip to content

gallivm: fix texture-mapping with 16-bit result

Erik Faye-Lund requested to merge kusma/mesa:lp-int16-sampling into main

16bit integer support also implies using 16-bit results when sampling textures.

Because we're returning the results in float SSA values instead of int, we need to bitcast back to integers before truncating the values.

Fixes: 00ff60f7 ("gallivm: add 16-bit integer support")

Merge request reports