i965 clear/draw: set renderbuffer attachment as needing depth resolve
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 29 Jul 2013 20:58:03 +0000 (13:58 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 4 Aug 2013 18:52:38 +0000 (11:52 -0700)
commit7b36137642f8946bbc85b45124fefda38ca5332e
tree18a90ab860f6e4e22866be5e017b99f135dd8b24
parentd44be9ed2fc72a0c0047286762a9740c41e02ef3
i965 clear/draw: set renderbuffer attachment as needing depth resolve

Previously we would mark a renderbuffer as needing a depth resolve.
But, to support layered rendering, we need to look at the attachment
instead, since the attachment knows if layered rendering is being
used.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_clear.c
src/mesa/drivers/dri/i965/brw_draw.c