#include "brw_state.h"
+static char const *get_qual_name(int mode)
+{
+ switch (mode) {
+ case INTERP_QUALIFIER_NONE: return "none";
+ case INTERP_QUALIFIER_FLAT: return "flat";
+ case INTERP_QUALIFIER_SMOOTH: return "smooth";
+ case INTERP_QUALIFIER_NOPERSPECTIVE: return "nopersp";
+ default: return "???";
+ }
+}
+
/* Set up interpolation modes for every element in the VUE */
static void
brw->interpolation_mode.mode[i] = mode;
}
+
+ if (unlikely(INTEL_DEBUG & DEBUG_VUE)) {
+ printf("VUE map:\n");
+ for (int i = 0; i < vue_map->num_slots; i++) {
+ int varying = vue_map->slot_to_varying[i];
+ if (varying == -1) {
+ printf("%d: --\n", i);
+ continue;
+ }
+
+ printf("%d: %d %s ofs %d\n",
+ i, varying,
+ get_qual_name(brw->interpolation_mode.mode[i]),
+ brw_vue_slot_to_offset(i));
+ }
+ }
}
#define DEBUG_SHADER_TIME 0x8000000
#define DEBUG_BLORP 0x10000000
#define DEBUG_NO16 0x20000000
+#define DEBUG_VUE 0x40000000
#ifdef HAVE_ANDROID_PLATFORM
#define LOG_TAG "INTEL-MESA"