lima/ppir: change offset type to int
authorMateusz Krzak <kszaquitto@gmail.com>
Fri, 7 Jun 2019 22:33:30 +0000 (00:33 +0200)
committerkszaq <kszaquitto@gmail.com>
Thu, 13 Jun 2019 05:43:24 +0000 (07:43 +0200)
Offset doesn't need to be 64-bit. This fixes compilation error
with 64-bit off_t.

Fixes: af0de6b9 lima/ppir: implement discard and discard_if
Suggested-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Mateusz Krzak <kszaquitto@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
src/gallium/drivers/lima/ir/pp/codegen.c
src/gallium/drivers/lima/ir/pp/ppir.h

index 2501ddccc6f1ddd95acc277e24a9a560137cd46a..d568e1dda36aba7f2c31319e02d1edabf074d4f8 100644 (file)
@@ -677,7 +677,7 @@ static void ppir_codegen_print_prog(ppir_compiler *comp)
    printf("========ppir codegen========\n");
    list_for_each_entry(ppir_block, block, &comp->block_list, list) {
       list_for_each_entry(ppir_instr, instr, &block->instr_list, list) {
-         printf("%03d (@%6ld): ", instr->index, instr->offset);
+         printf("%03d (@%6d): ", instr->index, instr->offset);
          int n = prog[0] & 0x1f;
          for (int i = 0; i < n; i++) {
             if (i && i % 6 == 0)
index 233e5cdc3d8a887dc2ea599eedf281db211367e6..4b15804952f4fd41ef7c2d5ad1b893ebe24f94f8 100644 (file)
@@ -297,7 +297,7 @@ typedef struct ppir_instr {
    int est; /* earliest start time */
    int parent_index;
    bool scheduled;
-   off_t offset;
+   int offset;
 } ppir_instr;
 
 typedef struct ppir_block {