Skip to content

nir_opt_algebraic: Add a couple optimizations for lowered unpack(pack())

Jesse Natalie requested to merge jenatali/mesa:pack-unpack-nir-opt into main

I noticed some unnecessary 64-bit ints in shaders that were using doubles. Perhaps there's a different missing optimization that should run on the actual pack/unpack instructions before they're lowered, or maybe I'm just lowering them too early, but these seem simple enough that we might want them even for hand-rolled pack/unpack pairs.

Merge request reports