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:
parent
bf55096207
commit
d5a15a89f0
|
@ -627,7 +627,7 @@ fs_visitor::assign_regs(bool allow_spilling)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Debug of register spilling: Go spill everything. */
|
/* Debug of register spilling: Go spill everything. */
|
||||||
if (0) {
|
if (unlikely(INTEL_DEBUG & DEBUG_SPILL)) {
|
||||||
int reg = choose_spill_reg(g);
|
int reg = choose_spill_reg(g);
|
||||||
|
|
||||||
if (reg != -1) {
|
if (reg != -1) {
|
||||||
|
|
|
@ -69,6 +69,7 @@ static const struct dri_debug_control debug_control[] = {
|
||||||
{ "ann", DEBUG_ANNOTATION },
|
{ "ann", DEBUG_ANNOTATION },
|
||||||
{ "no8", DEBUG_NO8 },
|
{ "no8", DEBUG_NO8 },
|
||||||
{ "vec4vs", DEBUG_VEC4VS },
|
{ "vec4vs", DEBUG_VEC4VS },
|
||||||
|
{ "spill", DEBUG_SPILL },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ extern uint64_t INTEL_DEBUG;
|
||||||
#define DEBUG_ANNOTATION (1ull << 28)
|
#define DEBUG_ANNOTATION (1ull << 28)
|
||||||
#define DEBUG_NO8 (1ull << 29)
|
#define DEBUG_NO8 (1ull << 29)
|
||||||
#define DEBUG_VEC4VS (1ull << 30)
|
#define DEBUG_VEC4VS (1ull << 30)
|
||||||
|
#define DEBUG_SPILL (1ull << 31)
|
||||||
|
|
||||||
#ifdef HAVE_ANDROID_PLATFORM
|
#ifdef HAVE_ANDROID_PLATFORM
|
||||||
#define LOG_TAG "INTEL-MESA"
|
#define LOG_TAG "INTEL-MESA"
|
||||||
|
|
Loading…
Reference in New Issue