mesa: fix assorted compiler warnings
This commit is contained in:
parent
bc8fb028c6
commit
133501bef2
|
@ -35,7 +35,7 @@ enum asm_type {
|
|||
at_attrib,
|
||||
at_param,
|
||||
at_temp,
|
||||
at_output,
|
||||
at_output
|
||||
};
|
||||
|
||||
struct asm_symbol {
|
||||
|
|
|
@ -925,7 +925,7 @@ gen_return_with_expression(slang_assemble_ctx *A, slang_operation *oper)
|
|||
slang_operation_copy(rhs, &oper->children[0]);
|
||||
}
|
||||
|
||||
///blockOper->locals->outer_scope = oper->locals->outer_scope;
|
||||
/*blockOper->locals->outer_scope = oper->locals->outer_scope;*/
|
||||
|
||||
/*slang_print_tree(blockOper, 0);*/
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ void st_validate_state( struct st_context *st )
|
|||
if (state->st == 0)
|
||||
return;
|
||||
|
||||
// _mesa_printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);
|
||||
/*_mesa_printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);*/
|
||||
|
||||
if (1) {
|
||||
/* Debug version which enforces various sanity checks on the
|
||||
|
@ -152,7 +152,7 @@ void st_validate_state( struct st_context *st )
|
|||
const struct st_tracked_state *atom = atoms[i];
|
||||
struct st_state_flags generated;
|
||||
|
||||
// _mesa_printf("atom %s %x/%x\n", atom->name, atom->dirty.mesa, atom->dirty.st);
|
||||
/*_mesa_printf("atom %s %x/%x\n", atom->name, atom->dirty.mesa, atom->dirty.st);*/
|
||||
|
||||
if (!(atom->dirty.mesa || atom->dirty.st) ||
|
||||
!atom->update) {
|
||||
|
@ -162,7 +162,7 @@ void st_validate_state( struct st_context *st )
|
|||
|
||||
if (check_state(state, &atom->dirty)) {
|
||||
atoms[i]->update( st );
|
||||
// _mesa_printf("after: %x\n", atom->dirty.mesa);
|
||||
/*_mesa_printf("after: %x\n", atom->dirty.mesa);*/
|
||||
}
|
||||
|
||||
accumulate_state(&examined, &atom->dirty);
|
||||
|
@ -175,7 +175,7 @@ void st_validate_state( struct st_context *st )
|
|||
assert(!check_state(&examined, &generated));
|
||||
prev = *state;
|
||||
}
|
||||
// _mesa_printf("\n");
|
||||
/*_mesa_printf("\n");*/
|
||||
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -526,7 +526,7 @@ reset_cache(struct st_context *st)
|
|||
struct pipe_screen *screen = pipe->screen;
|
||||
struct bitmap_cache *cache = st->bitmap.cache;
|
||||
|
||||
//memset(cache->buffer, 0xff, sizeof(cache->buffer));
|
||||
/*memset(cache->buffer, 0xff, sizeof(cache->buffer));*/
|
||||
cache->empty = GL_TRUE;
|
||||
|
||||
cache->xmin = 1000000;
|
||||
|
|
|
@ -80,7 +80,7 @@ st_translate_vertex_program(struct st_context *st,
|
|||
GLbitfield input_flags[MAX_PROGRAM_INPUTS];
|
||||
GLbitfield output_flags[MAX_PROGRAM_OUTPUTS];
|
||||
|
||||
// memset(&vs, 0, sizeof(vs));
|
||||
/*memset(&vs, 0, sizeof(vs));*/
|
||||
memset(input_flags, 0, sizeof(input_flags));
|
||||
memset(output_flags, 0, sizeof(output_flags));
|
||||
|
||||
|
@ -386,7 +386,7 @@ st_translate_fragment_program(struct st_context *st,
|
|||
GLbitfield input_flags[MAX_PROGRAM_INPUTS];
|
||||
GLbitfield output_flags[MAX_PROGRAM_OUTPUTS];
|
||||
|
||||
// memset(&fs, 0, sizeof(fs));
|
||||
/*memset(&fs, 0, sizeof(fs));*/
|
||||
memset(input_flags, 0, sizeof(input_flags));
|
||||
memset(output_flags, 0, sizeof(output_flags));
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ check_array_data(GLcontext *ctx, struct gl_client_array *array,
|
|||
array->Ptr, array->BufferObj->Name);
|
||||
f[k] = 1.0; /* XXX replace the bad value! */
|
||||
}
|
||||
//assert(!IS_INF_OR_NAN(f[k]));
|
||||
/*assert(!IS_INF_OR_NAN(f[k]));*/
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue