d90fbee9c4
On GPUs where EOP is handled in asic, the read_dispatch_id is not always updated after each packet. Look for the first dispatch packet that needs scratch memory before allocating scratch. Change-Id: Ibf4b4b485f99bf2fabfe48e9609ca99111fdafbe