mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Allocate unused variables with register reservations on SM1.
This commit is contained in:
committed by
Alexandre Julliard
parent
7b3644d9f2
commit
657e460d11
Notes:
Alexandre Julliard
2024-05-13 22:57:39 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/851
@@ -4529,7 +4529,7 @@ static void allocate_const_registers(struct hlsl_ctx *ctx, struct hlsl_ir_functi
|
||||
{
|
||||
unsigned int reg_size = var->data_type->reg_size[HLSL_REGSET_NUMERIC];
|
||||
|
||||
if (!var->is_uniform || !var->last_read || reg_size == 0)
|
||||
if (!var->is_uniform || reg_size == 0)
|
||||
continue;
|
||||
|
||||
if (var->reg_reservation.reg_type == 'c')
|
||||
|
Reference in New Issue
Block a user