glsl: Fixes ident issue in glsl_parser.yy and update editorconfig for it

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19875>
This commit is contained in:
Yonggang Luo 2022-11-23 00:34:35 +08:00 committed by Marge Bot
parent 9f5ace9857
commit c5a4520b3c
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ charset = utf-8
insert_final_newline = true
tab_width = 8
[*.{c,h,cpp,hpp,cc,hh,y}]
[*.{c,h,cpp,hpp,cc,hh,y,yy}]
indent_style = space
indent_size = 3
max_line_length = 78

View File

@ -1438,10 +1438,10 @@ layout_qualifier_id:
"valid in fragment shaders");
}
if (state->INTEL_conservative_rasterization_enable) {
$$.flags.q.inner_coverage = 1;
} else {
_mesa_glsl_error(& @1, state,
if (state->INTEL_conservative_rasterization_enable) {
$$.flags.q.inner_coverage = 1;
} else {
_mesa_glsl_error(& @1, state,
"inner_coverage layout qualifier present, "
"but the INTEL_conservative_rasterization extension "
"is not enabled.");
@ -1456,7 +1456,7 @@ layout_qualifier_id:
}
if (state->ARB_post_depth_coverage_enable ||
state->INTEL_conservative_rasterization_enable) {
state->INTEL_conservative_rasterization_enable) {
$$.flags.q.post_depth_coverage = 1;
} else {
_mesa_glsl_error(& @1, state,