mesa: Clean up _mesa_layout_parameters after previous commit
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 29 Mar 2021 20:17:10 +0000 (13:17 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 1 Apr 2021 18:42:36 +0000 (18:42 +0000)
commit7878497c94fcd6d60a52df1118601809e3246a43
treecd52a4b041d342a09f2e09fc34aacffb0c9e4154
parent9413c6aec3a7aef5af4eb7d7991fbff733b40823
mesa: Clean up _mesa_layout_parameters after previous commit

After the previous change, PASS 1 can be trivially pulled out of the
loop.

With PASS 1 removed, the loop can be unrolled, and a lot of code can be
deleted (from the unrolls).  This saves a couple lines of code, and it
makes the function a little easier to follow.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9867>
src/mesa/program/prog_parameter_layout.c