i965: Implement selection of the closest L3 configuration based on a vector of weights.
i965: Implement selection of the closest L3 configuration based on a vector of weights.

The input of the L3 set-up code is a vector giving the approximate
desired relative size of each partition.  This implements logic to
compare the input vector against the table of validated configurations
for the device and pick the closest compatible one.

Reviewed-by: Samuel Iglesias Gonsálvez <b753b212f30aed827c3eea2e437609dc37310153@igalia.com>
Reviewed-by: Kristian Høgsberg  <ca9b5b1e27d4fa7f4ba6848bdd08ca52cfd6330c@bitplanet.net>

metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler