i965: Add an INTEL_DEBUG=spill option to test spilling

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jason Ekstrand 2015-04-23 11:49:27 -07:00
parent bf55096207
commit d5a15a89f0
3 changed files with 3 additions and 1 deletions

View File

@ -627,7 +627,7 @@ fs_visitor::assign_regs(bool allow_spilling)
}
/* Debug of register spilling: Go spill everything. */
if (0) {
if (unlikely(INTEL_DEBUG & DEBUG_SPILL)) {
int reg = choose_spill_reg(g);
if (reg != -1) {

View File

@ -69,6 +69,7 @@ static const struct dri_debug_control debug_control[] = {
{ "ann", DEBUG_ANNOTATION },
{ "no8", DEBUG_NO8 },
{ "vec4vs", DEBUG_VEC4VS },
{ "spill", DEBUG_SPILL },
{ NULL, 0 }
};

View File

@ -64,6 +64,7 @@ extern uint64_t INTEL_DEBUG;
#define DEBUG_ANNOTATION (1ull << 28)
#define DEBUG_NO8 (1ull << 29)
#define DEBUG_VEC4VS (1ull << 30)
#define DEBUG_SPILL (1ull << 31)
#ifdef HAVE_ANDROID_PLATFORM
#define LOG_TAG "INTEL-MESA"