diff options
author | Kenneth Graunke <[email protected]> | 2017-06-27 14:38:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-07-13 19:56:49 -0700 |
commit | 24891d7c05b2b6bead540ad860af42fd1291826b (patch) | |
tree | be70f6afb4916375ffb07e4fecb62a1a49bbbc5c /src/mesa/vbo | |
parent | 6d28c6e52cfd76855c1368560dd90f12493e2580 (diff) |
i965: Store per-stage push constant BO pointers.
Right now, we always upload new push constant data, and immediately
emit 3DSTATE_CONSTANT_* packets. We call intel_upload_space and store
the resulting BO pointer in brw->curbe.curbe_bo. We read that when
emitting the packets. This works today, but is fragile - it depends on
upload and packet emission being interleaved.
If we instead were to upload all the data, then emit all the packets,
then upload BO wrapping will get us into trouble. For example, the VS
constants may land in one upload BO, but the FS constants may not fit
and land in a second upload BO. Uploading FS constants would overwrite
the brw->curbe.curbe_bo pointer, so when we emitted 3DSTATE_CONSTANT_VS,
we'd get the wrong BO.
I intend to separate out this code in a future commit, so I need to fix
this. To fix it, we simply store a per-stage BO pointer.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
0 files changed, 0 insertions, 0 deletions