iris: Don't make duplicate system values
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Dec 2018 09:27:44 +0000 (01:27 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000 (10:26 -0800)
commit7e35333c731385b9ee5eba47fa5b8a60a96534af
treed3e4a3cda9815a682f6392f1930f0f4d74b1208c
parentbc3bb2864503d85d5ccdbe552178a57ab9bf20b2
iris: Don't make duplicate system values

We were relying on CSE/GVN/etc to coalesce all intrinsics that load the
same value, but that's a bad idea.  We might have a couple intrinsics
that reload the same value.  If so, we only want to set up the uniform
on the first one we see.
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program.c