linker: Use bit-0 instead of VERT_BIT_GENERIC0
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Jul 2010 23:28:39 +0000 (16:28 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Jul 2010 23:28:39 +0000 (16:28 -0700)
Uses of the bits for allocation are offset by 16, and
VERT_BIT_GENERIC0 already has the 16 offset.  As a result, it was
preventing the wrong thing from being allocated.

src/glsl/linker.cpp

index 5227d42..eb10f90 100644 (file)
@@ -667,7 +667,7 @@ assign_attribute_locations(gl_shader_program *prog, unsigned max_attribute_index
     * be explicitly assigned by via glBindAttribLocation.  Mark it as reserved
     * to prevent it from being automatically allocated below.
     */
-   used_locations |= VERT_BIT_GENERIC0;
+   used_locations |= (1 << 0);
 
    for (unsigned i = 0; i < num_attr; i++) {
       /* Mask representing the contiguous slots that will be used by this