clover: Pass buffer offsets to the driver in set_global_binding() v3
authorTom Stellard <thomas.stellard@amd.com>
Thu, 13 Feb 2014 22:46:25 +0000 (14:46 -0800)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 24 Feb 2014 20:56:27 +0000 (12:56 -0800)
commit945d87f95877e198fb2203f47a4ebbccae883978
tree15299ffc2bff41616eaecda1cf0158ca4c56b094
parenteac7236042e3deb87c681c2f70c606c1b6565c22
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 <currojerez@riseup.net>
src/gallium/drivers/r600/evergreen_compute.c
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/include/pipe/p_context.h
src/gallium/state_trackers/clover/core/kernel.cpp