OSDN Git Service

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 648afa2..b018ea9 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( ',' );