Repository navigation
Commit b5dc608
committed
drm/i915: Copy the updated reloc->presumed_offset back to the user
If the userspace driver is using a constant relocation array with a
static buffer, they will pass the same relocation array back to the
kernel. So we *do* need to update the presumed offset value in those
relocations to reflect the current object so that they remain correct
with future batchbuffers and we avoid the necessity of having to suspend
execution and perform redundant relocations.
Fixes the regression introduced by 12f889c for applications using
absolute addressing on trees of buffer (i.e. the current consumers of
libdrm_intel.so).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30996
Reported-by: Wang, Jinjin <jinjin.wang@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>1 parent 69dc498 commit b5dc608
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3399 | 3399 | | |
3400 | 3400 | | |
3401 | 3401 | | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
3402 | 3411 | | |
3403 | 3412 | | |
3404 | 3413 | | |
| |||
3560 | 3569 | | |
3561 | 3570 | | |
3562 | 3571 | | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
3563 | 3576 | | |
3564 | 3577 | | |
3565 | 3578 | | |
| |||
0 commit comments