nir: allow specifying a set of opcodes in lower_alu_to_scalar
authorJonathan Marek <jonathan@marek.ca>
Wed, 8 May 2019 16:45:48 +0000 (12:45 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 10 May 2019 15:10:41 +0000 (15:10 +0000)
commitd0bff89159bead4ba850182e5a30d0745510f773
tree298e51fffbc2bdfeb27ebdc8cff1ba2673f872ec
parentf8bda81887219d9a56b5427c20be3e63b5c3d136
nir: allow specifying a set of opcodes in lower_alu_to_scalar

This can be used by both etnaviv and freedreno/a2xx as they are both vec4
architectures with some instructions being scalar-only.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
12 files changed:
src/amd/vulkan/radv_shader.c
src/broadcom/compiler/nir_to_vir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_alu_to_scalar.c
src/freedreno/ir3/ir3_nir.c
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/drivers/lima/lima_program.c
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
src/gallium/drivers/radeonsi/si_shader_nir.c
src/gallium/drivers/vc4/vc4_program.c
src/intel/compiler/brw_nir.c
src/mesa/state_tracker/st_glsl_to_nir.cpp