gallivm/nir: fix image store conversions
authorDave Airlie <airlied@redhat.com>
Tue, 7 Apr 2020 05:06:26 +0000 (15:06 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 27 Apr 2020 00:06:00 +0000 (10:06 +1000)
commit13e5f331db77b8c353981469a95e5557e3e2073a
tree4dd69c0cbecc1b04ad1c600e24439f58c8396f30
parentbf3c9d27706dc2362b81aad12eec1f7e48e53ddd
gallivm/nir: fix image store conversions

This fixes a few of the image store paths, to do the
correct clamping of unsigned/signed values

Fixes: KHR-GLES31.core.layout_binding.block_layout_binding_block_ComputeShader
KHR-GL45.shader_image_load_store.basic-allFormats-store
KHR-GL46.shader_image_load_store.multiple-uniforms

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4574>
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c