summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-05-12 21:09:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-05-15 14:06:24 +0100
commite3df327574ea246031a3de5e7b06b4ba704c89eb (patch)
treef39cd450a3e8bc233801d8d2c273ce6b56127008 /lib/drmtest.c
parent94df67655566f18f05e599bb53a4090b598057f2 (diff)
igt/gem_ctx_thrash: Order writes between contexts
The test wrote to the same dwords from multiple contexts, assuming that the writes would be ordered by its submission. However, as it was using multiple contexts without a write hazard, those timelines are not coupled and the requests may be emitted to hw in any order. So emit a write hazard for each individual dword in the scratch (avoiding the write hazard for the scratch as a whole) to ensure the writes do occur in the expected order. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'lib/drmtest.c')
0 files changed, 0 insertions, 0 deletions