From: Jason Ekstrand Date: Tue, 19 Jan 2016 01:45:12 +0000 (-0800) Subject: getX/state: Set LOD pre-clamp to OpenGL mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3276610ea6a3c36176fcf0089a47093d12f9f982;p=mesa.git getX/state: Set LOD pre-clamp to OpenGL mode This gets us another couple hundred sampler tests --- 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