tgsi: Observe constness.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 28 May 2008 12:48:30 +0000 (21:48 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 28 May 2008 12:48:30 +0000 (21:48 +0900)
src/gallium/auxiliary/tgsi/util/tgsi_dump.c

index 648afa2a51bc7dde7bfdbcc24af36d19605e1368..b018ea9fa1cd0fa0bbe9d7cfa841a2a6a83de2bb 100644 (file)
@@ -754,7 +754,7 @@ tgsi_dump_instruction(
    }
 
    for( i = 0; i < inst->Instruction.NumDstRegs; i++ ) {
-      struct tgsi_full_dst_register *dst = &inst->FullDstRegisters[i];
+      const struct tgsi_full_dst_register *dst = &inst->FullDstRegisters[i];
 
       if( !first_reg ) {
          CHR( ',' );
@@ -812,7 +812,7 @@ tgsi_dump_instruction(
    }
 
    for( i = 0; i < inst->Instruction.NumSrcRegs; i++ ) {
-      struct tgsi_full_src_register *src = &inst->FullSrcRegisters[i];
+      const struct tgsi_full_src_register *src = &inst->FullSrcRegisters[i];
 
       if( !first_reg ) {
          CHR( ',' );