mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
anv: move timestamp vfunc initialization to genX code
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>
This commit is contained in:
parent
7f5613903c
commit
ddc37cf430
2 changed files with 2 additions and 17 deletions
|
|
@ -38,23 +38,6 @@ struct anv_measure_batch {
|
|||
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);
|
||||
|
|
|
|||
|
|
@ -554,6 +554,8 @@ genX(init_physical_device_state)(ASSERTED struct anv_physical_device *pdevice)
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue