diff options
author | Maciej Cencora <[email protected]> | 2010-07-11 14:04:18 +0200 |
---|---|---|
committer | Maciej Cencora <[email protected]> | 2010-07-11 14:25:35 +0200 |
commit | 452a7d5a9d339db3326f33d464dce1a879ccc533 (patch) | |
tree | c9dc8f6b21485fe984bdb1db622259f63b291c44 /src/mesa/drivers | |
parent | 932e4e65e3b311d5f05d20e0d40932f9dc6f7e8f (diff) |
r300c: Fix vertex data setup for named buffer objects with unaligned offset
Candidate for 7.8 branch
Signed-off-by: Maciej Cencora <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c index 282c0e18bca..5ae9f49840b 100644 --- a/src/mesa/drivers/dri/r300/r300_draw.c +++ b/src/mesa/drivers/dri/r300/r300_draw.c @@ -523,8 +523,7 @@ static void r300AllocDmaRegions(GLcontext *ctx, const struct gl_client_array *in r300ConvertAttrib(ctx, count, input[i], &vbuf->attribs[index]); } else { if (input[i]->BufferObj->Name) { - if (stride % 4 != 0) { - assert(((intptr_t) input[i]->Ptr) % input[i]->StrideB == 0); + if (stride % 4 != 0 || (intptr_t)input[i]->Ptr % 4 != 0) { r300AlignDataToDword(ctx, input[i], count, &vbuf->attribs[index]); vbuf->attribs[index].is_named_bo = GL_FALSE; } else { |