Lines Matching refs:clip

41    struct brw_clip_unit_state *clip;
43 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE,
44 sizeof(*clip), 32, &brw->clip.state_offset);
45 memset(clip, 0, sizeof(*clip));
48 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) /
50 clip->thread0.kernel_start_pointer =
52 brw->clip.state_offset +
54 brw->clip.prog_offset +
55 (clip->thread0.grf_reg_count << 1)) >> 6;
57 clip->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754;
58 clip->thread1.single_program_flow = 1;
60 clip->thread3.urb_entry_read_length = brw->clip.prog_data->urb_read_length;
61 clip->thread3.const_urb_entry_read_length =
62 brw->clip.prog_data->curb_read_length;
65 clip->thread3.const_urb_entry_read_offset = brw->curbe.clip_start * 2;
66 clip->thread3.dispatch_grf_start_reg = 1;
67 clip->thread3.urb_entry_read_offset = 0;
70 clip->thread4.nr_urb_entries = brw->urb.nr_clip_entries;
71 clip->thread4.urb_entry_allocation_size = brw->urb.vsize - 1;
72 /* If we have enough clip URB entries to run two threads, do so.
84 clip->thread4.max_threads = 16 - 1;
86 clip->thread4.max_threads = 2 - 1;
89 clip->thread4.max_threads = 1 - 1;
93 clip->thread4.stats_enable = 1;
95 clip->clip5.userclip_enable_flags = 0x7f;
96 clip->clip5.userclip_must_clip = 1;
97 clip->clip5.guard_band_enable = 0;
100 clip->clip5.viewport_z_clip_enable = 1;
101 clip->clip5.viewport_xy_clip_enable = 1;
102 clip->clip5.vertex_position_space = BRW_CLIP_NDCSPACE;
103 clip->clip5.api_mode = BRW_CLIP_API_OGL;
104 clip->clip5.clip_mode = brw->clip.prog_data->clip_mode;
107 clip->clip5.negative_w_clip_test = 1;
109 clip->clip6.clipper_viewport_state_ptr = 0;
110 clip->viewport_xmin = -1;
111 clip->viewport_xmax = 1;
112 clip->viewport_ymin = -1;
113 clip->viewport_ymax = 1;