From 0ec63752b710496d40654b2aa5a01c0cf98d6a20 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Tue, 30 Jul 2024 00:00:33 -0700 Subject: [PATCH] nv2a/glsl: Add swizzled attr check --- hw/xbox/nv2a/pgraph/glsl/vsh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xbox/nv2a/pgraph/glsl/vsh.c b/hw/xbox/nv2a/pgraph/glsl/vsh.c index 1cc1753f058..a60fbe265dd 100644 --- a/hw/xbox/nv2a/pgraph/glsl/vsh.c +++ b/hw/xbox/nv2a/pgraph/glsl/vsh.c @@ -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,