diff options
author | Marek Olšák <[email protected]> | 2016-06-22 22:24:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-05 00:47:12 +0200 |
commit | eaccc4e8c87fcbaa322745d9a33a8c39e93ca93f (patch) | |
tree | a674ffffef64b493fb635f2d1724557520026d22 /src/gallium/drivers/radeon/radeon_llvm.h | |
parent | 1c00086746743df57ff72939ed6caa2cc6cdc72d (diff) |
radeonsi: keep using v_rcp_f32 for division in future LLVM (v2)
This will be needed after some LLVM changes that haven't landed yet.
v2: - use LLVMIsConstant to fix an LLVM assertion failure.
LLVMSetMetadata doesn't work with constants.
- don't set float metadata as string
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_llvm.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm.h b/src/gallium/drivers/radeon/radeon_llvm.h index ec16def204d..61afa7aa776 100644 --- a/src/gallium/drivers/radeon/radeon_llvm.h +++ b/src/gallium/drivers/radeon/radeon_llvm.h @@ -101,6 +101,9 @@ struct radeon_llvm_context { LLVMValueRef main_fn; LLVMTypeRef return_type; + unsigned fpmath_md_kind; + LLVMValueRef fpmath_md_2p5_ulp; + struct gallivm_state gallivm; }; |