0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 06:08:52 +02:00

ircd:🆑 Fix write-only flag option related.

This commit is contained in:
Jason Volk 2021-03-29 10:29:20 -07:00
parent 2a730b2799
commit 6621a5fc4f

View file

@ -1187,8 +1187,7 @@ ircd::cl::data::data(const size_t size_,
};
cl_mem_flags flags {0};
flags |= CL_MEM_READ_WRITE;
flags |= wonly? CL_MEM_WRITE_ONLY: 0;
flags |= wonly? CL_MEM_WRITE_ONLY: CL_MEM_READ_WRITE;
flags |= ircd::size(buf)? CL_MEM_COPY_HOST_PTR: 0;
int err {CL_SUCCESS};