From: Danylo Piliaiev Date: Wed, 18 Jul 2018 08:47:19 +0000 (+0300) Subject: radv: Fix incorrect assumption about ternary operator precedence X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=494a206229f237566a7291660687fd8e77efbc91;p=mesa.git radv: Fix incorrect assumption about ternary operator precedence Signed-off-by: Danylo Piliaiev Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 13990059985..aac5b8a21a2 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -361,8 +361,8 @@ radv_alloc_shader_memory(struct radv_device *device, slab->bo = device->ws->buffer_create(device->ws, slab->size, 256, RADEON_DOMAIN_VRAM, RADEON_FLAG_NO_INTERPROCESS_SHARING | - device->physical_device->cpdma_prefetch_writes_memory ? - 0 : RADEON_FLAG_READ_ONLY); + (device->physical_device->cpdma_prefetch_writes_memory ? + 0 : RADEON_FLAG_READ_ONLY)); slab->ptr = (char*)device->ws->buffer_map(slab->bo); list_inithead(&slab->shaders);