mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radv: move alpha_adjust into conditional during vertex input updating
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13320>
This commit is contained in:
parent
1b8bdecf6e
commit
420e33f551
1 changed files with 4 additions and 2 deletions
|
|
@ -5498,8 +5498,10 @@ radv_CmdSetVertexInputEXT(VkCommandBuffer commandBuffer, uint32_t vertexBindingD
|
|||
}
|
||||
}
|
||||
|
||||
state->alpha_adjust_lo |= (alpha_adjust & 0x1) << loc;
|
||||
state->alpha_adjust_hi |= (alpha_adjust >> 1) << loc;
|
||||
if (alpha_adjust) {
|
||||
state->alpha_adjust_lo |= (alpha_adjust & 0x1) << loc;
|
||||
state->alpha_adjust_hi |= (alpha_adjust >> 1) << loc;
|
||||
}
|
||||
|
||||
if (post_shuffle)
|
||||
state->post_shuffle |= 1u << loc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue