getX/state: Set LOD pre-clamp to OpenGL mode
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Jan 2016 01:45:12 +0000 (17:45 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Jan 2016 01:51:35 +0000 (17:51 -0800)
This gets us another couple hundred sampler tests

src/vulkan/gen7_state.c
src/vulkan/gen8_state.c

index b24e484262afc977b5c0394a74b1462b31b9af67..0c830d5c8edb74206378eb14f9c6030e2ff2f6d7 100644 (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,
index 53a75ef5fb6723020fd5a0b4ca0baa92514a9f0d..d42d0b1b5a6d3b7d64e0dc2d6f99462a2f749ada 100644 (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