projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0854579
)
r600c: substract vbo offset to vbo size
author
Jerome Glisse
<jglisse@redhat.com>
Fri, 12 Feb 2010 16:06:19 +0000
(17:06 +0100)
committer
Jerome Glisse
<jglisse@redhat.com>
Fri, 12 Feb 2010 16:06:19 +0000
(17:06 +0100)
To avoid kernel complaining and to set proper boundary on
vbo, substract the vbo offset to the vbo size.
src/mesa/drivers/dri/r600/r700_chip.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_chip.c
b/src/mesa/drivers/dri/r600/r700_chip.c
index a742dbcf129c51351ad36d27951aeebc8d20a9af..1aa351e799ffc7f18349ed118691322490f783e7 100644
(file)
--- 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,