i965/gen4: Remove redundant check for depth when rebasing stencil
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 19 May 2017 07:39:21 +0000 (10:39 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Sun, 18 Jun 2017 07:46:44 +0000 (10:46 +0300)
commitbb5d3fe96a5f4a2bcf0c8ea2b99853212e8c0247
tree70c27eacf6f755fffb46746959c1133195964edd
parent04524ac0d4603839f2c6795594f5e528c8761f3b
i965/gen4: Remove redundant check for depth when rebasing stencil

In case of gen < 6 stencil (if present) is always combined with
depth. Both stencil and depth attachments point to the same
physical surface.
Alignment workaround starts by considering depth and updates
stencil accordingly. Current logic continues with stencil and
in vain considers the case where depth would refer to different
surface than stencil.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_misc_state.c