diff options
Diffstat (limited to 'src/intel/vulkan/genX_state.c')
-rw-r--r-- | src/intel/vulkan/genX_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c index 9276dc9470b..21b8cd648d4 100644 --- a/src/intel/vulkan/genX_state.c +++ b/src/intel/vulkan/genX_state.c @@ -341,8 +341,10 @@ VkResult genX(CreateSampler)( sampler->n_planes = 1; + uint32_t border_color_stride = GEN_IS_HASWELL ? 512 : 64; uint32_t border_color_offset = device->border_colors.offset + - pCreateInfo->borderColor * 64; + pCreateInfo->borderColor * + border_color_stride; #if GEN_GEN >= 9 unsigned sampler_reduction_mode = STD_FILTER; |