mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-16 08:20:36 +01:00
spirv: Use the system value version of gl_FrontFace
SPIR-V treats it as an input but NIR wants the system value. This shouldn't have been too much of a surprise given that we have to do the same conversion in the GLSL IR to NIR pass. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
40013c5033
commit
295e03c980
1 changed files with 2 additions and 2 deletions
|
|
@ -839,8 +839,8 @@ vtn_get_builtin_location(struct vtn_builder *b,
|
|||
assert(*mode == nir_var_shader_in);
|
||||
break;
|
||||
case SpvBuiltInFrontFacing:
|
||||
*location = VARYING_SLOT_FACE;
|
||||
assert(*mode == nir_var_shader_in);
|
||||
*location = SYSTEM_VALUE_FRONT_FACE;
|
||||
set_mode_system_value(mode);
|
||||
break;
|
||||
case SpvBuiltInSampleId:
|
||||
*location = SYSTEM_VALUE_SAMPLE_ID;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue