diff options
author | José Fonseca <[email protected]> | 2009-08-23 07:55:29 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:41 +0100 |
commit | 03180dca7a3b5d57100158eb06d00419e55d9dc8 (patch) | |
tree | 957a2c3756b3801b90aef867fa8cfff5f79d8923 /src/gallium/drivers/llvmpipe/lp_state_fs.c | |
parent | 635c37e118bbf51fc8c93a2c999281ee817a93e1 (diff) |
llvmpipe: Pre-declare fetch_texel.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index eea332e3e48..e639f9c20fc 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -404,7 +404,6 @@ generate_fragment(struct llvmpipe_context *lp, LLVMValueRef fs_out_color[NUM_CHANNELS][LP_MAX_VECTOR_LENGTH]; LLVMValueRef blend_mask; LLVMValueRef blend_in_color[NUM_CHANNELS]; - LLVMValueRef fetch_texel; unsigned num_fs; unsigned i; unsigned chan; @@ -592,18 +591,6 @@ generate_fragment(struct llvmpipe_context *lp, abort(); } - /* Tell where the fetch_texel function is, if the shader refers to it. - * TODO: this should be done elsewhere. - */ - fetch_texel = LLVMGetNamedFunction(screen->module, "fetch_texel"); - if(fetch_texel) { - static boolean first_time = TRUE; - if(first_time) { - LLVMAddGlobalMapping(screen->engine, fetch_texel, lp_build_tgsi_fetch_texel_soa); - first_time = FALSE; - } - } - variant->jit_function = (lp_jit_frag_func)LLVMGetPointerToGlobal(screen->engine, variant->function); #ifdef DEBUG |