Lines Matching defs:info

39     struct nine_shader_info info;
55 info.type = PIPE_SHADER_FRAGMENT;
56 info.byte_code = pFunction;
57 info.const_i_base = NINE_CONST_I_BASE(device->max_ps_const_f) / 16;
58 info.const_b_base = NINE_CONST_B_BASE(device->max_ps_const_f) / 16;
59 info.sampler_mask_shadow = 0x0;
60 info.fetch4 = 0x0;
61 info.sampler_ps1xtypes = 0x0;
62 info.fog_enable = 0;
63 info.projected = 0;
64 info.add_constants_defs.c_combination = NULL;
65 info.add_constants_defs.int_const_added = NULL;
66 info.add_constants_defs.bool_const_added = NULL;
67 info.process_vertices = false;
68 info.swvp_on = false;
71 hr = nine_translate_shader(device, &info, pipe);
75 This->byte_code.version = info.version;
77 This->byte_code.tokens = mem_dup(pFunction, info.byte_size);
80 This->byte_code.size = info.byte_size;
82 This->variant.cso = info.cso;
83 This->variant.const_ranges = info.const_ranges;
84 This->variant.const_used_size = info.const_used_size;
85 This->last_cso = info.cso;
86 This->last_const_ranges = info.const_ranges;
87 This->last_const_used_size = info.const_used_size;
90 This->sampler_mask = info.sampler_mask;
91 This->rt_mask = info.rt_mask;
92 This->bumpenvmat_needed = info.bumpenvmat_needed;
94 memcpy(This->int_slots_used, info.int_slots_used, sizeof(This->int_slots_used));
95 memcpy(This->bool_slots_used, info.bool_slots_used, sizeof(This->bool_slots_used));
97 This->const_int_slots = info.const_int_slots;
98 This->const_bool_slots = info.const_bool_slots;
103 assert(info.lconstf.data == NULL);
104 assert(info.lconstf.ranges == NULL);
191 struct nine_shader_info info;
194 info.type = PIPE_SHADER_FRAGMENT;
195 info.const_i_base = NINE_CONST_I_BASE(device->max_ps_const_f) / 16;
196 info.const_b_base = NINE_CONST_B_BASE(device->max_ps_const_f) / 16;
197 info.byte_code = This->byte_code.tokens;
198 info.sampler_mask_shadow = key & 0xffff;
202 info.sampler_ps1xtypes = (key >> 4) & 0xff;
203 info.projected = (key >> 12) & 0xff;
205 info.sampler_ps1xtypes = (key >> 6) & 0xfff;
206 info.projected = 0;
209 info.sampler_ps1xtypes = 0;
210 info.projected = 0;
212 info.fog_enable = device->context.rs[D3DRS_FOGENABLE];
213 info.fog_mode = device->context.rs[D3DRS_FOGTABLEMODE];
214 info.force_color_in_centroid = (key >> 22) & 1;
215 info.add_constants_defs.c_combination =
217 info.add_constants_defs.int_const_added = &This->int_slots_used;
218 info.add_constants_defs.bool_const_added = &This->bool_slots_used;
219 info.fetch4 = key >> 32 ;
220 info.process_vertices = false;
221 info.swvp_on = false;
223 hr = nine_translate_shader(This->base.device, &info, pipe);
226 nine_shader_variant_add(&This->variant, key, info.cso,
227 info.const_ranges, info.const_used_size);
228 cso = info.cso;
229 *const_ranges = info.const_ranges;
230 *const_used_size = info.const_used_size;