vkd3d-shader/hlsl: Get rid of the "intrinsic" field of struct hlsl_ir_function.

We have a different system of generating intrinsics, which makes it easier to
deal with "polymorphic" arithmetic functions.

Defining and storing intrinsics as hlsl_ir_function_decls would also require
more space in memory (and more optimization passes to get rid of the parameter
variables), and doesn't really save us any effort in terms of source code.
This commit is contained in:
Zebediah Figura
2021-09-11 17:05:14 -05:00
committed by Alexandre Julliard
parent 9cc7aaf5a1
commit 61f0d6d151
Notes: Alexandre Julliard 2023-01-13 22:23:38 +01:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/47
3 changed files with 1 additions and 14 deletions

View File

@@ -3594,7 +3594,7 @@ hlsl_prog:
const struct hlsl_ir_function_decl *decl;
decl = get_func_decl(&ctx->functions, $2.name, $2.decl->parameters);
if (decl && !decl->func->intrinsic)
if (decl)
{
if (decl->has_body && $2.decl->has_body)
{