mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
r300g,r300c: memset the compiler struct to zeros
This should fix bogus reports "Too many temporaries." and maybe some others.
This commit is contained in:
parent
7a212525a2
commit
ece8490bb5
4 changed files with 4 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ void r300_translate_vertex_shader(struct r300_context *r300,
|
|||
unsigned i;
|
||||
|
||||
/* Setup the compiler */
|
||||
memset(&compiler, 0, sizeof(compiler));
|
||||
rc_init(&compiler.Base);
|
||||
|
||||
compiler.Base.Debug = DBG_ON(r300, DBG_VP);
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ static void create_vertex_program(struct r300_context *r300)
|
|||
struct r300_vertex_program_compiler compiler;
|
||||
struct rc_instruction *inst;
|
||||
|
||||
memset(&compiler, 0, sizeof(compiler));
|
||||
rc_init(&compiler.Base);
|
||||
|
||||
inst = rc_insert_new_instruction(&compiler.Base, compiler.Base.Program.Instructions.Prev);
|
||||
|
|
|
|||
|
|
@ -213,6 +213,7 @@ static void translate_fragment_program(GLcontext *ctx, struct r300_fragment_prog
|
|||
r300ContextPtr r300 = R300_CONTEXT(ctx);
|
||||
struct r300_fragment_program_compiler compiler;
|
||||
|
||||
memset(&compiler, 0, sizeof(compiler));
|
||||
rc_init(&compiler.Base);
|
||||
compiler.Base.Debug = (RADEON_DEBUG & RADEON_PIXEL) ? GL_TRUE : GL_FALSE;
|
||||
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ static struct r300_vertex_program *build_program(GLcontext *ctx,
|
|||
vp->Base = _mesa_clone_vertex_program(ctx, mesa_vp);
|
||||
memcpy(&vp->key, wanted_key, sizeof(vp->key));
|
||||
|
||||
memset(&compiler, 0, sizeof(compiler));
|
||||
rc_init(&compiler.Base);
|
||||
compiler.Base.Debug = (RADEON_DEBUG & RADEON_VERTS) ? GL_TRUE : GL_FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue