tests: fix some test fail when mesa linker optimize out some uniform
These tests fail due to not be able to get uniform location after mesa introduces varying assigned from uniform optimization which will eliminate these uniforms passing through varyings.
v2: add dummy uniform for tests to prevent linker optimization take effect and keep these tests' functionality.
Edited by Qiang Yu