diff options
author | Jerome Glisse <[email protected]> | 2010-02-12 17:06:19 +0100 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-02-12 17:06:19 +0100 |
commit | 325614a882f5371da512536e07c443a172ffb87c (patch) | |
tree | 557be8610ed9d25281bb8ad8745f92e959215871 /src/mesa | |
parent | 08545799e37d519d70006a86d52854d294ce5a4d (diff) |
r600c: substract vbo offset to vbo size
To avoid kernel complaining and to set proper boundary on
vbo, substract the vbo offset to the vbo size.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_chip.c b/src/mesa/drivers/dri/r600/r700_chip.c index a742dbcf129..1aa351e799f 100644 --- a/src/mesa/drivers/dri/r600/r700_chip.c +++ b/src/mesa/drivers/dri/r600/r700_chip.c @@ -205,7 +205,7 @@ static void r700SetupVTXConstants(GLcontext * ctx, } uSQ_VTX_CONSTANT_WORD0_0 = paos->offset; - uSQ_VTX_CONSTANT_WORD1_0 = nVBsize - 1; + uSQ_VTX_CONSTANT_WORD1_0 = nVBsize - paos->offset - 1; SETfield(uSQ_VTX_CONSTANT_WORD2_0, 0, BASE_ADDRESS_HI_shift, BASE_ADDRESS_HI_mask); /* TODO */ SETfield(uSQ_VTX_CONSTANT_WORD2_0, pStreamDesc->stride, SQ_VTX_CONSTANT_WORD2_0__STRIDE_shift, |