diff options
author | Nanley Chery <[email protected]> | 2016-01-22 12:17:25 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-22 16:12:52 -0800 |
commit | 3cd8c0bb04ffd56a843bc55921a6a174f04ebe14 (patch) | |
tree | f9771ebd76a4cb52332d12e224b9a03cc000cd7e /src/vulkan/gen8_state.c | |
parent | 107a109d1ce18169231865252d0d5d6649f0ecf5 (diff) |
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.
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r-- | src/vulkan/gen8_state.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 |