summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-22 16:34:13 -0800
committerJason Ekstrand <[email protected]>2016-01-22 16:34:13 -0800
commit53b83899e084f121a35c75539ad9888d5641ec59 (patch)
tree70c526d3149613b00adb6ba256e20b4a8a39eaf1 /src/vulkan/gen7_state.c
parent35879fe8295cca5483d4eb42e19298e36c00b903 (diff)
genX/state: Set CubeSurfaceControlMode to OVERRIDE
This makes it act like the address mode is set to TEXCOORDMODE_CUBE whenever this sampler is combined with a cube surface. This *should* be what we need for Vulkan. Interestingly, the PRM contains a programming note for this field that says simply, "This field must be set to CUBECTRLMODE_PROGRAMMED". However, emprical evidence suggests that it does what the PRM says it does and OVERRIDE is just fine.
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r--src/vulkan/gen7_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c
index 1f829be9121..eff5dd20eb7 100644
--- a/src/vulkan/gen7_state.c
+++ b/src/vulkan/gen7_state.c
@@ -100,7 +100,7 @@ VkResult genX(CreateSampler)(
.ChromaKeyIndex = 0,
.ChromaKeyMode = 0,
.ShadowFunction = vk_to_gen_compare_op[pCreateInfo->compareOp],
- .CubeSurfaceControlMode = 0,
+ .CubeSurfaceControlMode = OVERRIDE,
.BorderColorPointer =
device->border_colors.offset +