i965: Don't use ggtt_bo for Gen8+ streamout offset buffer.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Aug 2017 07:41:37 +0000 (00:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Aug 2017 21:26:24 +0000 (14:26 -0700)
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>
src/mesa/drivers/dri/i965/genX_state_upload.c

index cc521a748756a5194277e6cedc1eaebe914a1ed3..17fa1ce8fe84173a5c53667fdd5719b4861c4ce6 100644 (file)
@@ -3638,7 +3638,7 @@ genX(upload_3dstate_so_buffers)(struct brw_context *brw)
 
          sob.SurfaceSize = MAX2(xfb_obj->Size[i] / 4, 1) - 1;
          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) {
             /* Zero out the offset and write that to offset_bo */