From ba887517160ab2b5a70e01723ee649db1554775b Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 22 Oct 2007 08:46:28 -0400 Subject: Align the load/stores. Reduce the amount of debugging output. --- src/mesa/pipe/draw/draw_vertex_shader_llvm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/pipe/draw') diff --git a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c index 05c3fe511b..bcc44f7980 100644 --- a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c +++ b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c @@ -38,6 +38,8 @@ #include "pipe/llvm/llvmtgsi.h" #include "pipe/tgsi/exec/tgsi_core.h" +#define DBG 0 + static INLINE void fetch_attrib4(const void *ptr, unsigned format, float attrib[4]) { @@ -155,7 +157,9 @@ void draw_vertex_shader_queue_flush_llvm(struct draw_context *draw) y = vOut->clip[1] = dests[0][1]; z = vOut->clip[2] = dests[0][2]; w = vOut->clip[3] = dests[0][3]; +#if DBG printf("output %d: %f %f %f %f\n", 0, x, y, z, w); +#endif vOut->clipmask = compute_clipmask(vOut->clip, draw->plane, draw->nr_planes); vOut->edgeflag = 1; @@ -183,11 +187,13 @@ void draw_vertex_shader_queue_flush_llvm(struct draw_context *draw) vOut->data[slot][2] = dests[slot][2]; vOut->data[slot][3] = dests[slot][3]; +#if DBG printf("output %d: %f %f %f %f\n", slot, vOut->data[slot][0], vOut->data[slot][1], vOut->data[slot][2], vOut->data[slot][3]); +#endif } } /* loop over vertices */ -- cgit v1.2.3