i965: Print VS output VUE map in Vulkan too.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Jan 2017 01:52:38 +0000 (17:52 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Jan 2017 09:55:27 +0000 (01:55 -0800)
We need to move this to the shared layer.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vs.c

index f096ce9e020147acec2eea9ac5f5a086b532e324..b5e846d7cf56e6df43009670168349ff6f503c74 100644 (file)
@@ -2786,6 +2786,11 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
    else
       prog_data->base.urb_entry_size = DIV_ROUND_UP(vue_entries, 4);
 
+   if (INTEL_DEBUG & DEBUG_VS) {
+      fprintf(stderr, "VS Output ");
+      brw_print_vue_map(stderr, &prog_data->base.vue_map);
+   }
+
    if (is_scalar) {
       prog_data->base.dispatch_mode = DISPATCH_MODE_SIMD8;
 
index ede6097b40420bb20637e91ed9553f420818940c..9d219fd7b158581811e6ec89e9dff54c28ead87b 100644 (file)
@@ -169,9 +169,6 @@ brw_codegen_vs_prog(struct brw_context *brw,
    if (unlikely(INTEL_DEBUG & DEBUG_VS)) {
       if (!prog)
          brw_dump_arb_asm("vertex", &vp->program);
-
-      fprintf(stderr, "VS Output ");
-      brw_print_vue_map(stderr, &prog_data.base.vue_map);
    }
 
    int st_index = -1;