From c5e5b3401c52f83bd885497cb30125e78a21d666 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 7 Mar 2013 10:51:25 -0500 Subject: gallium: PIPE_COMPUTE_CAP_IR_TARGET - allow drivers to specify a processor v2 This target string now contains four values instead of three. The old processor field (which was really being interpreted as arch) has been split into two fields: processor and arch. This allows drivers to pass a more a more detailed description of the hardware to compiler frontends. v2: - Adapt to libclc changes Reviewed-by: Francisco Jerez --- src/gallium/drivers/r600/r600_llvm.c | 63 ------------------------------------ 1 file changed, 63 deletions(-) (limited to 'src/gallium/drivers/r600/r600_llvm.c') diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index be8ad155987..127149faefe 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600_llvm.c @@ -550,69 +550,6 @@ LLVMModuleRef r600_tgsi_llvm( return ctx->gallivm.module; } -const char * r600_llvm_gpu_string(enum radeon_family family) -{ - const char * gpu_family; - - switch (family) { - case CHIP_R600: - case CHIP_RV610: - case CHIP_RV630: - case CHIP_RV620: - case CHIP_RV635: - case CHIP_RV670: - case CHIP_RS780: - case CHIP_RS880: - gpu_family = "r600"; - break; - case CHIP_RV710: - gpu_family = "rv710"; - break; - case CHIP_RV730: - gpu_family = "rv730"; - break; - case CHIP_RV740: - case CHIP_RV770: - gpu_family = "rv770"; - break; - case CHIP_PALM: - case CHIP_CEDAR: - gpu_family = "cedar"; - break; - case CHIP_SUMO: - case CHIP_SUMO2: - case CHIP_REDWOOD: - gpu_family = "redwood"; - break; - case CHIP_JUNIPER: - gpu_family = "juniper"; - break; - case CHIP_HEMLOCK: - case CHIP_CYPRESS: - gpu_family = "cypress"; - break; - case CHIP_BARTS: - gpu_family = "barts"; - break; - case CHIP_TURKS: - gpu_family = "turks"; - break; - case CHIP_CAICOS: - gpu_family = "caicos"; - break; - case CHIP_CAYMAN: - case CHIP_ARUBA: - gpu_family = "cayman"; - break; - default: - gpu_family = ""; - fprintf(stderr, "Chip not supported by r600 llvm " - "backend, please file a bug at " PACKAGE_BUGREPORT "\n"); - break; - } - return gpu_family; -} - unsigned r600_llvm_compile( LLVMModuleRef mod, unsigned char ** inst_bytes, -- cgit v1.2.3