* Authors:
* Adam Rak <adam.rak@streamnovation.com>
*/
-
#ifndef EVERGREEN_COMPUTE_INTERNAL_H
#define EVERGREEN_COMPUTE_INTERNAL_H
+#include "ac_binary.h"
#include "r600_asm.h"
-
-#if HAVE_LLVM < 0x0306
-
-struct r600_kernel {
- unsigned count;
#ifdef HAVE_OPENCL
- LLVMModuleRef llvm_module;
-#endif
- struct r600_resource *code_bo;
- struct r600_bytecode bc;
-};
-
+#include <llvm-c/Core.h>
#endif
struct r600_pipe_compute {
struct r600_context *ctx;
-#if HAVE_LLVM < 0x0306
- unsigned num_kernels;
- struct r600_kernel *kernels;
- struct r600_kernel *active_kernel;
-#endif
+ struct ac_shader_binary binary;
+
+ enum pipe_shader_ir ir_type;
+
+ /* tgsi selector */
+ struct r600_pipe_shader_selector *sel;
- struct radeon_shader_binary binary;
struct r600_resource *code_bo;
struct r600_bytecode bc;