Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
return SYSTEM_VALUE_SAMPLE_MASK_IN;
case nir_intrinsic_load_local_invocation_id:
return SYSTEM_VALUE_LOCAL_INVOCATION_ID;
+ case nir_intrinsic_load_work_group_id:
+ return SYSTEM_VALUE_WORK_GROUP_ID;
/* FINISHME: Add tessellation intrinsics.
return SYSTEM_VALUE_TESS_COORD;
return SYSTEM_VALUE_VERTICES_IN;
SYSTEM_VALUE(sample_mask_in, 1)
SYSTEM_VALUE(invocation_id, 1)
SYSTEM_VALUE(local_invocation_id, 3)
+SYSTEM_VALUE(work_group_id, 3)
/*
* The format of the indices depends on the type of the load. For uniforms,
case SYSTEM_VALUE_LOCAL_INVOCATION_ID:
op = nir_intrinsic_load_local_invocation_id;
break;
+ case SYSTEM_VALUE_WORK_GROUP_ID:
+ op = nir_intrinsic_load_work_group_id;
+ break;
default:
unreachable("not reached");
}