Lines Matching defs:layout

2074              *    hasn't been explicitly redeclared with layout(noncoherent)."
2079 "qualified with layout(noncoherent)");
2085 * and gl_LastFragStencilARM if the early_fragment_tests layout qualifier
2803 _mesa_glsl_error(loc, state, "component layout qualifier "
2807 _mesa_glsl_error(loc, state, "component layout qualifier "
2822 * Matrix layout qualifiers are only allowed on certain types
2835 "uniform block layout qualifiers row_major and "
2840 * matrix layout qualifiers on non-matrices. However, the OpenGL
2846 "uniform block layout qualifiers row_major and "
2982 _mesa_glsl_error(loc, state, "layout(binding = %u) for %d UBOs exceeds "
3000 _mesa_glsl_error(loc, state, "layout(binding = %u) for %d SSBOs exceeds "
3017 _mesa_glsl_error(loc, state, "layout(binding = %d) for %d samplers "
3026 _mesa_glsl_error(loc, state, "layout(binding = %d) exceeds the "
3421 * sets a layout index to less than 0 or greater than 1."
3518 * "Format layout qualifiers can be used on image variable declarations
3522 _mesa_glsl_error(loc, state, "format layout qualifiers may only be "
3575 "format layout qualifier");
3578 "`writeonly' must have a format layout qualifier");
3675 * "If these layout qualifiers are applied to other types of default block
3680 _mesa_glsl_error(loc, state, "ARB_bindless_texture layout qualifiers "
3706 * bound_sampler/bound_image) layout qualifiers can be set at global and at
3747 /* Make sure all gl_FragCoord redeclarations specify the same layout
3760 "gl_FragCoord redeclared with different layout "
3781 "layout qualifier `%s' can only be applied to "
3883 /* Is the 'layout' keyword used with parameters that allow relaxed checking.
3886 * allowed the layout qualifier to be used with 'varying' and 'attribute'.
3887 * These extensions and all following extensions that add the 'layout'
3901 * allow layout with the deprecated keywords.
3911 "`layout' qualifier may not be used with "
3915 "`layout' qualifier may not be used with "
3930 "to use depth layout qualifiers");
3934 "depth layout qualifiers can be applied only to "
3961 "uniform and shader storage block layout qualifiers "
3974 * "Fragment shaders also allow the following layout qualifier on in only
3976 * layout-qualifier-id
3981 _mesa_glsl_error(loc, state, "early_fragment_tests layout qualifier only "
3982 "valid in fragment shader input layout declaration.");
3986 _mesa_glsl_error(loc, state, "inner_coverage layout qualifier only "
3987 "valid in fragment shader input layout declaration.");
3991 _mesa_glsl_error(loc, state, "post_depth_coverage layout qualifier only "
3992 "valid in fragment shader input layout declaration.");
4002 _mesa_glsl_error(loc, state, "interlock layout qualifiers: "
4005 "only valid in fragment shader input layout declaration.");
4090 /* Disallow layout qualifiers which may only appear on layout declarations. */
4094 "layout declaration, not on variables.");
4158 * with layout(noncoherent) if the GL_EXT_shader_framebuffer_fetch
4165 "qualified with layout(noncoherent)");
4170 * "Fragment outputs declared inout may specify the following layout
4175 "invalid layout(noncoherent) qualifier not part of "
4401 /* Allow redeclaration of gl_FragCoord for ARB_fcc layout
4445 /* Prevent inconsistent redeclaration of depth layout qualifier. */
4449 "gl_FragDepth: depth layout is declared here "
4467 * "Fragment shaders may specify the following layout qualifier only for
4763 * sized by an earlier input layout qualifier, when present, as per
4766 * Followed by a table mapping each allowed input layout qualifier to
4784 * layout(lines) in; // legal, input size is 2, matching
4785 * in vec4 Color4[3]; // illegal, contradicts layout
4792 * any previously declared input layout.
4796 "%s size contradicts previously declared layout "
4797 "(size is %u, but layout requires a size of %u)",
5052 * This is done here, based on the layout qualifier and the type of the image var
5058 * If both extensions are enabled in the shading language, the "size*" layout
5074 * A layout of "size1x8" is illegal for image variables associated
5171 "invalid layout qualifier for",
5328 * any extension that adds the 'layout' keyword.
5783 * sized by an earlier input primitive layout qualifier, when
7385 ast_type_qualifier *layout,
7494 "binding layout qualifier cannot be applied "
7500 if (!layout->flags.q.explicit_location &&
7506 "when block-level location layout qualifier "
7508 "have a location layout qualifier or all "
7509 "members must not have a location layout "
7524 "uniform/shader storage block layout qualifiers "
7550 _mesa_glsl_error(&loc, state, "stream layout qualifier on "
7565 _mesa_glsl_error(&loc, state, "xfb_buffer layout qualifier on "
7572 if (layout)
7573 explicit_xfb_buffer = layout->flags.q.explicit_xfb_buffer;
7641 if (layout && layout->flags.q.explicit_location) {
7666 if (layout) {
7675 if(layout->flags.q.std140) {
7678 } else if (layout->flags.q.std430) {
7690 _mesa_glsl_error(&loc, state, "layout qualifier "
7694 _mesa_glsl_error(&loc, state, "layout qualifier offset "
7719 _mesa_glsl_error(&loc, state, "align layout qualifier "
7753 if (layout && layout->flags.q.explicit_xfb_offset) {
7763 * that need the proper layout.
7765 if (is_interface && layout &&
7766 (layout->flags.q.uniform || layout->flags.q.buffer) &&
7769 /* If no layout is specified for the field, inherit the layout
7780 * layout must be decided by this point.
7792 * if set, overwrites the layout qualifier.
7799 layout ? layout->flags.q.read_only : 0;
7801 layout ? layout->flags.q.write_only : 0;
7804 /* For other qualifiers, we set the flag if either the layout
7808 (layout && layout->flags.q.coherent);
7810 (layout && layout->flags.q._volatile);
7812 (layout && layout->flags.q.restrict_flag);
7826 "`writeonly' must have a format layout "
7863 if (layout && layout->flags.q.explicit_location) {
7865 layout->location, &expl_location)) {
7882 layout,
8006 if (this->layout.flags.q.buffer || this->layout.flags.q.uniform) {
8014 if (this->layout.flags.q.buffer) {
8027 assert(this->layout.flags.q.in || this->layout.flags.q.out);
8030 if (this->layout.flags.q.out) {
8057 this->layout.validate_flags(&loc, state, allowed_blk_qualifiers,
8062 if (this->layout.flags.q.std140) {
8064 } else if (this->layout.flags.q.packed) {
8066 } else if (this->layout.flags.q.std430) {
8069 /* The default layout is shared.
8076 if (this->layout.flags.q.in) {
8079 } else if (this->layout.flags.q.out) {
8082 } else if (this->layout.flags.q.uniform) {
8085 } else if (this->layout.flags.q.buffer) {
8091 assert(!"interface block layout qualifier not found!");
8095 if (this->layout.flags.q.row_major)
8097 else if (this->layout.flags.q.column_major)
8107 if (this->layout.flags.q.read_only && this->layout.flags.q.write_only) {
8113 if (!process_qualifier_constant(state, &loc, "stream", this->layout.stream,
8124 if (layout.flags.q.xfb_buffer) {
8126 layout.xfb_buffer, &qual_xfb_buffer) ||
8133 if (layout.flags.q.explicit_xfb_offset) {
8135 layout.offset, &qual_xfb_offset)) {
8141 if (layout.flags.q.explicit_xfb_stride) {
8143 layout.xfb_stride, &qual_xfb_stride)) {
8149 if (layout.flags.q.explicit_location) {
8151 layout.location, &expl_location)) {
8154 expl_location += this->layout.flags.q.patch ? VARYING_SLOT_PATCH0
8160 if (layout.flags.q.explicit_align) {
8162 layout.align, &expl_align)) {
8166 _mesa_glsl_error(&loc, state, "align layout qualifier is not a "
8182 &this->layout,
8340 layout.flags.q.explicit_xfb_offset ? (int) qual_xfb_offset : -1;
8369 !this->layout.flags.q.patch &&
8374 !this->layout.flags.q.patch &&
8496 if (this->layout.flags.q.in) {
8502 } else if (this->layout.flags.q.out) {
8543 var->data.patch = this->layout.flags.q.patch;
8569 if (this->layout.flags.q.explicit_binding) {
8571 &this->layout);
8575 if (layout.flags.q.explicit_location) {
8664 if (this->layout.flags.q.explicit_binding) {
8666 var->get_interface_type(), &this->layout);
8762 "this tessellation control shader output layout "
8785 "this tessellation control shader output layout "
8816 "this geometry shader input layout implies %u vertices"
8839 "this geometry shader input layout implies %u"
8906 /* If any compute input layout declaration preceded this one, make sure it
8913 "compute shader input layout does not match"