Re: [Mesa-dev] [PATCH] radv: initialize the trace BO to 0

2017-09-14 Thread Samuel Pitoiset
On 09/13/2017 04:01 PM, Grazvydas Ignotas wrote: Wouldn't it be better to set AMDGPU_GEM_CREATE_VRAM_CLEARED when creating the bo? That would need new RADEON_FLAG_* for winsys. If not, at least make 4096 a define to use for both ws->buffer_create() and memset. I have added a define for the

Re: [Mesa-dev] [PATCH] radv: initialize the trace BO to 0

2017-09-13 Thread Grazvydas Ignotas
Wouldn't it be better to set AMDGPU_GEM_CREATE_VRAM_CLEARED when creating the bo? That would need new RADEON_FLAG_* for winsys. If not, at least make 4096 a define to use for both ws->buffer_create() and memset. GraÅžvydas On Wed, Sep 13, 2017 at 12:26 PM, Samuel Pitoiset

[Mesa-dev] [PATCH] radv: initialize the trace BO to 0

2017-09-13 Thread Samuel Pitoiset
To avoid random initial values. Signed-off-by: Samuel Pitoiset --- 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 ---