From a6321c4b5a038db4682e49e098e9368df7ea18c4 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 6 May 2020 18:48:35 +0200 Subject: [PATCH] r600: Fix warning regarding mixing enums and unsigned in ?: expression MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Gert Wollny Reviewed-by: Michel Dänzer Part-of: --- src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp b/src/gallium/drivers/r600/sb/sb_bc_parser.cpp index 6b19d61babe..abbb26c13c1 100644 --- a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp +++ b/src/gallium/drivers/r600/sb/sb_bc_parser.cpp @@ -476,7 +476,7 @@ int bc_parser::prepare_alu_group(cf_node* cf, alu_group_node *g) { n->src[s] = sh->get_const_value(src.value); } else if (src.sel == ALU_SRC_PS || src.sel == ALU_SRC_PV) { unsigned pgroup = !cgroup, prev_slot = src.sel == ALU_SRC_PS ? - SLOT_TRANS : src.chan; + ((unsigned)SLOT_TRANS) : src.chan; // XXX shouldn't happen but llvm backend uses PS on cayman if (prev_slot == SLOT_TRANS && ctx.is_cayman()) -- 2.30.2