projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891ad6e
)
i915: Add debugging for just prorgam compile under INTEL_DEBUG=wm
author
Eric Anholt
<eric@anholt.net>
Mon, 26 Apr 2010 16:18:23 +0000
(09:18 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 28 Apr 2010 00:12:38 +0000
(17:12 -0700)
src/mesa/drivers/dri/i915/i915_fragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/i915_fragprog.c
b/src/mesa/drivers/dri/i915/i915_fragprog.c
index 06811c9ece19b9f166a79fde797b2984a3505ff6..e60157f37772a9d4d0c91aad2d3f5b83c485eb64 100644
(file)
--- a/
src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/
src/mesa/drivers/dri/i915/i915_fragprog.c
@@
-1100,12
+1100,23
@@
translate_program(struct i915_fragment_program *p)
{
struct i915_context *i915 = I915_CONTEXT(p->ctx);
+ if (INTEL_DEBUG & DEBUG_WM) {
+ printf("fp:\n");
+ _mesa_print_program(&p->ctx->FragmentProgram._Current->Base);
+ printf("\n");
+ }
+
i915_init_program(i915, p);
check_wpos(p);
upload_program(p);
fixup_depth_write(p);
i915_fini_program(p);
+ if (INTEL_DEBUG & DEBUG_WM) {
+ printf("i915:\n");
+ i915_disassemble_program(i915->state.Program, i915->state.ProgramSize);
+ }
+
p->translated = 1;
}