diff options
author | Tom Stellard <[email protected]> | 2014-02-13 14:46:25 -0800 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-02-24 12:56:27 -0800 |
commit | 945d87f95877e198fb2203f47a4ebbccae883978 (patch) | |
tree | 15299ffc2bff41616eaecda1cf0158ca4c56b094 /src/gallium/include | |
parent | eac7236042e3deb87c681c2f70c606c1b6565c22 (diff) |
clover: Pass buffer offsets to the driver in set_global_binding() v3
The offsets will be stored in the handles parameter. This makes
it possible to use sub-buffers.
v2:
- Style fixes
- Add support for constant sub-buffers
- Store handles in device byte order
v3:
- Use endian helpers
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 8ef6e27e7cd..209ec9e074b 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -460,11 +460,14 @@ struct pipe_context { * unless it's NULL, in which case no new * resources will be bound. * \param handles array of pointers to the memory locations that - * will be filled with the respective base - * addresses each buffer will be mapped to. It - * should contain at least \a count elements, - * unless \a resources is NULL in which case \a - * handles should be NULL as well. + * will be updated with the address each buffer + * will be mapped to. The base memory address of + * each of the buffers will be added to the value + * pointed to by its corresponding handle to form + * the final address argument. It should contain + * at least \a count elements, unless \a + * resources is NULL in which case \a handles + * should be NULL as well. * * Note that the driver isn't required to make any guarantees about * the contents of the \a handles array being valid anytime except |