diff options
author | Kenneth Graunke <[email protected]> | 2018-01-30 01:09:53 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:05 -0800 |
commit | 8503578e8211f91d063cd99f0b810db3957e5605 (patch) | |
tree | 9b0d82d9058fb908ad334e051455cb84d33c9d33 | |
parent | 352ec1f378e234ae71ae78657a292f4c77cad5b9 (diff) |
iris: fix silly unused batch with addr macro
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d6a7a88a37a..5193f14a9c2 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -114,9 +114,10 @@ get_command_space(struct iris_batch *batch, unsigned bytes) dw[i] = (dwords)[i]; \ } \ uint64_t *qw = (uint64_t *) &dw[addr_idx]; \ - qw = iris_batch_reloc(batch, qw - batch->cmdbuf.map, addr.bo, \ - addr.offset + (dwords)[addr_idx + 1], \ - addr.reloc_flags); \ + *qw = iris_batch_reloc(batch, (void *)qw - batch->cmdbuf.map, \ + addr.bo, \ + addr.offset + (dwords)[addr_idx + 1], \ + addr.reloc_flags); \ for (uint32_t i = addr_idx + 1; i < num_dw; i++) { \ dw[i] = (dwords)[i]; \ } \ |