Skip to content

glsl/linker: handle unused glsl 1.00 uniform mismatches

Dave Airlie requested to merge airlied/mesa:glsl-es-1.00-mismatch-types into main

0886be09 ("glsl: Allow precision mismatch on dead data with GLSL ES 1.00") allowed precision mismatches on uniforms, however if you lower precision on 16-bit consts, then this error triggers instead.

This ports the same logic up higher, though it just works on type mismatch, I'm not sure if it needs extending to check float vs float16 and int vs int16 of if that is overkill.

This fixes tests/spec/glsl-es-1.00/linker/glsl-mismatched-uniform-precision-unused.shader_test when llvmpipe enables 16-bit floats.

Fixes: 0886be09 ("glsl: Allow precision mismatch on dead data with GLSL ES 1.00")

Merge request reports

Loading