i965: Document conventions for counting layers in 2D multisample buffers.
authorPaul Berry <stereotype441@gmail.com>
Wed, 4 Dec 2013 05:15:47 +0000 (21:15 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 9 Dec 2013 18:51:03 +0000 (10:51 -0800)
commitb5fe413b4d665cdb7a9be6ebae23a6c5f3ec393d
tree2554cb8832d42d78c91a41ec00454af6a9e8efdc
parent3a2925bfa9537c202574eba0e2537b08939081ac
i965: Document conventions for counting layers in 2D multisample buffers.

The "layer" parameters used in blorp, and the
intel_renderbuffer::mt_layer field, represent a physical layer rather
than a logical layer.  This is important for 2D multisample arrays on
Gen7+ because the UMS and CMS multisample layouts use N physical
layers to represent each logical layer, where N is the number of
samples.

Also add an assertion to blorp to help catch bugs if we fail to follow
these conventions.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/intel_fbo.h