diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-01-07 15:54:16 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-01-13 10:35:12 -0800 |
commit | b85a229e1f542426b1c8000569d89cd4768b9339 (patch) | |
tree | a770a5444309a93cc7e574f95935e7a5a62016c9 /src/glsl/nir | |
parent | 92f177386954caced2e7ddca156917cf166f9c23 (diff) | |
download | external_mesa3d-b85a229e1f542426b1c8000569d89cd4768b9339.zip external_mesa3d-b85a229e1f542426b1c8000569d89cd4768b9339.tar.gz external_mesa3d-b85a229e1f542426b1c8000569d89cd4768b9339.tar.bz2 |
glsl: Delete the ir_binop_bfm and ir_triop_bfi opcodes.
TGSI doesn't use these - it just translates ir_quadop_bitfield_insert
directly. NIR can handle ir_quadop_bitfield_insert as well.
These opcodes were only used for i965, and with Jason's recent patches,
we can do this lowering in NIR (which also gains us SPIR-V handling).
So there's not much point to retaining this GLSL IR lowering code.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/glsl_to_nir.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index 12efb44..c7399eb 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -1721,7 +1721,6 @@ nir_visitor::visit(ir_expression *ir) case ir_binop_pack_half_2x16_split: result = nir_pack_half_2x16_split(&b, srcs[0], srcs[1]); break; - case ir_binop_bfm: result = nir_bfm(&b, srcs[0], srcs[1]); break; case ir_binop_ldexp: result = nir_ldexp(&b, srcs[0], srcs[1]); break; case ir_triop_fma: result = nir_ffma(&b, srcs[0], srcs[1], srcs[2]); @@ -1735,9 +1734,6 @@ nir_visitor::visit(ir_expression *ir) else result = nir_fcsel(&b, srcs[0], srcs[1], srcs[2]); break; - case ir_triop_bfi: - result = nir_bfi(&b, srcs[0], srcs[1], srcs[2]); - break; case ir_triop_bitfield_extract: result = (out_type == GLSL_TYPE_INT) ? nir_ibitfield_extract(&b, srcs[0], srcs[1], srcs[2]) : |