anv: Make border colors the right size and alignment on HSW

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand
2019-06-18 10:15:24 -05:00
parent 51076eb87c
commit 58cb865313
2 changed files with 48 additions and 12 deletions

View File

@@ -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;