From 3276610ea6a3c36176fcf0089a47093d12f9f982 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 18 Jan 2016 17:45:12 -0800 Subject: [PATCH] getX/state: Set LOD pre-clamp to OpenGL mode This gets us another couple hundred sampler tests --- src/vulkan/gen7_state.c | 1 + src/vulkan/gen8_state.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index b24e484262a..0c830d5c8ed 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -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, diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 53a75ef5fb6..d42d0b1b5a6 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -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 -- 2.30.2