mirror of
https://github.com/matrix-construct/construct
synced 2025-01-02 19:04:17 +01:00
ircd:🆑 Fix write-only flag option related.
This commit is contained in:
parent
2a730b2799
commit
6621a5fc4f
1 changed files with 1 additions and 2 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue