diff options
author | Eric Anholt <eric@anholt.net> | 2011-03-13 13:43:05 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-03-24 11:31:36 -0700 |
commit | 2911fa0cca86f7acbc5423cab4dd328a412253cd (patch) | |
tree | 5f2e9f733c02be234901680c2f758e2bf5cebb8e /src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | |
parent | 4a101f957714dea2bc956d516d34c5b56ecb2c64 (diff) |
i965/fs: Make compile failure more verbose with INTEL_DEBUG=wm.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index f0277423170..479a91436a7 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -119,8 +119,7 @@ fs_visitor::assign_regs() } if (i == class_count) { if (this->virtual_grf_sizes[r] >= base_reg_count) { - fprintf(stderr, "Object too large to register allocate.\n"); - this->fail = true; + fail("Object too large to register allocate.\n"); } class_sizes[class_count++] = this->virtual_grf_sizes[r]; @@ -226,8 +225,11 @@ fs_visitor::assign_regs() * loop back into here to try again. */ int reg = choose_spill_reg(g); - if (reg == -1 || intel->gen >= 6) { - this->fail = true; + + if (reg == -1) { + fail("no register to spill\n"); + } else if (intel->gen >= 6) { + fail("no spilling support on gen6 yet\n"); } else { spill_reg(reg); } |