summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-13 11:12:46 -0800
committerChad Versace <[email protected]>2015-11-13 11:14:03 -0800
commit738eaa8acff2bc4a351a62303ac43d1195160ec4 (patch)
tree9a366b0b2fca09725b41202b67a0c67d99037ef4 /src/vulkan/anv_device.c
parentba467467f49577381be651643dd7ff184b998590 (diff)
isl: Embed brw_device_info in isl_device
Suggested-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 5d53deeb599..fb608592c1f 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -56,7 +56,6 @@ anv_physical_device_init(struct anv_physical_device *device,
{
VkResult result;
int fd;
- uint32_t gen10x;
fd = open(path, O_RDWR | O_CLOEXEC);
if (fd < 0)
@@ -82,10 +81,6 @@ anv_physical_device_init(struct anv_physical_device *device,
goto fail;
}
- gen10x = 10 * device->info->gen;
- if (device->info->is_haswell)
- gen10x += 5;
-
if (device->info->gen == 7 &&
!device->info->is_haswell && !device->info->is_baytrail) {
fprintf(stderr, "WARNING: Ivy Bridge Vulkan support is incomplete\n");
@@ -133,7 +128,7 @@ anv_physical_device_init(struct anv_physical_device *device,
device->compiler->shader_debug_log = compiler_debug_log;
device->compiler->shader_perf_log = compiler_perf_log;
- isl_device_init(&device->isl_dev, gen10x);
+ isl_device_init(&device->isl_dev, device->info);
return VK_SUCCESS;