Skip to content

nir,agx: Lower sampler descriptor LOD bias to nir_texop_lod_bias_agx + ALU

Alyssa Rosenzweig requested to merge alyssa/mesa:agx/lod-bias into main
G13 does not support sampler descriptor LOD biasing, so this needs to be lowered
to shader code for APIs that require this functionality. Add an option to do
this lowering while doing our other backend texture lowerings. This generates
lod_bias_agx texture instructions which the driver is expected to lower
according to its binding model.

Passes Piglit lodbias

Merge request reports