diff options
author | Rafael Antognolli <[email protected]> | 2017-10-06 11:41:54 -0700 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2017-12-01 11:27:27 -0800 |
commit | 2919adffe9f8ac4ea9e152db45c410cdc4514b7d (patch) | |
tree | b6b45627bc23b9b6cf5045208297b0d4c7a81aed /src/intel/compiler/brw_reg.h | |
parent | 979fc1bc9bcc64027ff2cfafd285676f31b930a6 (diff) |
intel/compiler: Implement WaClearTDRRegBeforeEOTForNonPS.
The bspec describes:
"WA: Clear tdr register before send EOT in all non-PS shader kernels
mov(8) tdr0:ud 0x0:ud {NoMask}"
Signed-off-by: Rafael Antognolli <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_reg.h')
-rw-r--r-- | src/intel/compiler/brw_reg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_reg.h b/src/intel/compiler/brw_reg.h index ec1045b612a..a039c6f676c 100644 --- a/src/intel/compiler/brw_reg.h +++ b/src/intel/compiler/brw_reg.h @@ -774,6 +774,12 @@ brw_address_reg(unsigned subnr) return brw_uw1_reg(BRW_ARCHITECTURE_REGISTER_FILE, BRW_ARF_ADDRESS, subnr); } +static inline struct brw_reg +brw_tdr_reg(void) +{ + return brw_uw1_reg(BRW_ARCHITECTURE_REGISTER_FILE, BRW_ARF_TDR, 0); +} + /* If/else instructions break in align16 mode if writemask & swizzle * aren't xyzw. This goes against the convention for other scalar * regs: |