mesa: Don't allow wrong type setters for matrix uniforms
mesa: Don't allow wrong type setters for matrix uniforms

Previously we would allow glUniformMatrix4fv on a dmat4 and
glUniformMatrix4dv on a mat4.  Both are illegal.  That later also
overwrites the storage for the mat4 and causes bad things to happen.

Should fix the (new) arb_gpu_shader_fp64-wrong-type-setter piglit test.

Signed-off-by: Ian Romanick <2b237cafb16dc45038e85df6c85e74e6d899eba9@intel.com>
Reviewed-by: Timothy Arceri <7f85c8176b2576ffafd04ac63cd29ed35ff86cb6@yahoo.com.au>
Cc: Dave Airlie <f2295d84e358395675bc8031be58672073ae065e@redhat.com>
Cc: "10.6 11.0" <59f39c0db42d4479a46b02d4d2bc11120e37bb44@lists.freedesktop.org>

metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler