diff options
author | Jason Ekstrand <[email protected]> | 2015-09-09 17:18:55 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-15 12:38:48 -0700 |
commit | 29348631fe7bf732a38856ea842cfc7aa2263468 (patch) | |
tree | 6a682b7036ca7c1ff9bf5447f283b9335f9b8a5b /src/gallium/drivers/freedreno | |
parent | a88ce0c1c4c1f77209b71d5a6858f952642f385a (diff) |
nir/lower_vec_to_movs: Coalesce into destinations of fdot instructions
Now that we have a replicating fdot instruction, we can actually coalesce
into the destinations of vec4 instructions. We couldn't really do this
before because, if the destination had to end up in .z, we couldn't
reswizzle the instruction. With a replicated destination, the result ends
up in all channels so we can just set the writemask and we're done.
Shader-db results for vec4 programs on Haswell:
total instructions in shared programs: 1747753 -> 1746280 (-0.08%)
instructions in affected programs: 143274 -> 141801 (-1.03%)
helped: 667
HURT: 0
It turns out that dot-products matter...
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
0 files changed, 0 insertions, 0 deletions