r600/shader: add get_lds_offset0 helper
authorDave Airlie <airlied@redhat.com>
Mon, 30 Nov 2015 05:39:58 +0000 (15:39 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 6 Dec 2015 23:59:01 +0000 (09:59 +1000)
commit4477be2404c9e3bb14835afcb1516daa25b8bb08
tree0cfd8b49bdfae1384d5c54551bdcfba48b275dfc
parent2a9639e41fdcecb489e39f739e4d42e6a78655f3
r600/shader: add get_lds_offset0 helper

This retrievs the offset into the LDS for a patch or
non-patch variable, it takes the RelPatch channel
and a temporary register.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c