i965: Set width, height, and tiling properly for null render targets.
authorPaul Berry <stereotype441@gmail.com>
Fri, 13 Jul 2012 14:25:12 +0000 (07:25 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 24 Jul 2012 21:52:57 +0000 (14:52 -0700)
commit0aeb87023e64807734aee323e76f81796d525a36
tree41bb4e665695c03bf20a34692a8d30845e380cc1
parent691c55f3560e5b8b9db9ecd2c089f13b41ec684f
i965: Set width, height, and tiling properly for null render targets.

The HW docs say that the width and height of null render targets need
to match the width and height of the corresponding depth and/or
stencil buffers, and that they need to be marked as Y-tiled.  Although
leaving these values at 0 doesn't seem to cause any ill effects, it
seems wise to follow the documented requirements.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c