summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2012-11-30 18:27:51 +1000
committerDave Airlie <[email protected]>2012-12-01 11:23:48 +1000
commit67c8e96f5ace67f9c17556934ee9532877d3a00f (patch)
treebc8a49b8b568ae14ab6c7cbe116edf7f8e45f6e5 /src/gallium/drivers
parenta0ec9185eb90568ab57170dc682de0ba0c9e5e62 (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index 2266b48c948..2383ba1bb4a 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -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. */