<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Android build error with new tiled_memcopy_sse41 (32 bit build only)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108586">108586</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Android build error with new tiled_memcopy_sse41 (32 bit build only)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>issor.oruam@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

in i965 mesa master branch after commit 11b1afdc92db9
("i965/tiled_memcpy: inline movntdqa loads in tiled_to_linear")

I'm getting the following build error only with 32 bit build x86 target builds,
what is strange the 64 bit build is fine, which comprises x86 targets on
obj_x86, that is weird, so it may be related to composition

It may be related to the generic build/core/combo/arch/x86/x86.mk not having
ARCH_X86_HAVE_SSE4_1 enabled.

Could you please check with Tapani Palli about the Android.mk used here,
as other sse41 libraries modules build rules and static linking are all braced
by:

ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
...
endef

Mauro


Building error with x86 build:

In file included from
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy_sse41.c:35:
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c:574:21: warning:
implicit declaration of function '_mm_stream_load_si128' is invalid in C99
[-Wimplicit-function-declaration]
      __m128i val = _mm_stream_load_si128((__m128i *)src);
                    ^
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c:574:15: error:
initializing '__m128i' (vector of 2 'long long' values) with an expression of
incompatible type 'int'
      __m128i val = _mm_stream_load_si128((__m128i *)src);
              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c:578:15: error:
initializing '__m128i' (vector of 2 'long long' values) with an expression of
incompatible type 'int'
      __m128i val0 = _mm_stream_load_si128(((__m128i *)src) + 0);
              ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c:579:15: error:
initializing '__m128i' (vector of 2 'long long' values) with an expression of
incompatible type 'int'
      __m128i val1 = _mm_stream_load_si128(((__m128i *)src) + 1);
              ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c:580:15: error:
initializing '__m128i' (vector of 2 'long long' values) with an expression of
incompatible type 'int'
      __m128i val2 = _mm_stream_load_si128(((__m128i *)src) + 2);
              ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/mesa/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c:581:15: error:
initializing '__m128i' (vector of 2 'long long' values) with an expression of
incompatible type 'int'
      __m128i val3 = _mm_stream_load_si128(((__m128i *)src) + 3);
              ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 5 errors generated.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>