Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Felix DeGrood <felix.j.degrood@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23131>
void
anv_measure_device_init(struct anv_physical_device *device)
{
- switch (device->info.verx10) {
- case 125:
- device->cmd_emit_timestamp = &gfx125_cmd_emit_timestamp;
- break;
- case 120:
- device->cmd_emit_timestamp = &gfx12_cmd_emit_timestamp;
- break;
- case 110:
- device->cmd_emit_timestamp = &gfx11_cmd_emit_timestamp;
- break;
- case 90:
- device->cmd_emit_timestamp = &gfx9_cmd_emit_timestamp;
- break;
- default:
- assert(false);
- }
-
/* initialise list of measure structures that await rendering */
struct intel_measure_device *measure_device = &device->measure_device;
intel_measure_init(measure_device);
genX(grl_load_rt_uuid)(pdevice->rt_uuid);
pdevice->max_grl_scratch_size = genX(grl_max_scratch_size)();
#endif
+
+ pdevice->cmd_emit_timestamp = genX(cmd_emit_timestamp);
}
VkResult