swr: [rasterizer archrast/core/scripts] Fix archrast multithreading issue
authorTim Rowley <timothy.o.rowley@intel.com>
Sat, 18 Feb 2017 08:29:06 +0000 (00:29 -0800)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 20 Mar 2017 23:04:53 +0000 (18:04 -0500)
commit2cbac00221606fdda6af839afaf64ef649a73f83
treeb09569c2afb64fdd083653e8f867d4d2570bc31f
parent0a36a7cf04d4f0e638e702aee9a03c91cdbc1d1a
swr: [rasterizer archrast/core/scripts] Fix archrast multithreading issue

Per pixel stats are cached but were not always being flushed as threads
moved from one draw context to the next.  Added an explicit flush to allow
all archrast objects to flush any cached events.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp
src/gallium/drivers/swr/rasterizer/archrast/archrast.h
src/gallium/drivers/swr/rasterizer/archrast/eventmanager.h
src/gallium/drivers/swr/rasterizer/core/context.h
src/gallium/drivers/swr/rasterizer/core/threads.cpp
src/gallium/drivers/swr/rasterizer/scripts/templates/ar_eventhandler_h.template