aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Hensl <emulator@emulace.cz>2024-07-29 13:34:42 +0200
committerJaroslav Hensl <emulator@emulace.cz>2024-07-29 13:34:42 +0200
commitbe8a59eca43f5de0b25c332f4e7c6f799fce307f (patch)
treee7a02cd4dfac1b67364026f60b7e6a87fc86a28f
parentaa6a69c3b3e147581eb6f1339ae73e876841ef95 (diff)
downloadvmdisp9x-1.2024.0.72.tar.gz
optimised CB checkingv1.2024.0.72
-rw-r--r--makefile2
-rw-r--r--vxd_svga_cb.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/makefile b/makefile
index cd43a4d..9324d8a 100644
--- a/makefile
+++ b/makefile
@@ -12,7 +12,7 @@ OBJS += &
INCS = -I$(%WATCOM)\h\win -Iddk -Ivmware
-VER_BUILD = 71
+VER_BUILD = 72
FLAGS = -DDRV_VER_BUILD=$(VER_BUILD)
diff --git a/vxd_svga_cb.c b/vxd_svga_cb.c
index c73da2f..47ac8f4 100644
--- a/vxd_svga_cb.c
+++ b/vxd_svga_cb.c
@@ -97,10 +97,10 @@ static uint64 cb_next_id = {0, 0};
*/
#define WAIT_FOR_CB(_cb, _forcesync) \
do{ \
- /*dbg_printf(dbg_wait_cb, __LINE__);*/ \
- while(!CB_queue_check_inline(_cb)){ \
- WAIT_FOR_CB_SYNC_ ## _forcesync \
- } \
+ if(cb->status == SVGA_CB_STATUS_NONE){ \
+ while(!CB_queue_check_inline(_cb)){ \
+ WAIT_FOR_CB_SYNC_ ## _forcesync \
+ } } \
}while(0)
/* expansions of WAIT_FOR_CB */