mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
mesa: replace _mesa_problem with unreachable in fetch_state
let's get this out of release builds Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
This commit is contained in:
parent
4035a19320
commit
14a2117fc8
1 changed files with 8 additions and 8 deletions
|
|
@ -92,7 +92,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
value[3] = 1.0F;
|
value[3] = 1.0F;
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Invalid material state in fetch_state");
|
unreachable("Invalid material state in fetch_state");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -144,7 +144,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Invalid light state in fetch_state");
|
unreachable("Invalid light state in fetch_state");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -205,7 +205,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SPECULAR+face][3];
|
value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SPECULAR+face][3];
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Invalid lightprod state in fetch_state");
|
unreachable("Invalid lightprod state in fetch_state");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -240,7 +240,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
COPY_4V(value, ctx->Texture.FixedFuncUnit[unit].GenQ.ObjectPlane);
|
COPY_4V(value, ctx->Texture.FixedFuncUnit[unit].GenQ.ObjectPlane);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Invalid texgen state in fetch_state");
|
unreachable("Invalid texgen state in fetch_state");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -323,7 +323,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
matrix = ctx->ProgramMatrixStack[index].Top;
|
matrix = ctx->ProgramMatrixStack[index].Top;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_mesa_problem(ctx, "Bad matrix name in fetch_state()");
|
unreachable("Bad matrix name in fetch_state()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (modifier == STATE_MATRIX_INVERSE ||
|
if (modifier == STATE_MATRIX_INVERSE ||
|
||||||
|
|
@ -387,7 +387,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
ctx->FragmentProgram.Current->arb.LocalParams[idx]);
|
ctx->FragmentProgram.Current->arb.LocalParams[idx]);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Bad state switch in fetch_state()");
|
unreachable("Bad state switch in fetch_state()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -416,7 +416,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
ctx->VertexProgram.Current->arb.LocalParams[idx]);
|
ctx->VertexProgram.Current->arb.LocalParams[idx]);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Bad state switch in fetch_state()");
|
unreachable("Bad state switch in fetch_state()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -631,7 +631,7 @@ fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Invalid state in _mesa_fetch_state");
|
unreachable("Invalid state in _mesa_fetch_state");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue