summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_public.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-02-07 08:41:29 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commit18e31a9b311a6c1b35eedfae48d7512eea5be68d (patch)
treef557d45cd0a3d8686fdc8d46514880fd2093ac91 /src/gallium/drivers/llvmpipe/lp_public.h
parent3b1ac8244ec5aecf703110f8191058f3299b72af (diff)
iris: Fix accidental busy-looping in query waits
When switching from bo_wait to sync-points, I missed that we turned an if (not landed) bo_wait into a while (not landed) check_syncpt(), which has a timeout of 0. This meant, rather than sleeping until the batch is complete, we'd busy-loop, continually asking the kernel "is the batch done yet???". This is not what we want at all - if we wanted a busy loop, we'd just loop on !snapshots_landed. We want to sleep. Add an effectively infinite timeout so that we sleep.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_public.h')
0 files changed, 0 insertions, 0 deletions