From 494a206229f237566a7291660687fd8e77efbc91 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Wed, 18 Jul 2018 11:47:19 +0300 Subject: radv: Fix incorrect assumption about ternary operator precedence Signed-off-by: Danylo Piliaiev Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/amd/vulkan/radv_shader.c') 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); -- cgit v1.2.3