r300g: fix comparison of hyperz flush time.

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>
This commit is contained in:
Dave Airlie
2012-11-30 18:27:51 +10:00
parent a0ec9185eb
commit 67c8e96f5a
+1 -1
View 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. */