{
struct pipe_screen *screen = st->pipe->screen;
struct gl_constants *c = &st->ctx->Const;
- struct gl_program_constants *pc;
unsigned i;
c->MaxTextureLevels
for(i = 0; i < MESA_SHADER_TYPES; ++i) {
struct gl_shader_compiler_options *options = &st->ctx->ShaderCompilerOptions[i];
+ struct gl_program_constants *pc;
switch(i)
{
case PIPE_SHADER_FRAGMENT:
case PIPE_SHADER_GEOMETRY:
pc = &c->GeometryProgram;
break;
+ default:
+ assert(0);
+ continue;
}
pc->MaxNativeInstructions = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_INSTRUCTIONS);