From 3cd8c0bb04ffd56a843bc55921a6a174f04ebe14 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Fri, 22 Jan 2016 12:17:25 -0800 Subject: [PATCH] gen8_state: Enable all cube faces These fields are ignored for non-cube surfaces. For cube surfaces these fields should be enabled when using TEXCOORDMODE_CLAMP and TEXCOORDMODE_CUBE. TODO: Determine if these are the only two modes used in Vulkan. --- src/vulkan/gen8_state.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 620a9d4ef13..823bfa047db 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -193,6 +193,12 @@ genX(fill_image_surface_state)(struct anv_device *device, void *state_map, .VerticalLineStrideOffset = 0, .SamplerL2BypassModeDisable = true, .RenderCacheReadWriteMode = WriteOnlyCache, + .CubeFaceEnablePositiveZ = 1, + .CubeFaceEnableNegativeZ = 1, + .CubeFaceEnablePositiveY = 1, + .CubeFaceEnableNegativeY = 1, + .CubeFaceEnablePositiveX = 1, + .CubeFaceEnableNegativeX = 1, .MemoryObjectControlState = GENX(MOCS), /* The driver sets BaseMipLevel in SAMPLER_STATE, not here in -- 2.30.2