diff options
author | Danylo Piliaiev <[email protected]> | 2018-07-18 11:47:19 +0300 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-07-19 10:04:27 +0200 |
commit | 494a206229f237566a7291660687fd8e77efbc91 (patch) | |
tree | df7e028e6972deb32880edcec66d9f336c3044f5 /src/amd/vulkan/radv_shader.c | |
parent | dcbcc83003f397e207873bcc379e1f5bb24e3d11 (diff) |
radv: Fix incorrect assumption about ternary operator precedence
Signed-off-by: Danylo Piliaiev <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |