softpipe: Implement ATOMFADD and enable cap TGSI_ATOMFADD
authorGert Wollny <gert.wollny@collabora.com>
Tue, 19 Mar 2019 16:24:26 +0000 (17:24 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Tue, 2 Apr 2019 09:58:16 +0000 (09:58 +0000)
commit33d9b9436c3c9026229f7cb33ad6f5f1c65e6900
tree7e84e0c2d3ee98c4d1a0ffced48cae0398779298
parent4f153fcd5cee9d3ffeb45488a0ea83e0a2ff5658
softpipe: Implement ATOMFADD and enable cap TGSI_ATOMFADD

This enables the following piglits with PASS:
  nv_shader_atomic_float/execution/
    shared-atomicadd-float
    shared-atomicexchange-float
    ssbo-atomicadd-float
    ssbo-atomicexchange-float

v2: Minimize the patch by using type punning (Eric Anholt)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/softpipe/sp_buffer.c
src/gallium/drivers/softpipe/sp_screen.c