summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm/i965
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-05 15:34:18 +0000
committerKeith Whitwell <[email protected]>2009-11-05 15:34:18 +0000
commitaa9773d056a8799050304f75c1bf4c1f470e7e53 (patch)
tree0e89b092ad7187b6224083f36ed2c3b33dbbea05 /src/gallium/winsys/drm/i965
parent203adb8ea68da0fbb2e4643e36e273f31c29980f (diff)
i965g: disassemble more than one instruction at a time
Diffstat (limited to 'src/gallium/winsys/drm/i965')
-rw-r--r--src/gallium/winsys/drm/i965/xlib/xlib_i965.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/gallium/winsys/drm/i965/xlib/xlib_i965.c b/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
index 54cf56c8119..d129067ba37 100644
--- a/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
+++ b/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
@@ -47,7 +47,9 @@
#define MAX_VRAM (128*1024*1024)
-extern int brw_disasm (FILE *file, struct brw_instruction *inst);
+extern int brw_disasm (FILE *file,
+ const struct brw_instruction *inst,
+ unsigned count );
struct xlib_brw_buffer
{
@@ -236,7 +238,11 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
brw_dump_cc_unit_state( data );
break;
case BRW_DATA_GS_WM_PROG:
- brw_disasm( stderr, data ); /* disassem */
+ case BRW_DATA_GS_SF_PROG:
+ case BRW_DATA_GS_VS_PROG:
+ case BRW_DATA_GS_GS_PROG:
+ case BRW_DATA_GS_CLIP_PROG:
+ brw_disasm( stderr, data, size / sizeof(struct brw_instruction) );
break;
case BRW_DATA_GS_SAMPLER_DEFAULT_COLOR:
brw_dump_sampler_default_color( data );
@@ -247,9 +253,6 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
case BRW_DATA_GS_WM_UNIT:
brw_dump_wm_unit_state( data );
break;
- case BRW_DATA_GS_SF_PROG:
- brw_disasm( stderr, data ); /* disassem */
- break;
case BRW_DATA_GS_SF_VP:
brw_dump_sf_viewport( data );
break;
@@ -259,24 +262,15 @@ xlib_brw_bo_subdata(struct brw_winsys_buffer *buffer,
case BRW_DATA_GS_VS_UNIT:
brw_dump_vs_unit_state( data );
break;
- case BRW_DATA_GS_VS_PROG:
- 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:
- brw_disasm( stderr, data ); /* disassem */
- break;
case BRW_DATA_GS_CLIP_VP:
brw_dump_clipper_viewport( data );
break;
case BRW_DATA_GS_CLIP_UNIT:
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 );
break;