From aa404120e1ae29f8a7ac1a661fbf9ca7101d1120 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 21 Aug 2019 09:41:24 -0700 Subject: panfrost: Pass stream_output_info by reference It's a large structure, apparently. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_varyings.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gallium/drivers/panfrost/pan_varyings.c') diff --git a/src/gallium/drivers/panfrost/pan_varyings.c b/src/gallium/drivers/panfrost/pan_varyings.c index 3ad8aa7e238..0ac3b9d8854 100644 --- a/src/gallium/drivers/panfrost/pan_varyings.c +++ b/src/gallium/drivers/panfrost/pan_varyings.c @@ -153,11 +153,11 @@ has_point_coord(unsigned mask, gl_varying_slot loc) * accordingly. Compute the src_offset for a given captured varying */ static struct pipe_stream_output -pan_get_so(struct pipe_stream_output_info info, gl_varying_slot loc) +pan_get_so(struct pipe_stream_output_info *info, gl_varying_slot loc) { - for (unsigned i = 0; i < info.num_outputs; ++i) { - if (info.output[i].register_index == loc) - return info.output[i]; + for (unsigned i = 0; i < info->num_outputs; ++i) { + if (info->output[i].register_index == loc) + return info->output[i]; } unreachable("Varying not captured"); @@ -209,7 +209,7 @@ panfrost_emit_varying_descriptor( bool captured = ((vs->so_mask & (1ll << loc)) ? true : false); if (captured) { - struct pipe_stream_output o = pan_get_so(so, loc); + struct pipe_stream_output o = pan_get_so(&so, loc); unsigned dst_offset = o.dst_offset * 4; /* dwords */ vs->varyings[i].src_offset = dst_offset; @@ -259,7 +259,7 @@ panfrost_emit_varying_descriptor( bool captured = ((vs->so_mask & (1ll << loc)) ? true : false); if (!captured) continue; - struct pipe_stream_output o = pan_get_so(so, loc); + struct pipe_stream_output o = pan_get_so(&so, loc); so_count = MAX2(so_count, o.output_buffer + 1); } @@ -332,7 +332,7 @@ panfrost_emit_varying_descriptor( bool captured = ((vs->so_mask & (1ll << loc)) ? true : false); if (!captured) continue; - struct pipe_stream_output o = pan_get_so(so, loc); + struct pipe_stream_output o = pan_get_so(&so, loc); ovs[i].index = o.output_buffer; /* Set the type appropriately. TODO: Integer varyings XXX */ -- cgit v1.2.3