r600: fix xfb stream check.
authorDave Airlie <airlied@redhat.com>
Mon, 5 Feb 2018 03:09:57 +0000 (13:09 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 20:08:12 +0000 (06:08 +1000)
This fixes:
KHR-GL45.enhanced_layouts.xfb_vertex_streams

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c

index d145145..a9e405f 100644 (file)
@@ -2213,7 +2213,7 @@ static int emit_streamout(struct r600_shader_ctx *ctx, struct pipe_stream_output
        for (i = 0; i < so->num_outputs; i++) {
                struct r600_bytecode_output output;
 
-               if (stream != -1 && stream != so->output[i].output_buffer)
+               if (stream != -1 && stream != so->output[i].stream)
                        continue;
 
                memset(&output, 0, sizeof(struct r600_bytecode_output));