diff options
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_intrinsics.h | 12 | ||||
-rw-r--r-- | src/compiler/nir/nir_lower_system_values.c | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/compiler/nir/nir_intrinsics.h b/src/compiler/nir/nir_intrinsics.h index bb8cfac6620..20bef339ac4 100644 --- a/src/compiler/nir/nir_intrinsics.h +++ b/src/compiler/nir/nir_intrinsics.h @@ -102,7 +102,7 @@ INTRINSIC(shader_clock, 0, ARR(0), true, 2, 0, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ * * GLSL functions from ARB_shader_ballot. */ -INTRINSIC(ballot, 1, ARR(1), true, 1, 0, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE) +INTRINSIC(ballot, 1, ARR(1), true, 0, 0, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE) INTRINSIC(read_invocation, 2, ARR(0, 1), true, 0, 0, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE) INTRINSIC(read_first_invocation, 1, ARR(0), true, 0, 0, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE) @@ -350,11 +350,11 @@ SYSTEM_VALUE(layer_id, 1, 0, xx, xx, xx) SYSTEM_VALUE(view_index, 1, 0, xx, xx, xx) SYSTEM_VALUE(subgroup_size, 1, 0, xx, xx, xx) SYSTEM_VALUE(subgroup_invocation, 1, 0, xx, xx, xx) -SYSTEM_VALUE(subgroup_eq_mask, 1, 0, xx, xx, xx) -SYSTEM_VALUE(subgroup_ge_mask, 1, 0, xx, xx, xx) -SYSTEM_VALUE(subgroup_gt_mask, 1, 0, xx, xx, xx) -SYSTEM_VALUE(subgroup_le_mask, 1, 0, xx, xx, xx) -SYSTEM_VALUE(subgroup_lt_mask, 1, 0, xx, xx, xx) +SYSTEM_VALUE(subgroup_eq_mask, 0, 0, xx, xx, xx) +SYSTEM_VALUE(subgroup_ge_mask, 0, 0, xx, xx, xx) +SYSTEM_VALUE(subgroup_gt_mask, 0, 0, xx, xx, xx) +SYSTEM_VALUE(subgroup_le_mask, 0, 0, xx, xx, xx) +SYSTEM_VALUE(subgroup_lt_mask, 0, 0, xx, xx, xx) SYSTEM_VALUE(subgroup_id, 1, 0, xx, xx, xx) /* Blend constant color values. Float values are clamped. */ diff --git a/src/compiler/nir/nir_lower_system_values.c b/src/compiler/nir/nir_lower_system_values.c index 39b1a260bd0..48c497ef411 100644 --- a/src/compiler/nir/nir_lower_system_values.c +++ b/src/compiler/nir/nir_lower_system_values.c @@ -126,6 +126,7 @@ convert_block(nir_block *block, nir_builder *b) nir_intrinsic_from_system_value(var->data.location); nir_intrinsic_instr *load = nir_intrinsic_instr_create(b->shader, op); nir_ssa_dest_init(&load->instr, &load->dest, 1, 64, NULL); + load->num_components = 1; nir_builder_instr_insert(b, &load->instr); sysval = &load->dest.ssa; break; |