diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2016-03-08 15:31:47 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-09 11:31:14 -0800 |
commit | b3a29f2e9eb528a16ceec0fd88aad9f0c3c3b6d4 (patch) | |
tree | 08b2340d2680a1494aed9ee9784fb3b2ec50c246 /scons | |
parent | 8b61c57049ff75766715ad4f7b1ad2d3657b9b4d (diff) |
anv: Do relocations in userspace before execbuf ioctl
Since our surface state buffer is shared by all batches, the kernel does a
full stall and sync with the CPU between batches every time we call
execbuf2 because it refuses to do relocations on an active buffer. Doing
them in userspace and passing the NO_RELOC flag to the kernel allows us to
perform the relocations without stalling.
This improves the performance of Dota 2 by around 30% on a Sky Lake GT2.
v2 (Jason Ekstrand):
- Better comments (Chris Wilson)
- Fixed write_reloc for correct canonical form (Chris Wilson)
v3 (Jason Ekstrand):
- Skip relocations which aren't needed
- Provide an environment variable to always use the kernel
- More comments about correctness (Chris Wilson)
v4 (Jason Ekstrand):
- More comments (Chris Wilson)
v5 (Jason Ekstrand):
- Rebase on top of moving execbuf2 setup go QueueSubmit
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Cc: "13.0" <[email protected]>
Diffstat (limited to 'scons')
0 files changed, 0 insertions, 0 deletions