mesa: Don't allow wrong type setters for matrix uniforms
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 1 Sep 2015 01:44:42 +0000 (18:44 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 2 Sep 2015 23:24:17 +0000 (16:24 -0700)
commit7237c937af3b495191bee2f7240901e3a9daf1fb
treed918c1be60cd791d280ba898b847ecb0a74e4fe7
parenta6976f09727014730f45ec27c714c6a8140e074a
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 <ian.d.romanick@intel.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
Cc: Dave Airlie <airlied@redhat.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/mesa/main/uniform_query.cpp