radeonsi: add a debug flag to zero vram allocations
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 20 Jun 2018 19:17:39 +0000 (22:17 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 21 Jun 2018 09:18:50 +0000 (12:18 +0300)
commitf966929805f722ae38d4821fab61765c0ee4a60c
tree4bf25df53f2cd688458b9e4d0f6340684aeeb854
parent4e0d93dc0e4d37dff492305fb7aa6408f36ff147
radeonsi: add a debug flag to zero vram allocations

This allows to avoid having to see garbage in Dying Light loading screen
at least, which probably expects Windows/NV behavior of all allocations
being zeroed by default.

Analogous to radv flag with the same name.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h