i965: Implement selection of the closest L3 configuration based on a vector of weights.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 3 Sep 2015 15:10:24 +0000 (18:10 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Dec 2015 11:46:05 +0000 (13:46 +0200)
commitfa1300f75e80f32a0fd40ed53cfdeaecc4c2f012
tree3fc2ba5b2ba1717079a3872983e56554fe216f50
parent353abb294b10aa18bf98a772b380ccbed318c239
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 <siglesias@igalia.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/gen7_l3_state.c