diff options
author | Dave Airlie <[email protected]> | 2017-10-10 06:27:40 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-10-11 07:40:04 +1000 |
commit | 96e85709df632674b9976435d350ce5d21ad8aea (patch) | |
tree | b77c6c937a9cf66eb54766ec6b90b00e04666aac | |
parent | ce0ee31890be189fc394454a7c87b745f8c1ac9e (diff) |
r600: cleanup llvm ir target selection.
Only r600 target used now for compute IR.
Reviewed-by: Nicolai Hähnle <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe_common.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c index 066d10a451f..acad670d6fa 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.c +++ b/src/gallium/drivers/r600/r600_pipe_common.c @@ -1012,24 +1012,8 @@ static int r600_get_compute_param(struct pipe_screen *screen, switch (param) { case PIPE_COMPUTE_CAP_IR_TARGET: { const char *gpu; - const char *triple; - if (rscreen->family <= CHIP_ARUBA) { - triple = "r600--"; - } else { - if (HAVE_LLVM < 0x0400) { - triple = "amdgcn--"; - } else { - triple = "amdgcn-mesa-mesa3d"; - } - } - switch(rscreen->family) { - /* Clang < 3.6 is missing Hainan in its list of - * GPUs, so we need to use the name of a similar GPU. - */ - default: - gpu = r600_get_llvm_processor_name(rscreen->family); - break; - } + const char *triple = "r600--"; + gpu = r600_get_llvm_processor_name(rscreen->family); if (ret) { sprintf(ret, "%s-%s", gpu, triple); } |