mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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.
This commit is contained in:
parent
08545799e3
commit
325614a882
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue