Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
#define RADEON_LLVM_MAX_INPUTS (VARYING_SLOT_VAR31 + 1)
#define RADEON_LLVM_MAX_OUTPUTS (VARYING_SLOT_VAR31 + 1)
-struct nir_to_llvm_context;
-
struct ac_nir_context {
struct ac_llvm_context ac;
struct ac_shader_abi *abi;
int num_locals;
LLVMValueRef *locals;
-
- struct nir_to_llvm_context *nctx; /* TODO get rid of this */
};
struct nir_to_llvm_context {
ctx.ac = *ac;
ctx.abi = abi;
- ctx.nctx = nctx;
if (nctx)
nctx->nir = &ctx;
nir_ctx.ac = ctx.ac;
nir_ctx.abi = &ctx.abi;
- nir_ctx.nctx = &ctx;
ctx.nir = &nir_ctx;
nir_foreach_variable(variable, &geom_shader->outputs) {