diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clear.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_clear.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index 953e9bae14e..523fca2c1e8 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/dri/i965/brw_clear.c @@ -160,7 +160,10 @@ brw_fast_clear_depth(struct gl_context *ctx) /* FALLTHROUGH */ default: - depth_clear_value = fb->_DepthMax * ctx->Depth.Clear; + if (brw->gen >= 8) + depth_clear_value = float_as_int(ctx->Depth.Clear); + else + depth_clear_value = fb->_DepthMax * ctx->Depth.Clear; break; } |