i965: Implement L3 state atom.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 8 Dec 2015 16:53:22 +0000 (18:53 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Dec 2015 11:46:05 +0000 (13:46 +0200)
commitacc77947ca623472f9c7464553496314b57654ac
treee8aad18d84dc9a27ae455d5e38278c86832d3cc5
parent95ad0bd33ba491c2e34ce02f4ec2d75ffffe16ea
i965: Implement L3 state atom.

The L3 state atom calculates the target L3 partition weights when the
program bound to some shader stage is modified, and in case they are
far enough from the current partitioning it makes sure that the L3
state is re-emitted.

v2: Fix for inconsistent units the context URB size is expressed in.
    Clamp URB size to 1008 KB on SKL due to FF hardware limitation.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen7_l3_state.c