diff options
author | Jason Ekstrand <[email protected]> | 2020-04-18 11:52:20 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-21 06:16:13 +0000 |
commit | 7c43b8ce1b82f41e03147f824e87195ca8f1cb49 (patch) | |
tree | 7e5043bdec567e0485dad81513359d7af60198f4 /src/compiler | |
parent | 4386c06770508d86eaa51839871767887f903d1a (diff) |
nir: Delete the fnoise opcodes
As of the previous commit, they are never used.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4624>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_constant_expressions.py | 3 | ||||
-rw-r--r-- | src/compiler/nir/nir_opcodes.py | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/compiler/nir/nir_constant_expressions.py b/src/compiler/nir/nir_constant_expressions.py index 8b8cd5ffa69..90ee5c339b6 100644 --- a/src/compiler/nir/nir_constant_expressions.py +++ b/src/compiler/nir/nir_constant_expressions.py @@ -420,8 +420,7 @@ struct ${type}${width}_vec { % else: ## Splat the value to all components. This way expressions which ## write the same value to all components don't need to explicitly - ## write to dest. One such example is fnoise which has a - ## const_expr of 0.0f. + ## write to dest. dst.x = dst.y = dst.z = dst.w = ${op.const_expr}; % endif diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 57be67320c5..57778e6cd3e 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -458,12 +458,6 @@ for (unsigned bit = 0; bit < bit_size; bit++) { } """) - -for i in range(1, 5): - for j in range(1, 5): - unop_horiz("fnoise{0}_{1}".format(i, j), i, tfloat, j, tfloat, "0.0f") - - # AMD_gcn_shader extended instructions unop_horiz("cube_face_coord", 2, tfloat32, 3, tfloat32, """ dst.x = dst.y = 0.0; |