diff options
-rw-r--r-- | nvlib.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1137,6 +1137,8 @@ struct nv_channel { struct nv_channel_direct : public nv_channel { + uint32_t put; + nv_channel_direct(struct nv_device* dev, int channel) : nv_channel(dev, channel) { @@ -1144,8 +1146,7 @@ struct nv_channel_direct : public nv_channel virtual void wait_idle() { - uint32_t get, put; - put = dev->rd_put(channel); + uint32_t get; while(get != put) get = dev->rd_get(channel); } @@ -1162,7 +1163,6 @@ struct nv_channel_vram : public nv_channel_direct uint32_t vram_ctxdma; uint32_t our_put; - uint32_t put; nv_channel_vram(struct nv_device* dev, int channel) : nv_channel_direct(dev, channel) @@ -1222,7 +1222,6 @@ struct nv_channel_parasite : public nv_channel_direct { std::unique_ptr<nv_object> dmaobj; uint32_t dmactx; - uint32_t put; uint32_t our_put; uint32_t orig_getput; nv_channel_runner* runner; |