Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b730d866 authored by Tim Murray's avatar Tim Murray
Browse files

Fix IO_INPUT with 64-bit.

bug 16846318
bug 17006933

Change-Id: Ic13ef26875d8a6fab1ffb542d62038b768a536ff
parent 823fd3c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1868,7 +1868,7 @@ public class Allocation extends BaseObj {
        }
    }

    static void sendBufferNotification(int id) {
    static void sendBufferNotification(long id) {
        synchronized(mAllocationMap) {
            Allocation a = mAllocationMap.get(new Long(id));

+6 −1
Original line number Diff line number Diff line
@@ -1156,7 +1156,12 @@ public class RenderScript {
                }

                if (msg == RS_MESSAGE_TO_CLIENT_NEW_BUFFER) {
                    Allocation.sendBufferNotification(subID);
                    if (mRS.nContextGetUserMessage(mRS.mContext, rbuf) !=
                        RS_MESSAGE_TO_CLIENT_NEW_BUFFER) {
                        throw new RSDriverException("Error processing message from RenderScript.");
                    }
                    long bufferID = ((long)rbuf[1] << 32L) + ((long)rbuf[0] & 0xffffffffL);
                    Allocation.sendBufferNotification(bufferID);
                    continue;
                }