There was an error fetching the commit references. Please try again later.
radeonsi: stop using the VM_ALWAYS_VALID flag
Allocation all the bo as ALWAYS_VALID means they must all fit in memory (vram + gtt) at each command submission. This causes some trouble when the total allocated memory is greater than the available memory. Possible solutions: - being able to tag/untag a bo as ALWAYS_VALID: would require kernel changes - disable VM_ALWAYS_VALID when memory usage is more than a percentage of the available memory - disable VM_ALWAYS_VALID entirely v1 of this patch implemented option 2. v2 (this version) implements option 3. Related issues: - drm/amd#607 - mesa/mesa#1257 It also helps with some piglit tests (-t maxsize -t "max[_-].*size" -t maxuniformblocksize): instead of crashing the machine, the tests fail cleanly. Closes: mesa/mesa#2190 Reviewed-by:Marek Olšák <marek.olsak@amd.com> Tested-by: Marge Bot <mesa/mesa!3430> Part-of: <mesa/mesa!3430>
Showing
- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c 0 additions, 8 deletionssrc/gallium/winsys/amdgpu/drm/amdgpu_bo.c
- src/gallium/winsys/amdgpu/drm/amdgpu_bo.h 0 additions, 1 deletionsrc/gallium/winsys/amdgpu/drm/amdgpu_bo.h
- src/gallium/winsys/amdgpu/drm/amdgpu_cs.c 0 additions, 7 deletionssrc/gallium/winsys/amdgpu/drm/amdgpu_cs.c
Loading