iris: Implement INTEL_DEBUG=pc for pipe control logging.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Jun 2019 21:04:50 +0000 (16:04 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Jun 2019 18:32:15 +0000 (13:32 -0500)
commitd4a4384b315a4b74357b30f868f4d1c25a571083
treec14800614d3bcc28eef9e31552057eea6b516926
parentc378829a0df904c907d7070801fd89749053680f
iris: Implement INTEL_DEBUG=pc for pipe control logging.

This prints a log of every PIPE_CONTROL flush we emit, noting which bits
were set, and also the reason for the flush.  That way we can see which
are caused by hardware workarounds, render-to-texture, buffer updates,
and so on.  It should make it easier to determine whether we're doing
too many flushes and why.
13 files changed:
src/gallium/drivers/iris/iris_batch.c
src/gallium/drivers/iris/iris_blit.c
src/gallium/drivers/iris/iris_blorp.c
src/gallium/drivers/iris/iris_clear.c
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_pipe_control.c
src/gallium/drivers/iris/iris_query.c
src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_resource.c
src/gallium/drivers/iris/iris_resource.h
src/gallium/drivers/iris/iris_state.c
src/intel/dev/gen_debug.c
src/intel/dev/gen_debug.h