Home | History | Annotate | Download | only in shader

Lines Matching refs:ccc

53 cs_compile(struct cs_compile_context *ccc)
55 struct toy_compiler *tc = &ccc->tc;
56 struct ilo_shader *sh = ccc->shader;
61 ccc->first_free_grf,
62 ccc->last_free_grf,
63 ccc->num_grf_per_vrf);
124 cs_dummy(struct cs_compile_context *ccc)
126 struct toy_compiler *tc = &ccc->tc;
131 header = tdst_ud(tdst(TOY_FILE_MRF, ccc->first_free_mrf, 0));
147 cs_setup(struct cs_compile_context *ccc,
151 memset(ccc, 0, sizeof(*ccc));
153 ccc->shader = CALLOC_STRUCT(ilo_shader);
154 if (!ccc->shader)
157 ccc->variant = variant;
159 toy_compiler_init(&ccc->tc, state->info.dev);
161 ccc->tc.templ.access_mode = GEN6_ALIGN_1;
162 ccc->tc.templ.qtr_ctrl = GEN6_QTRCTRL_1H;
163 ccc->tc.templ.exec_size = GEN6_EXECSIZE_16;
164 ccc->tc.rect_linear_width = 8;
166 ccc->first_free_grf = 1;
167 ccc->last_free_grf = 127;
170 ccc->first_free_mrf = 1;
171 ccc->last_free_mrf = 15;
174 ccc->num_grf_per_vrf = 2;
176 if (ilo_dev_gen(ccc->tc.dev) >= ILO_GEN(7)) {
177 ccc->last_free_grf -= 15;
178 ccc->first_free_mrf = ccc->last_free_grf + 1;
179 ccc->last_free_mrf = ccc->first_free_mrf + 14;
182 ccc->shader->in.start_grf = 1;
183 ccc->shader->dispatch_16 = true;
186 ccc->shader->bt.const_base = 0;
187 ccc->shader->bt.const_count = 1;
190 ccc->shader->bt.global_base = 1;
191 ccc->shader->bt.global_count = 1;
193 ccc->shader->bt.total_count = 2;
205 struct cs_compile_context ccc;
209 if (!cs_setup(&ccc, state, variant))
212 cs_dummy(&ccc);
214 if (!cs_compile(&ccc)) {
215 FREE(ccc.shader);
216 ccc.shader = NULL;
219 toy_compiler_cleanup(&ccc.tc);
221 return ccc.shader;