diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-21 09:41:24 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 10:38:31 -0700 |
commit | aa404120e1ae29f8a7ac1a661fbf9ca7101d1120 (patch) | |
tree | e4f4d403a29b8e2295eafd49c687fa8339f9e212 /src/gallium | |
parent | 27b6264630144608b5be5b529b97d8c164e05108 (diff) |
panfrost: Pass stream_output_info by reference
It's a large structure, apparently.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_varyings.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 */ |