anv/gen7: Save kernel command parser version

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Jordan Justen
2016-03-28 14:45:24 -07:00
parent f60683b32a
commit 1a3adae84a
2 changed files with 12 additions and 0 deletions

View File

@@ -99,6 +99,17 @@ anv_physical_device_init(struct anv_physical_device *device,
goto fail;
}
device->cmd_parser_version = -1;
if (device->info->gen == 7) {
device->cmd_parser_version =
anv_gem_get_param(fd, I915_PARAM_CMD_PARSER_VERSION);
if (device->cmd_parser_version == -1) {
result = vk_errorf(VK_ERROR_INITIALIZATION_FAILED,
"failed to get command parser version");
goto fail;
}
}
if (anv_gem_get_aperture(fd, &device->aperture_size) == -1) {
result = vk_errorf(VK_ERROR_INITIALIZATION_FAILED,
"failed to get aperture size: %m");

View File

@@ -546,6 +546,7 @@ struct anv_physical_device {
uint64_t aperture_size;
struct brw_compiler * compiler;
struct isl_device isl_dev;
int cmd_parser_version;
};
struct anv_wsi_interaface;