<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Can't set int attributes to certain values on 32-bit"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82668#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Can't set int attributes to certain values on 32-bit"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82668">bug 82668</a>
              from <span class="vcard"><a class="email" href="mailto:marius.predut@intel.com" title="marius predut <marius.predut@intel.com>"> <span class="fn">marius predut</span></a>
</span></b>
        <pre>After some investigation and testing ,the best solution I found is to use union
gl_constant_value to store the values(vtx.attrptr) instead of storing them in a
float. That involve to update all the dependency and use a new defined macros
like this:

#define ATTR( A, N, T, V0, V1, V2, V3 )      ATTR_##T(A, N, T, V0, V1, V2, V3) 

#define ATTR_GLuint( A, N, T, V0, V1, V2, V3 ) \
    ATTR_UNION(A, N, T, UINT_AS_UNION(V0), UINT_AS_UNION(V1),
UINT_AS_UNION(V2), UINT_AS_UNION(V3))
#define ATTR_GLint( A, N, T, V0, V1, V2, V3 ) \
    ATTR_UNION(A, N, T, INT_AS_UNION(V0), INT_AS_UNION(V1), INT_AS_UNION(V2),
INT_AS_UNION(V3))

The old ATTR became ATTR_UNION and treat the input values(V1,...,V4) as
gl_constant_value union.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>