boolean clip_xy,
boolean clip_z,
boolean clip_user,
- boolean enable_d3dclipping,
+ boolean clip_halfz,
unsigned nr,
LLVMValueRef context_ptr)
{
}
if (clip_z){
- if (enable_d3dclipping){
+ if (clip_halfz){
/* plane 5 */
test = lp_build_compare(builder, f32_type, PIPE_FUNC_GREATER, zero, pos_z);
temp = LLVMBuildShl(builder, temp, shift, "");
LLVMValueRef temp;
int i;
- LLVMDumpValue(clipmask);
-
for (i=0; i<4; i++){
temp = LLVMBuildExtractElement(builder, clipmask,
LLVMConstInt(LLVMInt32Type(), i, 0) , "");
ret = LLVMBuildOr(builder, ret, temp, "");
- LLVMDumpValue(ret);
}
LLVMBuildStore(builder, ret, ret_ptr);
- LLVMDumpValue(ret_ptr);
-
}
static void
variant->key.clip_xy,
variant->key.clip_z,
variant->key.clip_user,
- variant->key.enable_d3dclipping,
+ variant->key.clip_halfz,
variant->key.nr_planes,
context_ptr);
/* return clipping boolean value for function */
variant->key.clip_xy,
variant->key.clip_z,
variant->key.clip_user,
- variant->key.enable_d3dclipping,
+ variant->key.clip_halfz,
variant->key.nr_planes,
context_ptr);
/* return clipping boolean value for function */
key->clip_z = llvm->draw->clip_z;
key->clip_user = llvm->draw->clip_user;
key->bypass_viewport = llvm->draw->identity_viewport;
- key->enable_d3dclipping = (boolean)!llvm->draw->rasterizer->gl_rasterization_rules;
+ key->clip_halfz = !llvm->draw->rasterizer->gl_rasterization_rules;
key->need_edgeflags = (llvm->draw->vs.edgeflag_output ? TRUE : FALSE);
key->nr_planes = llvm->draw->nr_planes;
key->pad = 0;
struct draw_llvm_variant_key
{
- unsigned nr_vertex_elements:16;
- unsigned nr_samplers:12;
+ unsigned nr_vertex_elements:8;
+ unsigned nr_samplers:8;
unsigned clip_xy:1;
unsigned clip_z:1;
unsigned clip_user:1;
+ unsigned clip_halfz:1;
unsigned bypass_viewport:1;
- unsigned enable_d3dclipping:1;
unsigned need_edgeflags:1;
unsigned nr_planes:4;
- unsigned pad:26;
+ unsigned pad:6;
/* Variable number of vertex elements:
*/