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)
commit95b1346872f80c0645e0a60b30a4e9dd37e66d0f
tree0af9b96273f1f4e95c0434597045eaa65f3bee21
parent289d513b17e7484f21853f39a2df59ac6ed7994d
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