summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PipelineUtils.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-09-06 14:37:57 +1200
committerGitHub <noreply@github.com>2026-09-06 14:37:57 +1200
commitdebe8e9fd974517062a7622142bba2ecce0e6c60 (patch)
treef635c3fb95812b7c29ec60fe867522068783e8d8 /Source/Core/VideoCommon/PipelineUtils.cpp
parentbd389f6b003e9b2f910039a00262176672c2f56f (diff)
parente5eabd08f583fbdd3bb2551778e5ecb67dff0843 (diff)
Merge pull request #14789 from phire/optimise_vs_uid
Optimize vertex_shader_uid_data down to 28 bytes
Diffstat (limited to 'Source/Core/VideoCommon/PipelineUtils.cpp')
-rw-r--r--Source/Core/VideoCommon/PipelineUtils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PipelineUtils.cpp b/Source/Core/VideoCommon/PipelineUtils.cpp
index 40d9d08458..7562c99d2e 100644
--- a/Source/Core/VideoCommon/PipelineUtils.cpp
+++ b/Source/Core/VideoCommon/PipelineUtils.cpp
@@ -125,13 +125,12 @@ GXPipelineUid ApplyDriverBugs(const GXPipelineUid& in)
vertex_shader_uid_data* vs = out.vs_uid.GetUidData();
const PortableVertexDeclaration& decl = out.vertex_format->GetVertexDeclaration();
vs->position_has_3_elems = decl.position.components >= 3;
- vs->texcoord_elem_count = 0;
for (int i = 0; i < 8; i++)
{
if (decl.texcoords[i].enable)
{
ASSERT(decl.texcoords[i].components <= 3);
- vs->texcoord_elem_count |= decl.texcoords[i].components << (i * 2);
+ vs->texGenInfo[i].texcoord_elem_count = decl.texcoords[i].components;
}
}
out.vertex_format = nullptr;