On RV8xx I believe you can use UAVs to seperate input and output. However RV7xx supports only 1 UAV.
If you care about backward compatibility, you need to seperate the input and output area of the global buffer g[], like a ping-pong buffer.
You can also read data from g[], manipulate it and store the results back to g[], overriding the input.