diff options
author | Jerome Glisse <[email protected]> | 2010-08-27 16:52:29 -0400 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-08-27 16:54:00 -0400 |
commit | 48d8814c03cc7f270985abe7efdaec1f18d120aa (patch) | |
tree | 4c81fc77d80c4171e7b1edea26c6020f090b8401 /src/gallium/drivers | |
parent | 9ce0d92ae70362a1cd8c07c9f7ac25bcbcd09959 (diff) |
r600g: fix vbo size
Silence the kernel, vbo size is size - 1.
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_draw.c b/src/gallium/drivers/r600/r600_draw.c index 1eb868c4c77..1c426f755da 100644 --- a/src/gallium/drivers/r600/r600_draw.c +++ b/src/gallium/drivers/r600/r600_draw.c @@ -107,7 +107,7 @@ static int r600_draw_common(struct r600_draw *draw) vs_resource->bo[0] = radeon_bo_incref(rscreen->rw, rbuffer->bo); vs_resource->nbo = 1; vs_resource->states[R600_PS_RESOURCE__RESOURCE0_WORD0] = offset; - vs_resource->states[R600_PS_RESOURCE__RESOURCE0_WORD1] = rbuffer->bo->size - offset; + vs_resource->states[R600_PS_RESOURCE__RESOURCE0_WORD1] = rbuffer->bo->size - offset - 1; vs_resource->states[R600_PS_RESOURCE__RESOURCE0_WORD2] = S_038008_STRIDE(vertex_buffer->stride) | S_038008_DATA_FORMAT(format); vs_resource->states[R600_PS_RESOURCE__RESOURCE0_WORD3] = 0x00000000; |