swr: [rasterizer core] Fix threadviz support in buckets
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 27 Apr 2016 19:02:27 +0000 (13:02 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 5 May 2016 19:49:04 +0000 (14:49 -0500)
commitc2f5d2daa897c11e4d8f5804217e7e35d3092313
tree44ab13c50f54ff624402c2d55e390497de94315e
parent1eb211c4a4c31e5e46840435df90554fbc864adc
swr: [rasterizer core] Fix threadviz support in buckets

Need to do lazy eval of the threadviz knob since order of globals
is undefined.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.cpp
src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h
src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp