Home | History | Annotate | Download | only in glsl

Lines Matching refs:state

46  * loc and state to report the error.
50 struct _mesa_glsl_parse_state *state)
60 check_builtin_array_max_size(var->name, idx+1, *loc, state);
107 state);
116 get_implicit_array_size(struct _mesa_glsl_parse_state *state,
124 if (state->stage == MESA_SHADER_TESS_CTRL &&
126 return state->Const.MaxPatchVertices;
132 if (state->stage == MESA_SHADER_TESS_EVAL &&
135 return state->Const.MaxPatchVertices;
144 struct _mesa_glsl_parse_state *state,
152 _mesa_glsl_error(& idx_loc, state,
159 _mesa_glsl_error(& idx_loc, state, "array index must be integer type");
161 _mesa_glsl_error(& idx_loc, state, "array index must be scalar");
207 _mesa_glsl_error(& loc, state, "%s index must be < %u",
210 _mesa_glsl_error(& loc, state, "%s index must be >= 0", type_name);
214 update_max_array_access(array, idx, &loc, state);
217 int implicit_size = get_implicit_array_size(state, array);
223 else if (state->stage == MESA_SHADER_TESS_CTRL &&
235 _mesa_glsl_error(&loc, state, "unsized array index must be constant");
246 _mesa_glsl_error(&loc, state, "Indirect access on unsized "
253 && !state->is_version(400, 320)
254 && !state->ARB_gpu_shader5_enable
255 && !state->EXT_gpu_shader5_enable
256 && !state->OES_gpu_shader5_enable) ||
258 && !state->is_version(400, 0)
259 && !state->ARB_gpu_shader5_enable))) {
269 _mesa_glsl_error(&loc, state, "%s block array index must be constant",
304 if (!state->is_version(400, 320) &&
305 !state->ARB_gpu_shader5_enable &&
306 !state->EXT_gpu_shader5_enable &&
307 !state->OES_gpu_shader5_enable) {
308 if (state->is_version(130, 300))
309 _mesa_glsl_error(&loc, state,
313 state->es_shader ? "ES 3.00" : "1.30");
314 else if (state->es_shader)
315 _mesa_glsl_warning(&loc, state,
320 _mesa_glsl_warning(&loc, state,
336 if (state->es_shader && array->type->without_array()->is_image()) {
337 _mesa_glsl_error(&loc, state,