diff options
author | Kenneth Graunke <[email protected]> | 2019-02-28 01:13:33 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-03-07 11:39:27 -0800 |
commit | 4787bc944a2d219dd04201eef699d9f999b479b8 (patch) | |
tree | 082f124a94a40b269150e8b2e5c42ef91f393d41 /src/intel/vulkan/anv_device.c | |
parent | 575f8e8b60ab06e559a62ffe90913453352f32b4 (diff) |
isl: Add a swizzle parameter to isl_buffer_fill_state()
This is necessary for legacy texture buffer object formats, where we'll
need to use a swizzle to fake e.g. luminance.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 92e8f40278f..963f108a0e8 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3324,6 +3324,7 @@ anv_fill_buffer_surface_state(struct anv_device *device, struct anv_state state, .mocs = device->default_mocs, .size_B = range, .format = format, + .swizzle = ISL_SWIZZLE_IDENTITY, .stride_B = stride); } |