mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
r600: Fix warning regarding mixing enums and unsigned in ?: expression
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4939>
This commit is contained in:
parent
5469fcea75
commit
a6321c4b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue