vkd3d-shader/dxil: Rewrite sm6_value_is_constant() in terms of the value type.

This commit is contained in:
Giovanni Mascellani
2025-05-13 11:13:56 +02:00
committed by Henri Verbeet
parent fcb5650dbf
commit 0ac20b3029
Notes: Henri Verbeet 2025-06-10 18:06:02 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1546

View File

@@ -2296,7 +2296,7 @@ static bool sm6_value_is_handle(const struct sm6_value *value)
static inline bool sm6_value_is_constant(const struct sm6_value *value)
{
return sm6_value_is_register(value) && register_is_constant(&value->reg);
return value->value_type == VALUE_TYPE_CONSTANT;
}
static bool sm6_value_is_constant_zero(const struct sm6_value *value)