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.
This commit is contained in:
Jason Ekstrand 2016-01-22 16:34:13 -08:00
parent 35879fe829
commit 53b83899e0
2 changed files with 2 additions and 2 deletions

View file

@ -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 +

View file

@ -357,7 +357,7 @@ VkResult genX(CreateSampler)(
.ChromaKeyIndex = 0,
.ChromaKeyMode = 0,
.ShadowFunction = vk_to_gen_compare_op[pCreateInfo->compareOp],
.CubeSurfaceControlMode = 0,
.CubeSurfaceControlMode = OVERRIDE,
.IndirectStatePointer = border_color_offset >> 6,