Skip to content
Snippets Groups Projects

vkd3d-shader/hlsl: Add constant folding for 'fract'.

Merged Nikolay Sivov requested to merge nsivov/vkd3d:fold3 into master
1 unresolved thread

Signed-off-by: Nikolay Sivov nsivov@codeweavers.com

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
158 enum hlsl_base_type type = dst_type->base_type;
159 unsigned int k;
160
161 assert(type == src->node.data_type->base_type);
162
163 for (k = 0; k < dst_type->dimx; ++k)
164 {
165 switch (type)
166 {
167 case HLSL_TYPE_FLOAT:
168 case HLSL_TYPE_HALF:
169 dst->u[k].f = exp2f(src->value.u[k].f);
170 break;
171
172 default:
173 FIXME("Fold 'fract' for type %s.\n", debug_hlsl_type(ctx, dst_type));
  • Nikolay Sivov added 3 commits

    added 3 commits

    • 76fd4563 - vkd3d-shader/hlsl: Add constant folding for 'fract'.
    • 2a5579e2 - vkd3d-shader/hlsl: Add constant folding for 'exp2'.
    • 71b5723e - vkd3d-shader/hlsl: Add constant folding for 'sat'.

    Compare with previous version

  • Francisco Casas approved this merge request

    approved this merge request

  • Giovanni Mascellani approved this merge request

    approved this merge request

  • Henri Verbeet approved this merge request

    approved this merge request

  • Alexandre Julliard added 78 commits

    added 78 commits

    • 71b5723e...c6956212 - 75 commits from branch wine:master
    • c16c5caa - vkd3d-shader/hlsl: Add constant folding for 'fract'.
    • 89c99ccc - vkd3d-shader/hlsl: Add constant folding for 'exp2'.
    • 485cbe8c - vkd3d-shader/hlsl: Add constant folding for 'sat'.

    Compare with previous version

  • Alexandre Julliard approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading