diff options
author | Marek Olšák <[email protected]> | 2014-12-07 19:30:08 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-12-10 21:59:37 +0100 |
commit | 161534737c643e15bacf77b389daa18da325b74f (patch) | |
tree | 878d225ad66f18eb1244e70c7a77171c5f0b80c0 /src/gallium/drivers/radeonsi/si_shader.h | |
parent | 20e570d1156b76916cd6bf2a0113f548de8c4644 (diff) |
radeonsi: get info about VS outputs from tgsi_shader_info
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index 5e8c9e6365e..124615e19c6 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -159,15 +159,16 @@ struct si_shader { unsigned ps_input_param_offset[PIPE_MAX_SHADER_INPUTS]; bool uses_instanceid; - bool vs_out_misc_write; - bool vs_out_point_size; - bool vs_out_edgeflag; - bool vs_out_layer; unsigned nr_pos_exports; - unsigned clip_dist_write; bool is_gs_copy_shader; }; +static inline struct tgsi_shader_info *si_get_vs_info(struct si_context *sctx) +{ + return sctx->gs_shader ? &sctx->gs_shader->info + : &sctx->vs_shader->info; +} + static inline struct si_shader* si_get_vs_state(struct si_context *sctx) { if (sctx->gs_shader) |