mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-17 06:38:21 +02:00
radv: fix a typo when determining if a VS needs a prolog
This is harmless because shader_stages is filtered based on lib flags. Also improve the comment while I'm at it. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40714>
This commit is contained in:
parent
580381d9e7
commit
dc5e84d47d
1 changed files with 4 additions and 2 deletions
|
|
@ -1943,8 +1943,10 @@ radv_generate_graphics_state_key(const struct radv_device *device, const struct
|
|||
key.vs.has_prolog = true;
|
||||
}
|
||||
|
||||
/* Compile the pre-rasterization stages only when the vertex input interface is missing. */
|
||||
if ((state->shader_stages && VK_SHADER_STAGE_VERTEX_BIT) && !state->vi) {
|
||||
/* Make sure to require a VS prolog when the VS is compiled without the vertex input state (this
|
||||
* can happen with GPL).
|
||||
*/
|
||||
if ((state->shader_stages & VK_SHADER_STAGE_VERTEX_BIT) && !state->vi) {
|
||||
key.vs.has_prolog = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue