i965: Print access flags in INTEL_DEBUG=buf output.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 1 Jul 2017 04:16:00 +0000 (21:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 1 Jul 2017 18:48:08 +0000 (11:48 -0700)
commitdf1279e9df4eddc70bc8ea81dbe7b1ff35cdf4be
tree0595c1f5c00c75eec66bff8183187037db3a4e7a
parentd8382d6889d139db8f7f720aaba4cdfb0a0c8f11
i965: Print access flags in INTEL_DEBUG=buf output.

Being able to see the access mode of various mappings is incredibly
useful for debugging.  With this patch, INTEL_DEBUG=buf now shows
data such as:

   bo_create: buf 7 (bufferobj) 640b
   bo_map_gtt: 7 (bufferobj) -> 0x7fca1fae5000, WRITE ASYNC
   brw_bo_map_cpu: 7 (bufferobj) -> 0x7fca1fae4000, READ
   bo_map_gtt: 5 (bufferobj) -> 0x7fca1fad4000, WRITE ASYNC
   brw_bo_map_cpu: 7 (bufferobj) -> 0x7fca1fae4000, READ

which makes it easy to see that there are async GTT writes with
intervening CPU reads.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_bufmgr.c