diff options
author | Topi Pohjolainen <[email protected]> | 2016-11-22 12:15:07 +0200 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2016-11-23 11:06:52 +0200 |
commit | f19e0967c993f5f60b4cc80e6bac00f1286494ab (patch) | |
tree | b589ffe54c29b29bb2c30e8738dec988442872a2 /src/intel/blorp/blorp_clear.c | |
parent | ca84e190a446bbc29c3ef2864ba4ea5c7358a89a (diff) |
intel/blorp: Fix rectangle size for level-not-zero resolves
Needed to prevent gpu hangs when mip-mapped compression gets
enabled.
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp_clear.c')
-rw-r--r-- | src/intel/blorp/blorp_clear.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index 83ec57e556c..d0904087214 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -581,8 +581,8 @@ blorp_ccs_resolve(struct blorp_batch *batch, y_scaledown = aux_fmtl->bh / 2; } params.x0 = params.y0 = 0; - params.x1 = params.dst.aux_surf.logical_level0_px.width; - params.y1 = params.dst.aux_surf.logical_level0_px.height; + params.x1 = minify(params.dst.aux_surf.logical_level0_px.width, level); + params.y1 = minify(params.dst.aux_surf.logical_level0_px.height, level); params.x1 = ALIGN(params.x1, x_scaledown) / x_scaledown; params.y1 = ALIGN(params.y1, y_scaledown) / y_scaledown; |