OSDN Git Service

iris: Fix "Force Zero RTA Index Enable" setting again
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Nov 2019 07:50:38 +0000 (23:50 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 5 Nov 2019 17:17:38 +0000 (09:17 -0800)
commit5cee7ad873d437ac58b739d4b159c9a4352f99e5
tree62e6d61c503c4a2af296f7f46d8034062ec47885
parent184d39301d9ef2b335867655b7ce27a351c0a945
iris: Fix "Force Zero RTA Index Enable" setting again

In 2ca0d913ea8, we began updating cso_fb->layers to the actual layer
count, rather than 0.  This fixed cases where we were setting "Force
Zero RTA Index Enable" even when doing layered rendering.  Sadly, it
also broke the check entirely: cso_fb->layers is now 1 for non-layered
cases, but the Force Zero RTA Index check was still comparing for 0.

Fixes: 2ca0d913ea8 ("iris: Fix framebuffer layer count")
(cherry picked from commit fc7b7480867d6049ca12f87d9b6ab0d9ad55d59f)
src/gallium/drivers/iris/iris_state.c