]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Clear VRAM for DRM dumb_create buffers
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 8 Mar 2019 15:38:16 +0000 (10:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:57 +0000 (15:36 -0500)
commit941027bca463d6dc4ccaa771631b9dbdfd22f7e2
tree0af9b96273f1f4e95c0434597045eaa65f3bee21
parent1b404fc261bcb04912e82c5c1b3dfe69c2c4fbfa
drm/amdgpu: Clear VRAM for DRM dumb_create buffers

The dumb_create API isn't intended for high performance rendering
and it's more useful for userspace (ie. IGT) to have them precleared.

The bonus here is that we also won't needlessly leak whatever was
previously in VRAM, but it also probably wasn't sensitive if it was
going through this API.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c