diff options
author | Jason Ekstrand <[email protected]> | 2016-01-05 13:53:05 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-18 17:21:05 -0800 |
commit | 580b2e85e48dbb82d168192c9f085d1c70355795 (patch) | |
tree | 05e93dd0b51ee98d488c71e961f62c2c39d78577 /src/vulkan/anv_device.c | |
parent | 587842a0cab1e24f561bf99de94e91fa6710f2a5 (diff) |
isl/device: Add a flag for bit 6 swizzling
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index abc9ed66dd0..ddf5f4bed29 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -123,6 +123,8 @@ anv_physical_device_init(struct anv_physical_device *device, goto fail; } + bool swizzled = anv_gem_get_bit6_swizzle(fd, I915_TILING_X); + close(fd); brw_process_intel_debug_variable(); @@ -135,7 +137,8 @@ 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, device->info); + /* XXX: Actually detect bit6 swizzling */ + isl_device_init(&device->isl_dev, device->info, swizzled); return VK_SUCCESS; |