Skip to content

nir+mesa/st: fix YUV sampler lowering

Rob Clark requested to merge robclark/mesa:wip/fix-yuv into master

nir_lower_tex() was being used before lowering texture/sampler derefs. Which magically worked if you had a single sampler (because tex->texture_index defaults to zero). But went quite badly if you have multiple samplers, only one of which was yuv.

Fixes a crash in google play games app.

Merge request reports