mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
i965: Don't use ggtt_bo for Gen8+ streamout offset buffer.
RELOC_NEEDS_GGTT is only meaningful on Sandybridge - it's skipped on other generations - so this has no purpose. Just use rw_bo(). Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
a8b36fbdfa
commit
58a4fc2b00
1 changed files with 1 additions and 1 deletions
|
|
@ -3638,7 +3638,7 @@ genX(upload_3dstate_so_buffers)(struct brw_context *brw)
|
||||||
|
|
||||||
sob.SurfaceSize = MAX2(xfb_obj->Size[i] / 4, 1) - 1;
|
sob.SurfaceSize = MAX2(xfb_obj->Size[i] / 4, 1) - 1;
|
||||||
sob.StreamOutputBufferOffsetAddress =
|
sob.StreamOutputBufferOffsetAddress =
|
||||||
ggtt_bo(brw_obj->offset_bo, i * sizeof(uint32_t));
|
rw_bo(brw_obj->offset_bo, i * sizeof(uint32_t));
|
||||||
|
|
||||||
if (brw_obj->zero_offsets) {
|
if (brw_obj->zero_offsets) {
|
||||||
/* Zero out the offset and write that to offset_bo */
|
/* Zero out the offset and write that to offset_bo */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue