case TGSI_WRITEMASK_YZW:
return compo == 1 || compo == 2 || compo == 4;
case TGSI_WRITEMASK_XYZW:
- return compo >= 0 && compo < 4;
+ return compo < 4;
default:
debug_assert(!"Unknown writemask in stream out");
- return compo >= 0 && compo < 4;
+ return compo < 4;
}
}
total_written_compos += written_compos;
}
if (so->single_buffer) {
- unsigned stride = state->stride -
- sizeof(float) * total_written_compos;
+ int stride = (int)state->stride -
+ sizeof(float) * total_written_compos;
debug_assert(stride >= 0);
*buffer = (float*) (((char*)*buffer) + stride);