summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_program.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2010-09-15 15:21:41 +0200
committerChristoph Bumiller <[email protected]>2010-09-15 15:35:14 +0200
commit84d170bbcef8e26017ac8e2f3bacbaeb20f889d3 (patch)
tree4a069763c1ae7f1dca33246f584b2d4e501f6349 /src/gallium/drivers/nv50/nv50_program.c
parentc46e7a05e501e02b10dbc06772c0ef01308f60d5 (diff)
nv50: put low limit on REG_ALLOC_TEMP and FP_RESULT_COUNT
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_program.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 24952f70f14..b3600f7ba73 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -514,6 +514,9 @@ nv50_fragprog_prepare(struct nv50_translation_info *ti)
if (depr < p->out_nr) {
p->out[depr].mask = 0x4;
p->out[depr].hw = ti->output_map[depr][2] = p->max_out++;
+ } else {
+ /* allowed values are 1, 4, 5, 8, 9, ... */
+ p->max_out = MAX2(4, p->max_out);
}
return 0;