diff options
author | Brian Paul <[email protected]> | 2018-02-06 22:17:10 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-02-07 18:43:01 -0700 |
commit | b99cb13002e8ac19da2b7a1a5e9a36b35156e385 (patch) | |
tree | 43beaface37e17f493f0062d53309b54bfb58d3e | |
parent | 174f3a4ab7ca331ac10e10938d958a84acd68dde (diff) |
tgsi: use tgsi_semantic enum type in ureg code
Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ureg.c | 24 | ||||
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ureg.h | 22 |
2 files changed, 23 insertions, 23 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index bb7da4b074b..b3f8b1e14e5 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c @@ -112,7 +112,7 @@ struct ureg_program int next_shader_processor; struct { - unsigned semantic_name; + enum tgsi_semantic semantic_name; unsigned semantic_index; enum tgsi_interpolate_mode interp; unsigned char cylindrical_wrap; @@ -127,13 +127,13 @@ struct ureg_program unsigned vs_inputs[PIPE_MAX_ATTRIBS/32]; struct { - unsigned semantic_name; + enum tgsi_semantic semantic_name; unsigned semantic_index; } system_value[UREG_MAX_SYSTEM_VALUE]; unsigned nr_system_values; struct { - unsigned semantic_name; + enum tgsi_semantic semantic_name; unsigned semantic_index; unsigned streams; unsigned usage_mask; /* = TGSI_WRITEMASK_* */ @@ -281,7 +281,7 @@ ureg_property(struct ureg_program *ureg, unsigned name, unsigned value) struct ureg_src ureg_DECL_fs_input_cyl_centroid_layout(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, unsigned cylindrical_wrap, @@ -334,7 +334,7 @@ out: struct ureg_src ureg_DECL_fs_input_cyl_centroid(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, unsigned cylindrical_wrap, @@ -363,7 +363,7 @@ ureg_DECL_vs_input( struct ureg_program *ureg, struct ureg_src ureg_DECL_input_layout(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned index, unsigned usage_mask, @@ -378,7 +378,7 @@ ureg_DECL_input_layout(struct ureg_program *ureg, struct ureg_src ureg_DECL_input(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned array_id, unsigned array_size) @@ -390,7 +390,7 @@ ureg_DECL_input(struct ureg_program *ureg, struct ureg_src ureg_DECL_system_value(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index) { unsigned i; @@ -418,7 +418,7 @@ out: struct ureg_dst ureg_DECL_output_layout(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned streams, unsigned index, @@ -492,7 +492,7 @@ ureg_DECL_output(struct ureg_program *ureg, struct ureg_dst ureg_DECL_output_array(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned array_id, unsigned array_size) @@ -1505,7 +1505,7 @@ emit_decl_semantic(struct ureg_program *ureg, unsigned file, unsigned first, unsigned last, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned streams, unsigned usage_mask, @@ -1574,7 +1574,7 @@ emit_decl_fs(struct ureg_program *ureg, unsigned file, unsigned first, unsigned last, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interpolate, unsigned cylindrical_wrap, diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h index 2bab23dc4f6..03496896aa4 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h @@ -168,7 +168,7 @@ ureg_property(struct ureg_program *ureg, unsigned name, unsigned value); struct ureg_src ureg_DECL_fs_input_cyl_centroid_layout(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, unsigned cylindrical_wrap, @@ -180,7 +180,7 @@ ureg_DECL_fs_input_cyl_centroid_layout(struct ureg_program *, struct ureg_src ureg_DECL_fs_input_cyl_centroid(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, unsigned cylindrical_wrap, @@ -190,7 +190,7 @@ ureg_DECL_fs_input_cyl_centroid(struct ureg_program *, static inline struct ureg_src ureg_DECL_fs_input_cyl(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode, unsigned cylindrical_wrap) @@ -205,7 +205,7 @@ ureg_DECL_fs_input_cyl(struct ureg_program *ureg, static inline struct ureg_src ureg_DECL_fs_input(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, enum tgsi_interpolate_mode interp_mode) { @@ -222,7 +222,7 @@ ureg_DECL_vs_input( struct ureg_program *, struct ureg_src ureg_DECL_input_layout(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned index, unsigned usage_mask, @@ -231,19 +231,19 @@ ureg_DECL_input_layout(struct ureg_program *, struct ureg_src ureg_DECL_input(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned array_id, unsigned array_size); struct ureg_src ureg_DECL_system_value(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index); struct ureg_dst ureg_DECL_output_layout(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned streams, unsigned index, @@ -253,7 +253,7 @@ ureg_DECL_output_layout(struct ureg_program *, struct ureg_dst ureg_DECL_output_masked(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned usage_mask, unsigned array_id, @@ -261,12 +261,12 @@ ureg_DECL_output_masked(struct ureg_program *, struct ureg_dst ureg_DECL_output(struct ureg_program *, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index); struct ureg_dst ureg_DECL_output_array(struct ureg_program *ureg, - unsigned semantic_name, + enum tgsi_semantic semantic_name, unsigned semantic_index, unsigned array_id, unsigned array_size); |