pan/midgard: Implement load/store_shared
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 5 Feb 2020 20:17:44 +0000 (15:17 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 13:56:59 +0000 (13:56 +0000)
commit3a310fbd0b2bb5730fda57643a3e05870e70d248
tree257c028800d89dac600a73685c3d36813efe5a20
parentfcbb3d422e40ab0759c550fb044605364c518e51
pan/midgard: Implement load/store_shared

Shared memory is implemented almost identically to global memory from an
ISA perspective, so let's handle the new intrinsics. We include a code
path for constant offsets, which doesn't come up for globals.

Fixes dEQP-GLES31.functional.compute.basic.shared_var_single_invocation

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3775>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3775>
src/panfrost/midgard/midgard_compile.c