mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
i965: Consider only the scissor rectangle for viewport 0 for clears
noop_scissor (correctly) only examines the scissor rectangle for viewport 0. Therefore, it should only be called when that scissor rectangle is enabled. v2: Remove spurious change to radeon code. Noticed by Ken. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2c27f1d47a
commit
bdff9a6e47
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ brw_fast_clear_depth(struct gl_context *ctx)
|
|||
* a previous clear had happened at a different clear value and resolve it
|
||||
* first.
|
||||
*/
|
||||
if (ctx->Scissor.EnableFlags && !noop_scissor(ctx, fb)) {
|
||||
if ((ctx->Scissor.EnableFlags & 1) && !noop_scissor(ctx, fb)) {
|
||||
perf_debug("Failed to fast clear depth due to scissor being enabled. "
|
||||
"Possible 5%% performance win if avoided.\n");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue