nv2a/glsl: Add swizzled attr check

This commit is contained in:
Matt Borgerson 2024-07-30 00:00:33 -07:00 committed by mborgerson
parent 6ba917fed9
commit 20f318f437
1 changed files with 2 additions and 0 deletions

View File

@ -98,9 +98,11 @@ MString *pgraph_gen_vsh_glsl(const ShaderState *state, bool prefix_outputs)
for (i = 0; i < NV2A_VERTEXSHADER_ATTRIBUTES; i++) {
bool is_uniform = state->uniform_attrs & (1 << i);
bool is_swizzled = state->swizzle_attrs & (1 << i);
bool is_compressed = state->compressed_attrs & (1 << i);
assert(!(is_uniform && is_compressed));
assert(!(is_uniform && is_swizzled));
if (is_uniform) {
mstring_append_fmt(header, "vec4 v%d = inlineValue[%d];\n", i,