Reviewed-by: Marek Olšák <marek.olsak@amd.com>
result = ctx->abi->base_vertex;
break;
}
+ case nir_intrinsic_load_local_group_size:
+ result = ctx->abi->load_local_group_size(ctx->abi);
+ break;
case nir_intrinsic_load_vertex_id_zero_base: {
result = ctx->abi->vertex_id;
break;
LLVMValueRef (*load_sample_position)(struct ac_shader_abi *abi,
LLVMValueRef sample_id);
+ LLVMValueRef (*load_local_group_size)(struct ac_shader_abi *abi);
+
/* Whether to clamp the shadow reference value to [0,1]on VI. Radeonsi currently
* uses it due to promoting D16 to D32, but radv needs it off. */
bool clamp_shadow_reference;
ctx->abi.load_sample_position = load_sample_position;
break;
case PIPE_SHADER_COMPUTE:
+ ctx->abi.load_local_group_size = get_block_size;
break;
default:
assert(!"Unsupported shader type");