glsl: lower SSBO atomic intrinsics
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 8 Jul 2015 13:59:05 +0000 (15:59 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:22 +0000 (08:39 +0200)
commitd2719b6e4f6bdbbd29ac66903d3d9dad9bd01386
tree975a6fd92363fb76510d830f9ce5dd199be2491c
parentda659087b9620805c155c3954f560995ed96d5b4
glsl: lower SSBO atomic intrinsics

The first argument to SSBO atomics is a reference to a SSBO buffer variable
so we want to compute its block index and offset and provide these values
to an internal version of the intrinsic that takes them instead of the
buffer variable reference.

v2:
- Support single components of integer vectors to be passed in as arguments.
- Get interface packing information from interface's type.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/lower_ubo_reference.cpp