Skip to content
Snippets Groups Projects
Commit c47794bd authored by Matthew Brost's avatar Matthew Brost Committed by Rodrigo Vivi
Browse files

drm/xe: Set max pte size when skipping rebinds


When a rebind is skipped, we must set the max pte size of the newly
created vma to value of the old vma as we do not pte walk for the new
vma. Without this future rebinds may be incorrectly skipped due to the
wrong max pte size. Null binds are more likely to expose this bug as
larger ptes are more frequently used compared to normal bindings.

Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Testcase: dEQP-VK.sparse_resources.buffer.ssbo.sparse_residency.buffer_size_2_24
Reported-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Fixes: 8f33b4f0 ("drm/xe: Avoid doing rebinds")
Reference: mesa/mesa!23045


Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 31b57683
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment