diff options
author | Rob Clark <[email protected]> | 2015-04-06 10:48:11 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-04-11 11:39:46 -0400 |
commit | f0e9a632a12798bd727799e396cde665bd960665 (patch) | |
tree | 2c34e7378cd03c5424cec08873d76aaea4ae96bc /src/gallium/drivers/freedreno/freedreno_surface.c | |
parent | f59613561694cc4a4b81db8a73f8afe893dbacac (diff) |
freedreno/ir3/cp: support to swap mad src's
For a normal MAD (ie. not MADSH), if first source is gpr and second
source is const, we can swap the first two sources to avoid needing a
mov instruction.
This gives back the biggest advantage TGSI f/e had over NIR f/e for
common shaders, since TGSI f/e had this logic in the f/e. Note that
doing this in copy-prop step has the advantage that it will also work
for cases like:
MOV TEMP[b], CONST[x]
MAD TEMP[d], TEMP[a], TEMP[b], TEMP[c]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_surface.c')
0 files changed, 0 insertions, 0 deletions