i965: Add forgotten multi-stream code to Gen8 SOL state.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Mar 2015 00:21:10 +0000 (17:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Apr 2015 21:07:28 +0000 (14:07 -0700)
Fixes Piglit's arb_gpu_shader5-xfb-streams-without-invocations.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/gen8_sol_state.c

index 1f122ec69961d5fc9e3c793f3e49187ec5eedaee..d98a22676bb6ae666bc4745fc0143e4ac98d1236 100644 (file)
@@ -128,6 +128,15 @@ gen8_upload_3dstate_streamout(struct brw_context *brw, bool active,
       dw2 |= urb_entry_read_offset << SO_STREAM_0_VERTEX_READ_OFFSET_SHIFT;
       dw2 |= (urb_entry_read_length - 1) << SO_STREAM_0_VERTEX_READ_LENGTH_SHIFT;
 
+      dw2 |= urb_entry_read_offset << SO_STREAM_1_VERTEX_READ_OFFSET_SHIFT;
+      dw2 |= (urb_entry_read_length - 1) << SO_STREAM_1_VERTEX_READ_LENGTH_SHIFT;
+
+      dw2 |= urb_entry_read_offset << SO_STREAM_2_VERTEX_READ_OFFSET_SHIFT;
+      dw2 |= (urb_entry_read_length - 1) << SO_STREAM_2_VERTEX_READ_LENGTH_SHIFT;
+
+      dw2 |= urb_entry_read_offset << SO_STREAM_3_VERTEX_READ_OFFSET_SHIFT;
+      dw2 |= (urb_entry_read_length - 1) << SO_STREAM_3_VERTEX_READ_LENGTH_SHIFT;
+
       /* Set buffer pitches; 0 means unbound. */
       if (xfb_obj->Buffers[0])
          dw3 |= linked_xfb_info->BufferStride[0] * 4;