Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Burst error BC1200 while building for Android

Discussion in 'Burst' started by BestHTTP, Nov 14, 2023.

  1. BestHTTP

    BestHTTP

    Joined:
    Sep 11, 2013
    Posts:
    1,661
    The following code throws a compile error when i try to make a build for Android:
    Code (CSharp):
    1. if (IsSse2Supported)
    2. {
    3.     while (targetOffset - DataOffset >= 16)
    4.     {
    5.         // load data
    6.         v128 data = loadu_si128(pData + DataOffset);
    7.  
    8.         // xor
    9.         var result = xor_si128(data, mask);
    10.  
    11.         // store
    12.         storeu_si128(pData + DataOffset, result);
    13.  
    14.         // advance
    15.         DataOffset += 16;
    16.     }
    17. }
    18. else if (IsNeonSupported)
    19. {
    20.     while (targetOffset - DataOffset >= 16)
    21.     {
    22.         // load data
    23.         v128 data = vld1q_u8(pData + DataOffset);
    24.  
    25.         // xor
    26.         v128 result = veorq_u8(data, mask);
    27.  
    28.         // store
    29.         vst1q_u8(pData + DataOffset, result);
    30.  
    31.         // advance
    32.         DataOffset += 16;
    33.     }
    34. }
    It logs out two errors:
    As can be seen above, my code already tests for IsSse2Supported.

    If i remove the first block of code it compiles just fine. Building for non-Android platforms doesn't complain about the Neon code.
     
  2. Miro_Brodlova

    Miro_Brodlova

    Unity Technologies

    Joined:
    Apr 28, 2023
    Posts:
    22
    Hi @BestHTTP ,

    First, thank you so much for reaching out to us here! People like you help us make Burst and Unity better and more robust.

    It indeed looks like bug-like behavior to us. Is it possible for you to file an official bug-report with your/a project that reproduces the bug-behavior included so we can reproduce the issue on our end and investigate it thoroughly? :) (here's how to file formal bug-reports in Unity). That would help us immensely! :)
     
  3. BestHTTP

    BestHTTP

    Joined:
    Sep 11, 2013
    Posts:
    1,661
    Miro_Brodlova likes this.
  4. Miro_Brodlova

    Miro_Brodlova

    Unity Technologies

    Joined:
    Apr 28, 2023
    Posts:
    22
    BestHTTP likes this.