[Mesa-dev] [PATCH 1/4] radv: change base aligmment for allocated memory.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Feb 14 07:47:04 UTC 2017


Series is:

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Tue, Feb 14, 2017, at 07:10, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> On some CIK (Hawaii) this needs to be at least 64k, I'm not 100% sure
> it doesn't need to be 128k.
> 
> This was causing fast clear eliminate to overwrite the previous buffer,
> which since my gfx init code, was the indirect buffer.
> 
> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99692
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index c1c2241..9bc44b8 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -1652,7 +1652,7 @@ VkResult radv_AllocateMemory(
>  	if (pAllocateInfo->memoryTypeIndex == RADV_MEM_TYPE_GTT_WRITE_COMBINE)
>  		flags |= RADEON_FLAG_GTT_WC;
>  
> -       mem->bo = device->ws->buffer_create(device->ws, alloc_size,
> 32768,
> +       mem->bo = device->ws->buffer_create(device->ws, alloc_size,
> 65536,
>  					       domain, flags);
>  
>  	if (!mem->bo) {
> -- 
> 2.9.3
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list