Lines Matching refs:shader

53    explicit lower_cs_derived_visitor(gl_linked_shader *shader)  in lower_cs_derived_visitor()  argument
55 shader(shader), in lower_cs_derived_visitor()
56 local_size_variable(shader->Program->info.cs.local_size_variable), in lower_cs_derived_visitor()
63 main_sig = _mesa_get_main_function_signature(shader->symbols); in lower_cs_derived_visitor()
78 gl_linked_shader *shader; member in __anon308110300111::lower_cs_derived_visitor
96 ir_variable *var = new(shader) ir_variable(type, name, ir_var_system_value); in add_system_value()
102 shader->ir->push_head(var); in add_system_value()
115 WorkGroupSize = shader->symbols->get_variable("gl_LocalGroupSizeARB"); in find_sysvals()
117 WorkGroupSize = shader->symbols->get_variable("gl_WorkGroupSize"); in find_sysvals()
119 gl_WorkGroupSize = new(shader) ir_dereference_variable(WorkGroupSize); in find_sysvals()
120 gl_WorkGroupID = shader->symbols->get_variable("gl_WorkGroupID"); in find_sysvals()
121 gl_LocalInvocationID = shader->symbols->get_variable("gl_LocalInvocationID"); in find_sysvals()
138 gl_WorkGroupSize = new(shader) ir_dereference_variable( in find_sysvals()
146 data.u[i] = shader->Program->info.cs.local_size[i]; in find_sysvals()
147 gl_WorkGroupSize = new(shader) ir_constant(glsl_type::uvec3_type, &data); in find_sysvals()
163 gl_GlobalInvocationID = new(shader) ir_variable( in make_gl_GlobalInvocationID()
165 shader->ir->push_head(gl_GlobalInvocationID); in make_gl_GlobalInvocationID()
169 add(mul(gl_WorkGroupID, gl_WorkGroupSize->clone(shader, NULL)), in make_gl_GlobalInvocationID()
187 gl_LocalInvocationIndex = new(shader) in make_gl_LocalInvocationIndex()
189 shader->ir->push_head(gl_LocalInvocationIndex); in make_gl_LocalInvocationIndex()
192 mul(mul(swizzle_z(gl_LocalInvocationID), swizzle_x(gl_WorkGroupSize->clone(shader, NULL))), in make_gl_LocalInvocationIndex()
193 swizzle_y(gl_WorkGroupSize->clone(shader, NULL))); in make_gl_LocalInvocationIndex()
195 mul(swizzle_y(gl_LocalInvocationID), swizzle_x(gl_WorkGroupSize->clone(shader, NULL))); in make_gl_LocalInvocationIndex()
225 lower_cs_derived(gl_linked_shader *shader) in lower_cs_derived() argument
227 if (shader->Stage != MESA_SHADER_COMPUTE) in lower_cs_derived()
230 lower_cs_derived_visitor v(shader); in lower_cs_derived()
231 v.run(shader->ir); in lower_cs_derived()