gallium/radeon: mark the gpu load thread stop trigger as volatile
authorMarek Olšák <marek.olsak@amd.com>
Fri, 26 Jun 2015 17:01:23 +0000 (19:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jul 2015 13:08:59 +0000 (15:08 +0200)
src/gallium/drivers/radeon/r600_pipe_common.h

index 2b27e58e0e2e91f20f858d3771f175c24873986a..a471426ea2759f07f58fe2ed81c123a48a135c44 100644 (file)
@@ -290,7 +290,7 @@ struct r600_common_screen {
        pipe_thread                     gpu_load_thread;
        unsigned                        gpu_load_counter_busy;
        unsigned                        gpu_load_counter_idle;
-       unsigned                        gpu_load_stop_thread; /* bool */
+       volatile unsigned               gpu_load_stop_thread; /* bool */
 };
 
 /* This encapsulates a state or an operation which can emitted into the GPU