mesa/src/broadcom/compiler
Alejandro Piñeiro 85b78f96a6 v3d: use inc/dec tmu operation with image atomic sub/add of 1
This allows to remove a mov of 1/-1, as it is implicit with the
operation.

As with atomic inc/dec/add, usual shader-db set doesn't include any
GLES shader using it. So using as workaround vk-gl-cts shaders, we get
this:

total instructions in shared programs: 1217013 -> 1217006 (<.01%)
instructions in affected programs: 53 -> 46 (-13.21%)
helped: 2
HURT: 0

One of the helped shader went from 40 to 34 instructions.

Reviewed-by: Eric Anholt <eric@anholt.net>
2019-07-12 11:51:22 +02:00
..
meson.build v3d: add lowering for OpenGL logic operations 2019-07-12 09:16:38 +02:00
nir_to_vir.c v3d: use inc/dec tmu operation with atomic sub/add of 1 2019-07-12 11:48:40 +02:00
qpu_schedule.c v3d: handle tlb read dependency tracking as if they were writes 2019-07-12 09:16:38 +02:00
qpu_validate.c
v3d33_tex.c v3d: prefer using nir_src_comp_as_int over nir_src_as_const_value 2019-04-07 15:13:36 +02:00
v3d33_vpm_setup.c
v3d40_tex.c v3d: use inc/dec tmu operation with image atomic sub/add of 1 2019-07-12 11:51:22 +02:00
v3d_compiler.h v3d: use inc/dec tmu operation with atomic sub/add of 1 2019-07-12 11:48:40 +02:00
v3d_nir_lower_image_load_store.c
v3d_nir_lower_io.c v3d: Move the stores for fixed function VS output reads into NIR. 2019-03-05 10:59:40 -08:00
v3d_nir_lower_logic_ops.c v3d: emit correct lowering for logic ops with RGB10A2 render targets 2019-07-12 09:16:38 +02:00
v3d_nir_lower_scratch.c v3d: Use the new lower_to_scratch implementation for indirects on temps. 2019-04-12 16:16:58 -07:00
v3d_nir_lower_txf_ms.c
vir.c v3d: add lowering for OpenGL logic operations 2019-07-12 09:16:38 +02:00
vir_dump.c v3d: Add missing dumping for the spill offset/size uniforms. 2019-04-12 15:59:31 -07:00
vir_live_variables.c v3d: Stop treating exec masking specially. 2019-03-05 07:36:24 -08:00
vir_opt_copy_propagate.c v3d: Use ldunif instructions for uniforms. 2019-03-05 12:57:39 -08:00
vir_opt_dead_code.c v3d: Drop the V3D 3.x vpm read dead code elimination. 2019-03-05 12:57:39 -08:00
vir_opt_redundant_flags.c v3d: fix checking twice auf flag 2019-06-13 11:45:18 +02:00
vir_opt_small_immediates.c v3d: Use ldunif instructions for uniforms. 2019-03-05 12:57:39 -08:00
vir_register_allocate.c v3d: Fix detection of TMU write sequences in register spilling. 2019-04-26 12:42:30 -07:00
vir_to_qpu.c v3d: the ldtlbu signal reads an implicit uniform 2019-07-12 09:16:38 +02:00