[Mesa-dev] [PATCH] radv: initialize the trace BO to 0
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Sep 13 09:26:37 UTC 2017
To avoid random initial values.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_debug.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c
index c004bc436b..1e5c578aae 100644
--- a/src/amd/vulkan/radv_debug.c
+++ b/src/amd/vulkan/radv_debug.c
@@ -65,6 +65,8 @@ radv_init_trace(struct radv_device *device)
if (!device->trace_id_ptr)
return false;
+ memset(device->trace_id_ptr, 0, 4096);
+
ac_vm_fault_occured(device->physical_device->rad_info.chip_class,
&device->dmesg_timestamp, NULL);
--
2.14.1
More information about the mesa-dev
mailing list