Module: Mesa
Branch: master
Commit: da31e2c22d72af041a4558b30eb354ff17f000ba
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=da31e2c22d72af041a4558b30eb354ff17f000ba

Author: Dave Airlie <[email protected]>
Date:   Fri Nov 10 13:46:19 2017 +1000

r600: don't emit atomic save if we have no atomic counters.

Otherwise we end up emitting the fence.

Tested-By: Gert Wollny <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>

---

 src/gallium/drivers/r600/evergreen_state.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/r600/evergreen_state.c 
b/src/gallium/drivers/r600/evergreen_state.c
index eb8b139910..68977bb36d 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -4221,6 +4221,9 @@ void evergreen_emit_atomic_buffer_save(struct 
r600_context *rctx,
        unsigned reloc;
 
        mask = *atomic_used_mask_p;
+       if (!mask)
+               return;
+
        while (mask) {
                unsigned atomic_index = u_bit_scan(&mask);
                struct r600_shader_atomic *atomic = 
&combined_atomics[atomic_index];

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to