Module: Mesa
Branch: i965g-restart
Commit: 61a8ab3359e7b4886af95a6cce2d6cfc4302678e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=61a8ab3359e7b4886af95a6cce2d6cfc4302678e

Author: Keith Whitwell <kei...@vmware.com>
Date:   Thu Nov  5 15:10:22 2009 +0000

i965g: call dissassembler for appropriate data uploads

---

 src/gallium/winsys/drm/i965/xlib/xlib_i965.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/gallium/winsys/drm/i965/xlib/xlib_i965.c 
b/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
index fc465d7..54cf56c 100644
--- a/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
+++ b/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
@@ -47,6 +47,8 @@
 
 #define MAX_VRAM (128*1024*1024)
 
+extern int brw_disasm (FILE *file, struct brw_instruction *inst);
+
 struct xlib_brw_buffer
 {
    struct brw_winsys_buffer base;
@@ -234,7 +236,7 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
       brw_dump_cc_unit_state( data );
       break;
    case BRW_DATA_GS_WM_PROG:
-      /* disassem */
+      brw_disasm( stderr, data ); /* disassem */
       break;
    case BRW_DATA_GS_SAMPLER_DEFAULT_COLOR:
       brw_dump_sampler_default_color( data );
@@ -246,7 +248,7 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
       brw_dump_wm_unit_state( data );
       break;
    case BRW_DATA_GS_SF_PROG:
-      /* disassem */
+      brw_disasm( stderr, data ); /* disassem */
       break;
    case BRW_DATA_GS_SF_VP:
       brw_dump_sf_viewport( data );
@@ -258,13 +260,13 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
       brw_dump_vs_unit_state( data );
       break;
    case BRW_DATA_GS_VS_PROG:
-      /* disassem */
+      brw_disasm( stderr, data ); /* disassem */
       break;
    case BRW_DATA_GS_GS_UNIT:
       brw_dump_gs_unit_state( data );
       break;
    case BRW_DATA_GS_GS_PROG:
-      /* disassem */
+      brw_disasm( stderr, data ); /* disassem */
       break;
    case BRW_DATA_GS_CLIP_VP:
       brw_dump_clipper_viewport( data );
@@ -273,6 +275,7 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
       brw_dump_clip_unit_state( data );
       break;
    case BRW_DATA_GS_CLIP_PROG:
+      brw_disasm( stderr, data ); /* disassem */
       break;
    case BRW_DATA_SS_SURFACE:
       brw_dump_surface_state( data );

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to