ir_to_mesa: Use uniform_field_visitor to add all struct fields to parameter list
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Oct 2011 19:23:50 +0000 (12:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 26 Oct 2011 00:51:57 +0000 (17:51 -0700)
commit6437a71d4172273db670b959dd66e3b34c866962
treea6b4bc5a3d7d29ce7e0c3479cd1ebbab44720643
parent747e59c7590bd11a4964c6ca12c5ff0dbb6282f2
ir_to_mesa: Use uniform_field_visitor to add all struct fields to parameter list

Previously the uniform was passed as single, whole structure to
_mesa_add_parameter.  This was completely bogus and resulted in a
DataType of 0 (instead of a valid GLSL type enum).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41980
Tested-by: Brian Paul <brianp@vmware.com>
Cc: Bryan Cain <bryancain3@gmail.com>
Cc: Vinson Lee <vlee@vmware.com>
Cc: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/ir_to_mesa.cpp