aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-07-11 08:12:49 -0600
committerBrian Paul <[email protected]>2017-07-12 10:58:02 -0600
commit8871c3ccf6eda1cd99eedc87da15e852193f7987 (patch)
treef60c671189ce33bab023777946b25da6862d500a /src
parent459274144dbd9227a57858316b996cede9094bca (diff)
draw: s/unsigned/enum tgsi_semantic/
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_wide_point.c4
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_exec.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
index adb6120d834..1329ab4e7c0 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
@@ -76,7 +76,7 @@ struct widepoint_stage {
uint texcoord_gen_slot[PIPE_MAX_SHADER_OUTPUTS];
/* TGSI_SEMANTIC to which sprite_coord_enable applies */
- unsigned sprite_coord_semantic;
+ enum tgsi_semantic sprite_coord_semantic;
int psize_slot;
};
@@ -242,7 +242,7 @@ widepoint_first_point(struct draw_stage *stage,
*/
for (i = 0; i < fs->info.num_inputs; i++) {
int slot;
- const unsigned sn = fs->info.input_semantic_name[i];
+ const enum tgsi_semantic sn = fs->info.input_semantic_name[i];
const unsigned si = fs->info.input_semantic_index[i];
if (sn == wide->sprite_coord_semantic) {
diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c
index 5125eb4dff1..9e1db4abeed 100644
--- a/src/gallium/auxiliary/draw/draw_vs_exec.c
+++ b/src/gallium/auxiliary/draw/draw_vs_exec.c
@@ -169,7 +169,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
*/
for (j = 0; j < max_vertices; j++) {
for (slot = 0; slot < shader->info.num_outputs; slot++) {
- unsigned name = shader->info.output_semantic_name[slot];
+ enum tgsi_semantic name = shader->info.output_semantic_name[slot];
if(clamp_vertex_color &&
(name == TGSI_SEMANTIC_COLOR || name == TGSI_SEMANTIC_BCOLOR))
{