diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-09-01 00:56:57 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-09-04 18:56:20 +0200 |
commit | 313e95f0c792580f6051fedb67e65838405c88f8 (patch) | |
tree | 44c9071b100303f58fe371302de9cbcc6293a27d /src/mesa/drivers/dri/r300/r300_blit.c | |
parent | a0fb406d9fd2bcd040f70ba639cc8342c0a92c6d (diff) |
r300/compiler: add new compiler parameter max_alu_insts
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_blit.c b/src/mesa/drivers/dri/r300/r300_blit.c index d2c25fb9cd..91d715a716 100644 --- a/src/mesa/drivers/dri/r300/r300_blit.c +++ b/src/mesa/drivers/dri/r300/r300_blit.c @@ -88,6 +88,9 @@ static void create_vertex_program(struct r300_context *r300) compiler.RequiredOutputs = compiler.Base.Program.OutputsWritten = (1 << VERT_RESULT_HPOS) | (1 << VERT_RESULT_TEX0); compiler.SetHwInputOutput = vp_ins_outs; compiler.code = &r300->blit.vp_code; + compiler.Base.is_r500 = r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515; + compiler.Base.max_temp_regs = 32; + compiler.Base.max_alu_insts = compiler.Base.is_r500 ? 1024 : 256; r3xx_compile_vertex_program(&compiler); } @@ -120,6 +123,7 @@ static void create_fragment_program(struct r300_context *r300) compiler.enable_shadow_ambient = GL_TRUE; compiler.Base.is_r500 = (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515); compiler.Base.max_temp_regs = (compiler.Base.is_r500) ? 128 : 32; + compiler.Base.max_alu_insts = compiler.Base.is_r500 ? 512 : 64; compiler.code = &r300->blit.fp_code; compiler.AllocateHwInputs = fp_allocate_hw_inputs; |