llvmpipe: Axe texture sampling code inherited from softpipe.
Was used only as a reference, since texture sampling is now code generated. Already axed in the lp-binning branch too. This fixes the llvmpipe build after recent sampling changes.
This commit is contained in:
parent
4440428faa
commit
7bd7e2da75
|
@ -50,7 +50,6 @@ C_SOURCES = \
|
||||||
lp_state_vs.c \
|
lp_state_vs.c \
|
||||||
lp_surface.c \
|
lp_surface.c \
|
||||||
lp_tex_cache.c \
|
lp_tex_cache.c \
|
||||||
lp_tex_sample_c.c \
|
|
||||||
lp_tex_sample_llvm.c \
|
lp_tex_sample_llvm.c \
|
||||||
lp_texture.c \
|
lp_texture.c \
|
||||||
lp_tile_cache.c \
|
lp_tile_cache.c \
|
||||||
|
|
|
@ -66,7 +66,6 @@ llvmpipe = env.ConvenienceLibrary(
|
||||||
'lp_state_vs.c',
|
'lp_state_vs.c',
|
||||||
'lp_surface.c',
|
'lp_surface.c',
|
||||||
'lp_tex_cache.c',
|
'lp_tex_cache.c',
|
||||||
'lp_tex_sample_c.c',
|
|
||||||
'lp_tex_sample_llvm.c',
|
'lp_tex_sample_llvm.c',
|
||||||
'lp_texture.c',
|
'lp_texture.c',
|
||||||
'lp_tile_cache.c',
|
'lp_tile_cache.c',
|
||||||
|
|
|
@ -550,13 +550,8 @@ generate_fragment(struct llvmpipe_context *lp,
|
||||||
a0_ptr, dadx_ptr, dady_ptr,
|
a0_ptr, dadx_ptr, dady_ptr,
|
||||||
x0, y0, 2, 0);
|
x0, y0, 2, 0);
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* C texture sampling */
|
|
||||||
sampler = lp_c_sampler_soa_create(context_ptr);
|
|
||||||
#else
|
|
||||||
/* code generated texture sampling */
|
/* code generated texture sampling */
|
||||||
sampler = lp_llvm_sampler_soa_create(key->sampler, context_ptr);
|
sampler = lp_llvm_sampler_soa_create(key->sampler, context_ptr);
|
||||||
#endif
|
|
||||||
|
|
||||||
for(i = 0; i < num_fs; ++i) {
|
for(i = 0; i < num_fs; ++i) {
|
||||||
LLVMValueRef index = LLVMConstInt(LLVMInt32Type(), i, 0);
|
LLVMValueRef index = LLVMConstInt(LLVMInt32Type(), i, 0);
|
||||||
|
|
|
@ -78,16 +78,6 @@ lp_get_samples(struct tgsi_sampler *tgsi_sampler,
|
||||||
float rgba[NUM_CHANNELS][QUAD_SIZE]);
|
float rgba[NUM_CHANNELS][QUAD_SIZE]);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Texture sampling code generator that just calls lp_get_samples C function
|
|
||||||
* for the actual sampling computation.
|
|
||||||
*
|
|
||||||
* @param context_ptr LLVM value with the pointer to the struct lp_jit_context.
|
|
||||||
*/
|
|
||||||
struct lp_build_sampler_soa *
|
|
||||||
lp_c_sampler_soa_create(LLVMValueRef context_ptr);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pure-LLVM texture sampling code generator.
|
* Pure-LLVM texture sampling code generator.
|
||||||
*
|
*
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue