i965: Issue performance warnings when copying the program cache BO.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Aug 2014 17:50:31 +0000 (10:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Oct 2014 13:53:54 +0000 (06:53 -0700)
commit4c766c7959192b455ae752a7759ffc159e0524a6
treeb10c8973110ed875e4f8578748a87f0b20d063fa
parenta4fe727a5d77c6a20a4e6cceaad34c81cd49f0ec
i965: Issue performance warnings when copying the program cache BO.

We don't really want unnecessary buffer copying, so it'd be nice to know
when it's happening.

v2: Drop stall warnings when doing a read-only CPU mapping of the cache
    BO.  The GPU also uses it in a read-only fashion, so there won't be
    any stalls, even though the buffer is busy.  (Thanks to Chris Wilson
    for catching this mistake.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> [v1]
src/mesa/drivers/dri/i965/brw_state_cache.c