mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
35879fe829
commit
53b83899e0
2 changed files with 2 additions and 2 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue