Lines Matching defs:info

41     struct nine_shader_info info;
60 info.type = PIPE_SHADER_VERTEX;
61 info.byte_code = pFunction;
62 info.const_i_base = NINE_CONST_I_BASE(device->max_vs_const_f) / 16;
63 info.const_b_base = NINE_CONST_B_BASE(device->max_vs_const_f) / 16;
64 info.sampler_mask_shadow = 0x0;
65 info.fetch4 = 0x0;
66 info.sampler_ps1xtypes = 0x0;
67 info.fog_enable = 0;
68 info.point_size_min = 0;
69 info.point_size_max = 0;
70 info.add_constants_defs.c_combination = NULL;
71 info.add_constants_defs.int_const_added = NULL;
72 info.add_constants_defs.bool_const_added = NULL;
73 info.swvp_on = !!(device->params.BehaviorFlags & D3DCREATE_SOFTWARE_VERTEXPROCESSING);
74 info.process_vertices = false;
77 hr = nine_translate_shader(device, &info, pipe);
81 info.swvp_on = true;
82 hr = nine_translate_shader(device, &info, pipe);
89 This->byte_code.version = info.version;
90 This->swvp_only = info.swvp_on;
92 This->byte_code.tokens = mem_dup(pFunction, info.byte_size);
95 This->byte_code.size = info.byte_size;
97 This->variant.cso = info.cso;
98 This->variant.const_ranges = info.const_ranges;
99 This->variant.const_used_size = info.const_used_size;
100 This->last_cso = info.cso;
101 This->last_const_ranges = info.const_ranges;
102 This->last_const_used_size = info.const_used_size;
103 This->last_key = (uint32_t) (info.swvp_on << 9);
105 This->lconstf = info.lconstf;
106 This->sampler_mask = info.sampler_mask;
107 This->position_t = info.position_t;
108 This->point_size = info.point_size;
110 memcpy(This->int_slots_used, info.int_slots_used, sizeof(This->int_slots_used));
111 memcpy(This->bool_slots_used, info.bool_slots_used, sizeof(This->bool_slots_used));
113 This->const_int_slots = info.const_int_slots;
114 This->const_bool_slots = info.const_bool_slots;
118 for (i = 0; i < info.num_inputs && i < ARRAY_SIZE(This->input_map); ++i)
119 This->input_map[i].ndecl = info.input_map[i];
217 struct nine_shader_info info;
220 info.type = PIPE_SHADER_VERTEX;
221 info.const_i_base = NINE_CONST_I_BASE(device->max_vs_const_f) / 16;
222 info.const_b_base = NINE_CONST_B_BASE(device->max_vs_const_f) / 16;
223 info.byte_code = This->byte_code.tokens;
224 info.sampler_mask_shadow = key & 0xf;
225 info.fetch4 = 0x0;
226 info.fog_enable = device->context.rs[D3DRS_FOGENABLE];
227 info.point_size_min = asfloat(device->context.rs[D3DRS_POINTSIZE_MIN]);
228 info.point_size_max = asfloat(device->context.rs[D3DRS_POINTSIZE_MAX]);
229 info.add_constants_defs.c_combination =
231 info.add_constants_defs.int_const_added = &This->int_slots_used;
232 info.add_constants_defs.bool_const_added = &This->bool_slots_used;
233 info.swvp_on = device->context.swvp;
234 info.process_vertices = false;
236 hr = nine_translate_shader(This->base.device, &info, pipe);
239 nine_shader_variant_add(&This->variant, key, info.cso,
240 info.const_ranges, info.const_used_size);
241 cso = info.cso;
242 *const_ranges = info.const_ranges;
243 *const_used_size = info.const_used_size;
259 struct nine_shader_info info;
267 info.type = PIPE_SHADER_VERTEX;
268 info.const_i_base = 0;
269 info.const_b_base = 0;
270 info.byte_code = This->byte_code.tokens;
271 info.sampler_mask_shadow = 0;
272 info.fetch4 = 0x0;
273 info.fog_enable = false;
274 info.point_size_min = 0;
275 info.point_size_max = 0;
276 info.add_constants_defs.c_combination = NULL;
277 info.add_constants_defs.int_const_added = NULL;
278 info.add_constants_defs.bool_const_added = NULL;
279 info.swvp_on = true;
280 info.vdecl_out = vdecl_out;
281 info.process_vertices = true;
282 hr = nine_translate_shader(This->base.device, &info, This->base.device->pipe_sw);
285 *so = info.so;
286 nine_shader_variant_so_add(&This->variant_so, vdecl_out, so, info.cso);
287 return info.cso;