i965: Implement interface to edit binding table entries
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Fri, 17 Jul 2015 09:20:18 +0000 (12:20 +0300)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Sat, 18 Jul 2015 13:16:56 +0000 (16:16 +0300)
commit2133980bc7dff52bdeb142301184e464d113ce7c
treee39f8c243ae62e820e9493271716bb1f272adc41
parent190756482e62cb57e2bc8c798181e5f0171726fb
i965: Implement interface to edit binding table entries

Unlike normal software binding tables where the driver has to manually
generate and fill a binding table array which are then uploaded to the
hardware, the resource streamer instead presents the driver with an option
to fill out slots for individual binding table indices. The hardware
accumulates the state for these combined edits which it then automatically
flushes to a binding table pool when the binding table pointer state
command is invoked.

v2: Clarify binding table edit bit aligment (Topi).
v3: Make comments and function names more clearer (Ken).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/i965/brw_binding_tables.c
src/mesa/drivers/dri/i965/brw_state.h