hasvk: move cmd_emit_timestamp initialization to genX
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29997>
This commit is contained in:

committed by
Marge Bot

parent
b393ede8c8
commit
1279bba837
@@ -38,20 +38,6 @@ struct anv_measure_batch {
|
||||
void
|
||||
anv_measure_device_init(struct anv_physical_device *device)
|
||||
{
|
||||
switch (device->info.verx10) {
|
||||
case 80:
|
||||
device->cmd_emit_timestamp = &gfx8_cmd_emit_timestamp;
|
||||
break;
|
||||
case 75:
|
||||
device->cmd_emit_timestamp = &gfx75_cmd_emit_timestamp;
|
||||
break;
|
||||
case 70:
|
||||
device->cmd_emit_timestamp = &gfx7_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);
|
||||
|
@@ -106,6 +106,8 @@ void
|
||||
genX(init_physical_device_state)(ASSERTED struct anv_physical_device *pdevice)
|
||||
{
|
||||
assert(pdevice->info.verx10 == GFX_VERx10);
|
||||
|
||||
pdevice->cmd_emit_timestamp = genX(cmd_emit_timestamp);
|
||||
}
|
||||
|
||||
VkResult
|
||||
|
Reference in New Issue
Block a user