svga: Handle comment tokens when dumping.

This commit is contained in:
José Fonseca 2009-11-15 12:14:03 -08:00
parent d185c2fd13
commit f3a0615fb0
2 changed files with 12 additions and 1 deletions

View File

@ -211,4 +211,10 @@ struct sh_trinaryop
struct sh_srcreg src2;
};
struct sh_comment
{
unsigned opcode:16;
unsigned size:16;
};
#endif /* ST_SHADER_SVGA_H */

View File

@ -587,7 +587,12 @@ svga_shader_dump(
break;
case SVGA3DOP_COMMENT:
assert( 0 );
{
struct sh_comment comment = *(struct sh_comment *)assem;
/* Ignore comment contents. */
assem += sizeof(struct sh_comment) / sizeof(unsigned) + comment.size;
}
break;
case SVGA3DOP_RET: