From: Nanley Chery Date: Fri, 22 Jan 2016 20:17:25 +0000 (-0800) Subject: gen8_state: Enable all cube faces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3cd8c0bb04ffd56a843bc55921a6a174f04ebe14;p=mesa.git 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. --- 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