From 47fcbc335b3144f398a346eee0ab8710c623598f Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 17 Sep 2024 13:17:17 +0200 Subject: [PATCH] vkd3d-shader/d3dbc: Avoid D3DXSHADER_CONSTANTTABLE. --- libs/vkd3d-shader/d3dbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/d3dbc.c b/libs/vkd3d-shader/d3dbc.c index 9ac85de6..8f7e5cb6 100644 --- a/libs/vkd3d-shader/d3dbc.c +++ b/libs/vkd3d-shader/d3dbc.c @@ -1780,7 +1780,7 @@ void write_sm1_uniforms(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *buff size_offset = put_u32(buffer, 0); ctab_offset = put_u32(buffer, VKD3D_MAKE_TAG('C','T','A','B')); - ctab_start = put_u32(buffer, sizeof(D3DXSHADER_CONSTANTTABLE)); + ctab_start = put_u32(buffer, 7 * sizeof(uint32_t)); /* CTAB header size. */ creator_offset = put_u32(buffer, 0); put_u32(buffer, sm1_version(ctx->profile->type, ctx->profile->major_version, ctx->profile->minor_version)); put_u32(buffer, uniform_count);