i965: Assert that we don't use CPU write maps to non-coherent buffers.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 1 Jul 2017 08:55:52 +0000 (01:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jul 2017 22:55:34 +0000 (15:55 -0700)
commit7250cbafb90271579a1d07160498e902996cbc97
tree1a17dd19e257f705d42e352794a1969b822b37e4
parentde4c2eaa627204ffa54160ab9ea0bd3aaf3732b2
i965: Assert that we don't use CPU write maps to non-coherent buffers.

Using CPU maps of non-coherent buffers can get us in a lot of trouble,
and WC maps are a reasonable alternative anyway.  Guard against shooting
ourselves in the foot by adding an assert, and comment.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_bufmgr.c