llvmpipe: Quick hack for 1D textures.
This commit is contained in:
parent
b0b131b023
commit
4139bc8f43
|
@ -53,6 +53,7 @@ struct lp_sampler_static_state
|
|||
{
|
||||
/* pipe_texture's state */
|
||||
enum pipe_format format;
|
||||
unsigned target:2;
|
||||
unsigned pot_width:1;
|
||||
unsigned pot_height:1;
|
||||
unsigned pot_depth:1;
|
||||
|
|
|
@ -322,6 +322,9 @@ lp_build_sample_soa(LLVMBuilderRef builder,
|
|||
height = lp_build_broadcast_scalar(&bld.int_coord_bld, height);
|
||||
stride = lp_build_broadcast_scalar(&bld.int_coord_bld, stride);
|
||||
|
||||
if(static_state->target == PIPE_TEXTURE_1D)
|
||||
t = bld.coord_bld.zero;
|
||||
|
||||
if(static_state->normalized_coords) {
|
||||
LLVMTypeRef coord_vec_type = lp_build_vec_type(bld.coord_type);
|
||||
LLVMValueRef fp_width = LLVMBuildSIToFP(builder, width, coord_vec_type, "");
|
||||
|
|
Loading…
Reference in New Issue