r300g: fix comparison of hyperz flush time.
authorDave Airlie <airlied@gmail.com>
Fri, 30 Nov 2012 08:27:51 +0000 (18:27 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 1 Dec 2012 01:23:48 +0000 (11:23 +1000)
I haven't confirmed this is doing the correct thing, but at
least this might make someone review it!

Reported by internal RH coverity scan.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r300/r300_flush.c

index 2266b48c948511536dd34afb2a1e1989ac08b73e..2383ba1bb4a35b0096b6a8c4a3c6042b3615c410 100644 (file)
@@ -107,7 +107,7 @@ void r300_flush(struct pipe_context *pipe,
     /* Update Hyper-Z status. */
     if (r300->num_z_clears) {
         r300->hyperz_time_of_last_flush = os_time_get();
-    } else if (!r300->hyperz_time_of_last_flush > 2000000) {
+    } else if (r300->hyperz_time_of_last_flush > 2000000) {
         /* 2 seconds without a Z clear pretty much means a dead context
          * for HyperZ. */