.lower_iabs = true,
.lower_uadd_sat = true,
.lower_usub_sat = true,
- .lower_bitfield_extract = true,
- .lower_bitfield_insert_to_bitfield_select = true,
.has_fused_comp_and_csel = true,
.lower_find_msb_to_reverse = true,
.lower_to_scalar = true,
if (rscreen->info.family < CHIP_CEDAR)
rscreen->nir_options.force_indirect_unrolling_sampler = true;
+ if (rscreen->info.gfx_level >= EVERGREEN) {
+ rscreen->nir_options.lower_bitfield_extract = true;
+ rscreen->nir_options.lower_bitfield_insert_to_bitfield_select = true;
+ }
+
if (rscreen->info.gfx_level < EVERGREEN) {
/* Pre-EG doesn't have these ALU ops */
rscreen->nir_options.lower_bit_count = true;
rscreen->nir_options.lower_bitfield_reverse = true;
+ rscreen->nir_options.lower_bitfield_insert_to_shifts = true;
+ rscreen->nir_options.lower_bitfield_extract_to_shifts = true;
}
if (rscreen->info.gfx_level < CAYMAN) {
}
/* Each channel can only be loaded in one of three cycles,
* so if a channel is already used three times, we can't
- * add another source with this channel.
+ * add another source withthis channel.
* Since we want to move away from one channel to another, it
* is not important to know which is the old channel that will
* be freed by the channel switch.*/