diff options
author | Jason Ekstrand <[email protected]> | 2015-11-17 07:07:02 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-17 12:14:24 -0800 |
commit | f0390bcad6b5e1f1e94bbf762ccc98bf499c022b (patch) | |
tree | 6275d5a904ab73661a3e3a627c7f75fed2d3f8b9 /src/vulkan/anv_device.c | |
parent | 45320f677bb7d60fd301273d182ad0823d633137 (diff) |
anv: Add initial Haswell support
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 0643944fa23..406792af95e 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -83,8 +83,9 @@ anv_physical_device_init(struct anv_physical_device *device, goto fail; } - if (device->info->gen == 7 && - !device->info->is_haswell && !device->info->is_baytrail) { + if (device->info->is_haswell) { + fprintf(stderr, "WARNING: Haswell Vulkan support is incomplete\n"); + } else if (device->info->gen == 7 && !device->info->is_baytrail) { fprintf(stderr, "WARNING: Ivy Bridge Vulkan support is incomplete\n"); } else if (device->info->gen == 8 && !device->info->is_cherryview) { /* Briadwell is as fully supported as anything */ @@ -1439,7 +1440,10 @@ anv_fill_buffer_surface_state(struct anv_device *device, void *state, { switch (device->info.gen) { case 7: - gen7_fill_buffer_surface_state(state, format, offset, range, stride); + if (device->info.is_haswell) + gen75_fill_buffer_surface_state(state, format, offset, range, stride); + else + gen7_fill_buffer_surface_state(state, format, offset, range, stride); break; case 8: gen8_fill_buffer_surface_state(state, format, offset, range, stride); |