diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 4872e0d1a30..0b74d15cc64 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -2438,8 +2438,6 @@ generate_fragment(struct llvmpipe_context *lp, LLVMBuildRetVoid(builder); gallivm_verify_function(gallivm, function); - - variant->nr_instrs += lp_build_count_instructions(function); } @@ -2629,6 +2627,8 @@ generate_variant(struct llvmpipe_context *lp, gallivm_compile_module(variant->gallivm); + variant->nr_instrs += lp_build_count_ir_module(variant->gallivm->module); + if (variant->function[RAST_EDGE_TEST]) { variant->jit_function[RAST_EDGE_TEST] = (lp_jit_frag_func) gallivm_jit_function(variant->gallivm, |