Mesa (master): gallium/radeon: mark the gpu load thread stop trigger as volatile

Marek Olšák mareko at kemper.freedesktop.org
Sun Jul 5 13:09:52 UTC 2015


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Jun 26 19:01:23 2015 +0200

gallium/radeon: mark the gpu load thread stop trigger as volatile

---

 src/gallium/drivers/radeon/r600_pipe_common.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h
index 2b27e58..a471426 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.h
+++ b/src/gallium/drivers/radeon/r600_pipe_common.h
@@ -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




More information about the mesa-commit mailing list