getX/state: Set LOD pre-clamp to OpenGL mode

This gets us another couple hundred sampler tests
This commit is contained in:
Jason Ekstrand 2016-01-18 17:45:12 -08:00
parent 580b2e85e4
commit 3276610ea6
2 changed files with 2 additions and 1 deletions

View file

@ -98,6 +98,7 @@ VkResult genX(CreateSampler)(
struct GEN7_SAMPLER_STATE sampler_state = {
.SamplerDisable = false,
.TextureBorderColorMode = DX10OGL,
.LODPreClampEnable = OGL,
.BaseMipLevel = 0.0,
.MipModeFilter = vk_to_gen_mipmap_mode[pCreateInfo->mipmapMode],
.MagModeFilter = filter,

View file

@ -386,7 +386,7 @@ VkResult genX(CreateSampler)(
struct GENX(SAMPLER_STATE) sampler_state = {
.SamplerDisable = false,
.TextureBorderColorMode = DX10OGL,
.LODPreClampMode = 0,
.LODPreClampMode = CLAMP_OGL,
#if ANV_GEN == 8
.BaseMipLevel = 0.0,
#endif