vkd3d-shader/hlsl: Track whether a variable is read in any entry function.

This commit is contained in:
Shaun Ren
2024-10-04 20:15:57 -04:00
committed by Henri Verbeet
parent f15a1c0b23
commit 5f8570b933
Notes: Henri Verbeet 2024-10-15 17:03:41 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1154
3 changed files with 20 additions and 2 deletions

View File

@@ -3864,7 +3864,7 @@ static void write_sm4_rdef(struct hlsl_ctx *ctx, struct dxbc_writer *dxbc)
{
uint32_t flags = 0;
if (var->last_read)
if (var->is_read)
flags |= D3D_SVF_USED;
put_u32(&buffer, 0); /* name */