tests/amdgpu: add parentheses to make operation priority explicit
authorEric Engestrom <eric.engestrom@imgtec.com>
Fri, 26 Jan 2018 11:12:06 +0000 (11:12 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Mon, 29 Jan 2018 15:41:52 +0000 (15:41 +0000)
While at it, align with the other half on the next line.

Cc: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
tests/amdgpu/basic_tests.c

index 0f75e89..6ee0aa3 100644 (file)
@@ -1608,7 +1608,7 @@ static void amdgpu_sync_dependency_test(void)
        j = i;
        ptr[i++] = PACKET3(PACKET3_WRITE_DATA, 3);
        ptr[i++] = WRITE_DATA_DST_SEL(5) | WR_CONFIRM;
-       ptr[i++] = 0xfffffffc & ib_result_mc_address + DATA_OFFSET * 4;
+       ptr[i++] =          0xfffffffc & (ib_result_mc_address + DATA_OFFSET * 4);
        ptr[i++] = (0xffffffff00000000 & (ib_result_mc_address + DATA_OFFSET * 4)) >> 32;
        ptr[i++] = 99;