summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-18 14:25:19 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-18 21:51:54 +0000
commitcebc62f1060c815e3b5a1bd3728c3d909db3d2b8 (patch)
tree20869e9cc6cc1df31edc329564f14dbf82424d46 /src/mesa/swrast
parentd3e9aa8d88e6684235bb0be549551d1402ef8881 (diff)
downloadexternal_mesa3d-cebc62f1060c815e3b5a1bd3728c3d909db3d2b8.zip
external_mesa3d-cebc62f1060c815e3b5a1bd3728c3d909db3d2b8.tar.gz
external_mesa3d-cebc62f1060c815e3b5a1bd3728c3d909db3d2b8.tar.bz2
swrast: Use BITFIELD64_BIT for arrayAttribs.
As VARYING_SLOT_MAX can be bigger than 32. I'll probably stop building swrast with MSVC in the near future, but this seems a real bug regardless. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_span.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 5d618f0..e304b6b 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -788,7 +788,7 @@ clip_span( struct gl_context *ctx, SWspan *span )
memmove(ARRAY, ARRAY + (SHIFT), (LEN) * sizeof(ARRAY[0]))
for (i = 0; i < VARYING_SLOT_MAX; i++) {
- if (span->arrayAttribs & (1 << i)) {
+ if (span->arrayAttribs & BITFIELD64_BIT(i)) {
/* shift array elements left by 'leftClip' */
SHIFT_ARRAY(span->array->attribs[i], leftClip, n - leftClip);
}